ARM: dts: palmetto: Add LEDs and GPIO keys
authorJoel Stanley <joel@jms.id.au>
Mon, 12 Feb 2018 07:43:24 +0000 (18:13 +1030)
committerJoel Stanley <joel@jms.id.au>
Mon, 19 Feb 2018 07:29:55 +0000 (17:59 +1030)
These describe the front panel LEDs that are present on a Palmetto
chassis, and the checkstop GPIO that comes from the Power8 CPU to
indicate a host error.

Acked-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts

index 5115247e5e59e19568a593284a53a56ae404f0c1..2a4a355a779d2bd08fc96b2f54924b105fcdda34 100644 (file)
@@ -2,6 +2,7 @@
 /dts-v1/;
 
 #include "aspeed-g4.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
 
 / {
        model = "Palmetto BMC";
                        reg = <0x5f000000 0x01000000>; /* 16M */
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               heartbeat {
+                       gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
+               };
+
+               power {
+                       gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
+               };
+
+               identify {
+                       gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
+               };
+       };
+
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               checkstop {
+                       label = "checkstop";
+                       gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
+                       linux,code = <ASPEED_GPIO(P, 5)>;
+               };
+       };
 };
 
 &fmc {