diff options
author | Joel Stanley <joel@jms.id.au> | 2018-02-12 10:43:24 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2018-02-19 10:29:55 +0300 |
commit | 65a33f05384274de27754b7e230f8b314c231f06 (patch) | |
tree | a8f11a21a4a2e57fba0e706b7d696f5fae669666 /arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | |
parent | 7674bf96b82e22950c00151d4a9f45e0bc988698 (diff) | |
download | linux-65a33f05384274de27754b7e230f8b314c231f06.tar.xz |
ARM: dts: palmetto: Add LEDs and GPIO keys
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>
Diffstat (limited to 'arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts')
-rw-r--r-- | arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts index 5115247e5e59..2a4a355a779d 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts @@ -2,6 +2,7 @@ /dts-v1/; #include "aspeed-g4.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> / { model = "Palmetto BMC"; @@ -26,6 +27,32 @@ 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 { |