From b018c3ff8c474ddb10a0967eec0e5682d7ae73cf Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 17 Aug 2021 18:22:21 +0800 Subject: [PATCH] arm/dts: config sgm4154x dtsi config sgm4154x dtsi for bring up Change-Id: I4f42729f4412be90d1e37f623058998c1af721fa Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2043899 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index f47bbaa2ff40..c06a693e018f 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -27,3 +27,42 @@ status = "okay"; }; }; + +&qupv3_se8_i2c { + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + /* 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>; + }; +};