Skip to content

Commit 59cacb2

Browse files
committed
dts: add thermal: 73f9c18
TODO: check if correct Signed-off-by: Alexander Martinz <[email protected]>
1 parent 2417bce commit 59cacb2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

arch/arm64/boot/dts/qcom/qcm6490-shift-otter.dts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,20 @@
176176
};
177177
};
178178

179+
mem-thermal {
180+
polling-delay-passive = <0>;
181+
182+
thermal-sensors = <&pm7250b_adc_tm 2>;
183+
184+
trips {
185+
active-config0 {
186+
temperature = <125000>;
187+
hysteresis = <1000>;
188+
type = "passive";
189+
};
190+
};
191+
};
192+
179193
quiet-thermal {
180194
polling-delay-passive = <0>;
181195

@@ -642,6 +656,9 @@
642656
};
643657

644658
&pm7250b_adc {
659+
pinctrl-0 = <&pm7250b_adc_default>;
660+
pinctrl-names = "default";
661+
645662
channel@4d {
646663
reg = <ADC5_AMUX_THM1_100K_PU>;
647664
qcom,ratiometric;
@@ -657,6 +674,14 @@
657674
qcom,pre-scaling = <1 1>;
658675
label = "conn_therm";
659676
};
677+
678+
channel@53 {
679+
reg = <ADC5_GPIO2_100K_PU>;
680+
qcom,ratiometric;
681+
qcom,hw-settle-time = <200>;
682+
qcom,pre-scaling = <1 1>;
683+
label = "mem_therm";
684+
};
660685
};
661686

662687
&pm7250b_adc_tm {
@@ -675,6 +700,21 @@
675700
qcom,ratiometric;
676701
qcom,hw-settle-time-us = <200>;
677702
};
703+
704+
mem-therm@2 {
705+
reg = <2>;
706+
io-channels = <&pm7250b_adc ADC5_GPIO2_100K_PU>;
707+
qcom,ratiometric;
708+
qcom,hw-settle-time-us = <200>;
709+
};
710+
};
711+
712+
&pm7250b_gpios {
713+
pm7250b_adc_default: adc-default-state {
714+
pins = "gpio12";
715+
function = PMIC_GPIO_FUNC_NORMAL;
716+
bias-high-impedance;
717+
};
678718
};
679719

680720
&pm7325_gpios {

0 commit comments

Comments
 (0)