ARM: dts: twl4030: Add missing madc reference for bci subnode
authorMarek Belisko <marek@goldelico.com>
Sun, 21 May 2017 10:38:17 +0000 (12:38 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 6 Jun 2017 07:23:22 +0000 (00:23 -0700)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/twl4030.dtsi

index 36ae9160b558cadfab86810dc84db4d5cec35695..16533b62b0a231c8d60d733ff26c1333e8b67e28 100644 (file)
@@ -23,6 +23,8 @@
                compatible = "ti,twl4030-bci";
                interrupts = <9>, <2>;
                bci3v1-supply = <&vusb3v1>;
+               io-channels = <&twl_madc 11>;
+               io-channel-names = "vac";
        };
 
        watchdog {