mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 03:33:25 -05:00
driver/sar-sensor: sx937x bring up
1.add dts for "Semtech,sx937x" 2.add sx937x_sar.ko to system Change-Id: I6086a3a271afadbbfffbcd821648d91b1daba15b Signed-off-by: weimh1 <[email protected]> Reviewed-on: https://gerrit.mot.com/1783005 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <[email protected]> Submit-Approved: Jira Key
This commit is contained in:
parent
65f836a3c8
commit
bb776aac94
1 changed files with 50 additions and 0 deletions
|
|
@ -187,6 +187,56 @@
|
|||
panel = <&dsi_rm69299_visionox_amoled_video
|
||||
&dsi_rm69299_visionox_amoled_cmd>;
|
||||
};
|
||||
|
||||
sx937x@2c {
|
||||
compatible = "Semtech,sx937x";
|
||||
reg = <0x2c>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <24 0x02>;
|
||||
interrupt-names = "sx937x_irq";
|
||||
Semtech,nirq-gpio = <&tlmm 24 0x02>;
|
||||
cap_vdd-supply = <&pm6150a_l8>;
|
||||
Semtech,button-flag = <0x3b>;
|
||||
Semtech,ref-phases-a = <2>;
|
||||
Semtech,ref-phases-b = <6>;
|
||||
Semtech,reg-num = <24>;
|
||||
Semtech,reg-init = <
|
||||
0x8024 0xF700 /*PHEN*/
|
||||
0x4004 0x74 /*irq mask*/
|
||||
0x8028 0x85C /*AFE_PARAM_PH0*/
|
||||
0x8034 0x85C /*AFE_PARAM_PH1*/
|
||||
0x8040 0x85C /*AFE_PARAM_PH2*/
|
||||
/* 0x804C 0x85C */ /*AFE_PARAM_PH3*/
|
||||
0x8058 0x85C /*AFE_PARAM_PH4*/
|
||||
0x8064 0x85C /*AFE_PARAM_PH5*/
|
||||
0x8070 0x85C /*AFE_PARAM_PH6*/
|
||||
0x807C 0x85C /*AFE_PARAM_PH7*/
|
||||
/*set CS3 to hiz, because it used as IRQ pin*/
|
||||
0x8030 0xFFF9FD /*REG_AFEPH_PH0*/
|
||||
0x803C 0xFFF9EF /*REG_AFEPH_PH1*/
|
||||
0x8048 0xFFF97F /*REG_AFEPH_PH2*/
|
||||
/* 0x8054 0xFFFBFF */ /*REG_AFEPH_PH3*/
|
||||
0x8060 0xFFD9FF /*REG_AFEPH_PH4*/
|
||||
0x806C 0xFEF9FF /*REG_AFEPH_PH5*/
|
||||
0x8078 0xF7F9FF /*REG_AFEPH_PH6*/
|
||||
0x8084 0xBFF9FF /*REG_AFEPH_PH7*/
|
||||
/*prox1 5000 0x64*/
|
||||
/*prox2 10000 0x8D*/
|
||||
/*prox3 15000 0xAD*/
|
||||
/*prox4 20000 0xC8*/
|
||||
0x8098 0xC8AD8D64 /*prox threshold ph0*/
|
||||
0x80B8 0xC8AD8D64 /*prox threshold ph1*/
|
||||
0x80D8 0xC8AD8D64 /*prox threshold ph2*/
|
||||
/* 0x80F8 0x64*/ /*prox threshold ph3*/
|
||||
0x8118 0xC8AD8D64 /*prox threshold ph4*/
|
||||
0x8138 0xC8AD8D64 /*prox threshold ph5*/
|
||||
0x8158 0xC8AD8D64 /*prox threshold ph6*/
|
||||
0x8178 0xC8AD8D64 /*prox threshold ph7*/
|
||||
0x8024 0xF7F7 /*PHEN*/
|
||||
>;
|
||||
|
||||
status = "ok"
|
||||
};
|
||||
};
|
||||
|
||||
&pm7250b_charger {
|
||||
|
|
|
|||
Loading…
Reference in a new issue