瀏覽代碼

ARM: dts: am335x-chiliboard: Support power button

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>
Marcin Niestroj 8 年之前
父節點
當前提交
41f0e0670e
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      arch/arm/boot/dts/am335x-chiliboard.dts

+ 10 - 0
arch/arm/boot/dts/am335x-chiliboard.dts

@@ -185,3 +185,13 @@
 	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
+
+&tps {
+	interrupt-parent = <&intc>;
+	interrupts = <7>; /* NNMI */
+
+	pwrbutton {
+		interrupts = <2>;
+		status = "okay";
+	};
+};