diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 9a9e30aac9f9..87aa09f85b6e 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -177,6 +177,62 @@ temp_neg_10_thres = <0>; }; + sgm41543: sgm41543@0B { + status = "okay"; + compatible = "sgm,sgm41543D"; + reg = <0x0B>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC_GPIO3_DIV3>, + <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, + <&wt6670 PSY_IIO_QC3P_POWER>, + <&wt6670 PSY_IIO_START_DETECTION>, + <&wt6670 PSY_IIO_DETECTION_READY>, + <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; + + io-channel-names = "gpio3_div3", + "wt6670_usb_real_type", + "wt6670_usb_qc3p_power", + "wt6670_start_detection", + "wt6670_detection_ready", + "qc3p_start_policy"; + + interrupt-parent = <&tlmm>; + interrupts = <96 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 96 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 36 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + bq25890: bq25890@6A { status = "okay"; compatible = "ti,bq2589x-1";