mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
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>
This commit is contained in:
@@ -16,7 +16,24 @@ memory {
|
||||
battery: battery {
|
||||
compatible = "simple-battery";
|
||||
battery-type = "lithium-ion-polymer";
|
||||
thermistor-on-batctrl;
|
||||
};
|
||||
|
||||
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 = "murata,ncp18wb473";
|
||||
io-channels = <&gpadc 0x02>; /* BatTemp */
|
||||
pullup-uv = <1800000>;
|
||||
pullup-ohm = <230000>;
|
||||
pulldown-ohm = <0>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
soc {
|
||||
|
||||
@@ -20,7 +20,24 @@ memory {
|
||||
battery: battery {
|
||||
compatible = "simple-battery";
|
||||
battery-type = "lithium-ion-polymer";
|
||||
thermistor-on-batctrl;
|
||||
};
|
||||
|
||||
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 = "murata,ncp18wb473";
|
||||
io-channels = <&gpadc 0x02>; /* BatTemp */
|
||||
pullup-uv = <1800000>;
|
||||
pullup-ohm = <230000>;
|
||||
pulldown-ohm = <0>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
en_3v3_reg: en_3v3 {
|
||||
|
||||
@@ -47,6 +47,24 @@ battery: battery {
|
||||
compatible = "samsung,eb425161lu";
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
/* TI TXS0206 level translator for 2.9 V */
|
||||
sd_level_translator: regulator-gpio {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
@@ -24,6 +24,24 @@ battery: battery {
|
||||
compatible = "samsung,eb585157lu";
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
/* TI TXS0206 level translator for 2.9 V */
|
||||
sd_level_translator: regulator-gpio {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
@@ -29,6 +29,24 @@ battery: battery {
|
||||
compatible = "samsung,eb-l1m7flu";
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
i2c-gpio-0 {
|
||||
compatible = "i2c-gpio";
|
||||
sda-gpios = <&gpio2 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||
|
||||
@@ -24,6 +24,24 @@ battery: battery {
|
||||
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";
|
||||
|
||||
@@ -28,6 +28,24 @@ battery: battery {
|
||||
compatible = "samsung,eb425161la";
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
/* TI TXS0206 level translator for 2.9 V */
|
||||
sd_level_translator: regulator-gpio {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
@@ -24,6 +24,24 @@ battery: battery {
|
||||
compatible = "samsung,eb485159lu";
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
/* TI TXS0206 level translator for 2.9 V */
|
||||
sd_level_translator: regulator-gpio {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
Reference in New Issue
Block a user