Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+144 -2
+18 -1
arch/arm/boot/dts/ste-href.dtsi
··· 16 16 battery: battery { 17 17 compatible = "simple-battery"; 18 18 battery-type = "lithium-ion-polymer"; 19 - thermistor-on-batctrl; 19 + }; 20 + 21 + thermal-zones { 22 + battery-thermal { 23 + /* This zone will be polled by the battery temperature code */ 24 + polling-delay = <0>; 25 + polling-delay-passive = <0>; 26 + thermal-sensors = <&bat_therm>; 27 + }; 28 + }; 29 + 30 + bat_therm: thermistor { 31 + compatible = "murata,ncp18wb473"; 32 + io-channels = <&gpadc 0x02>; /* BatTemp */ 33 + pullup-uv = <1800000>; 34 + pullup-ohm = <230000>; 35 + pulldown-ohm = <0>; 36 + #thermal-sensor-cells = <0>; 20 37 }; 21 38 22 39 soc {
+18 -1
arch/arm/boot/dts/ste-snowball.dts
··· 20 20 battery: battery { 21 21 compatible = "simple-battery"; 22 22 battery-type = "lithium-ion-polymer"; 23 - thermistor-on-batctrl; 23 + }; 24 + 25 + thermal-zones { 26 + battery-thermal { 27 + /* This zone will be polled by the battery temperature code */ 28 + polling-delay = <0>; 29 + polling-delay-passive = <0>; 30 + thermal-sensors = <&bat_therm>; 31 + }; 32 + }; 33 + 34 + bat_therm: thermistor { 35 + compatible = "murata,ncp18wb473"; 36 + io-channels = <&gpadc 0x02>; /* BatTemp */ 37 + pullup-uv = <1800000>; 38 + pullup-ohm = <230000>; 39 + pulldown-ohm = <0>; 40 + #thermal-sensor-cells = <0>; 24 41 }; 25 42 26 43 en_3v3_reg: en_3v3 {
+18
arch/arm/boot/dts/ste-ux500-samsung-codina.dts
··· 47 47 compatible = "samsung,eb425161lu"; 48 48 }; 49 49 50 + thermal-zones { 51 + battery-thermal { 52 + /* This zone will be polled by the battery temperature code */ 53 + polling-delay = <0>; 54 + polling-delay-passive = <0>; 55 + thermal-sensors = <&bat_therm>; 56 + }; 57 + }; 58 + 59 + bat_therm: thermistor { 60 + compatible = "samsung,1404-001221"; 61 + io-channels = <&gpadc 0x02>; /* BatTemp */ 62 + pullup-uv = <1800000>; 63 + pullup-ohm = <230000>; 64 + pulldown-ohm = <0>; 65 + #thermal-sensor-cells = <0>; 66 + }; 67 + 50 68 /* TI TXS0206 level translator for 2.9 V */ 51 69 sd_level_translator: regulator-gpio { 52 70 compatible = "regulator-fixed";
+18
arch/arm/boot/dts/ste-ux500-samsung-gavini.dts
··· 24 24 compatible = "samsung,eb585157lu"; 25 25 }; 26 26 27 + thermal-zones { 28 + battery-thermal { 29 + /* This zone will be polled by the battery temperature code */ 30 + polling-delay = <0>; 31 + polling-delay-passive = <0>; 32 + thermal-sensors = <&bat_therm>; 33 + }; 34 + }; 35 + 36 + bat_therm: thermistor { 37 + compatible = "samsung,1404-001221"; 38 + io-channels = <&gpadc 0x02>; /* BatTemp */ 39 + pullup-uv = <1800000>; 40 + pullup-ohm = <230000>; 41 + pulldown-ohm = <0>; 42 + #thermal-sensor-cells = <0>; 43 + }; 44 + 27 45 /* TI TXS0206 level translator for 2.9 V */ 28 46 sd_level_translator: regulator-gpio { 29 47 compatible = "regulator-fixed";
+18
arch/arm/boot/dts/ste-ux500-samsung-golden.dts
··· 29 29 compatible = "samsung,eb-l1m7flu"; 30 30 }; 31 31 32 + thermal-zones { 33 + battery-thermal { 34 + /* This zone will be polled by the battery temperature code */ 35 + polling-delay = <0>; 36 + polling-delay-passive = <0>; 37 + thermal-sensors = <&bat_therm>; 38 + }; 39 + }; 40 + 41 + bat_therm: thermistor { 42 + compatible = "samsung,1404-001221"; 43 + io-channels = <&gpadc 0x02>; /* BatTemp */ 44 + pullup-uv = <1800000>; 45 + pullup-ohm = <230000>; 46 + pulldown-ohm = <0>; 47 + #thermal-sensor-cells = <0>; 48 + }; 49 + 32 50 i2c-gpio-0 { 33 51 compatible = "i2c-gpio"; 34 52 sda-gpios = <&gpio2 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
+18
arch/arm/boot/dts/ste-ux500-samsung-janice.dts
··· 24 24 compatible = "samsung,eb535151vu"; 25 25 }; 26 26 27 + thermal-zones { 28 + battery-thermal { 29 + /* This zone will be polled by the battery temperature code */ 30 + polling-delay = <0>; 31 + polling-delay-passive = <0>; 32 + thermal-sensors = <&bat_therm>; 33 + }; 34 + }; 35 + 36 + bat_therm: thermistor { 37 + compatible = "samsung,1404-001221"; 38 + io-channels = <&gpadc 0x02>; /* BatTemp */ 39 + pullup-uv = <1800000>; 40 + pullup-ohm = <230000>; 41 + pulldown-ohm = <0>; 42 + #thermal-sensor-cells = <0>; 43 + }; 44 + 27 45 /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */ 28 46 ldo_3v3_reg: regulator-gpio-ldo-3v3 { 29 47 compatible = "regulator-fixed";
+18
arch/arm/boot/dts/ste-ux500-samsung-kyle.dts
··· 28 28 compatible = "samsung,eb425161la"; 29 29 }; 30 30 31 + thermal-zones { 32 + battery-thermal { 33 + /* This zone will be polled by the battery temperature code */ 34 + polling-delay = <0>; 35 + polling-delay-passive = <0>; 36 + thermal-sensors = <&bat_therm>; 37 + }; 38 + }; 39 + 40 + bat_therm: thermistor { 41 + compatible = "samsung,1404-001221"; 42 + io-channels = <&gpadc 0x02>; /* BatTemp */ 43 + pullup-uv = <1800000>; 44 + pullup-ohm = <230000>; 45 + pulldown-ohm = <0>; 46 + #thermal-sensor-cells = <0>; 47 + }; 48 + 31 49 /* TI TXS0206 level translator for 2.9 V */ 32 50 sd_level_translator: regulator-gpio { 33 51 compatible = "regulator-fixed";
+18
arch/arm/boot/dts/ste-ux500-samsung-skomer.dts
··· 24 24 compatible = "samsung,eb485159lu"; 25 25 }; 26 26 27 + thermal-zones { 28 + battery-thermal { 29 + /* This zone will be polled by the battery temperature code */ 30 + polling-delay = <0>; 31 + polling-delay-passive = <0>; 32 + thermal-sensors = <&bat_therm>; 33 + }; 34 + }; 35 + 36 + bat_therm: thermistor { 37 + compatible = "samsung,1404-001221"; 38 + io-channels = <&gpadc 0x02>; /* BatTemp */ 39 + pullup-uv = <1800000>; 40 + pullup-ohm = <230000>; 41 + pulldown-ohm = <0>; 42 + #thermal-sensor-cells = <0>; 43 + }; 44 + 27 45 /* TI TXS0206 level translator for 2.9 V */ 28 46 sd_level_translator: regulator-gpio { 29 47 compatible = "regulator-fixed";