diff mbox

[v5,2/3] ARM: dts: twl4030: Add missing madc reference for bci subnode

Message ID 69d95172f257cee8d6abc1eaab57865e536be73c.1495363097.git.hns@goldelico.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

H. Nikolaus Schaller May 21, 2017, 10:38 a.m. UTC
From: Marek Belisko <marek@goldelico.com>

The twl4030_charger driver expects an iio channel to detect the
presence of an AC charger by looking at VAC (madc channel 11).
This definition is missing in the device tree.

Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 arch/arm/boot/dts/twl4030.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tony Lindgren June 6, 2017, 7:23 a.m. UTC | #1
* H. Nikolaus Schaller <hns@goldelico.com> [170521 03:44]:
> From: Marek Belisko <marek@goldelico.com>
> 
> The twl4030_charger driver expects an iio channel to detect the
> presence of an AC charger by looking at VAC (madc channel 11).
> This definition is missing in the device tree.

I'm picking this patch into omap-for-v4.13/dt thanks.

Tony
H. Nikolaus Schaller June 7, 2017, 9:50 a.m. UTC | #2
> Am 06.06.2017 um 09:23 schrieb Tony Lindgren <tony@atomide.com>:
> 
> * H. Nikolaus Schaller <hns@goldelico.com> [170521 03:44]:
>> From: Marek Belisko <marek@goldelico.com>
>> 
>> The twl4030_charger driver expects an iio channel to detect the
>> presence of an AC charger by looking at VAC (madc channel 11).
>> This definition is missing in the device tree.
> 
> I'm picking this patch into omap-for-v4.13/dt thanks.

Thanks and BR!
Nikolaus
diff mbox

Patch

diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi
index 36ae9160b558..16533b62b0a2 100644
--- a/arch/arm/boot/dts/twl4030.dtsi
+++ b/arch/arm/boot/dts/twl4030.dtsi
@@ -23,6 +23,8 @@ 
 		compatible = "ti,twl4030-bci";
 		interrupts = <9>, <2>;
 		bci3v1-supply = <&vusb3v1>;
+		io-channels = <&twl_madc 11>;
+		io-channel-names = "vac";
 	};
 
 	watchdog {