diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 7dfccb2ab038..93203a44eb80 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -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 {