summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/ste-ux500-samsung-janice.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-12-15 20:39:52 +0300
committerLinus Walleij <linus.walleij@linaro.org>2022-02-05 03:25:30 +0300
commitfb7f1727fdf83931eab2bd9bc0978133bf231a54 (patch)
tree610facc0d7e7dc0379268eb08b6c6195c7e25dbb /arch/arm/boot/dts/ste-ux500-samsung-janice.dts
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
downloadlinux-fb7f1727fdf83931eab2bd9bc0978133bf231a54.tar.xz
ARM: dts: ux500: Add battery thermal zones and NTCs
Add the thermal zones and thermistors used by the battery charging code to the device tree so the charger code can look up and poll the thermal zone for battery temperature. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/ste-ux500-samsung-janice.dts')
-rw-r--r--arch/arm/boot/dts/ste-ux500-samsung-janice.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-ux500-samsung-janice.dts b/arch/arm/boot/dts/ste-ux500-samsung-janice.dts
index 5ddcbc1a855d..7688bc900cd1 100644
--- a/arch/arm/boot/dts/ste-ux500-samsung-janice.dts
+++ b/arch/arm/boot/dts/ste-ux500-samsung-janice.dts
@@ -24,6 +24,24 @@
compatible = "samsung,eb535151vu";
};
+ thermal-zones {
+ battery-thermal {
+ /* This zone will be polled by the battery temperature code */
+ polling-delay = <0>;
+ polling-delay-passive = <0>;
+ thermal-sensors = <&bat_therm>;
+ };
+ };
+
+ bat_therm: thermistor {
+ compatible = "samsung,1404-001221";
+ io-channels = <&gpadc 0x02>; /* BatTemp */
+ pullup-uv = <1800000>;
+ pullup-ohm = <230000>;
+ pulldown-ohm = <0>;
+ #thermal-sensor-cells = <0>;
+ };
+
/* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */
ldo_3v3_reg: regulator-gpio-ldo-3v3 {
compatible = "regulator-fixed";