ARM: dts: am335x-chiliboard: Support power button
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Thu, 2 Feb 2017 12:11:54 +0000 (13:11 +0100)
committerTony Lindgren <tony@atomide.com>
Thu, 2 Feb 2017 17:46:24 +0000 (09:46 -0800)
On chiliBoard power button is connected to TPS65217. It signals power
button presses by asserting interrupt output and allows to read the
state by i2c bus.

Handle TPS65217 interrupts and enable notifications of power button
presses.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-chiliboard.dts

index 2a624b3c9258fe29d8875e2ac32b7e8c7c0507b1..4e13cc03d6563bc5572f392ec8e7b486b65a9feb 100644 (file)
        cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
+
+&tps {
+       interrupt-parent = <&intc>;
+       interrupts = <7>; /* NNMI */
+
+       pwrbutton {
+               interrupts = <2>;
+               status = "okay";
+       };
+};