summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
diff options
context:
space:
mode:
authorBrandon Wyman <bjwyman@gmail.com>2019-10-29 00:47:54 +0300
committerJoel Stanley <joel@jms.id.au>2019-11-01 13:24:46 +0300
commit1dd785ba304d9f72330921acd72133591d362a43 (patch)
tree0b7ccc4b38676b84077964331460d858039d4705 /arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
parent7f4a0ad5f0f2ac9a06a8685d58ce65f2eae3879b (diff)
downloadlinux-1dd785ba304d9f72330921acd72133591d362a43.tar.xz
ARM: dts: aspeed: rainier: gpio-keys for PSU presence
Add in a gpio-keys section to the Rainier device tree source, add in the power supply presence GPIOs. Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Reviewed-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts')
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index a63b0642f104..c1c9cd30f980 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -3,6 +3,7 @@
/dts-v1/;
#include "aspeed-g6.dtsi"
+#include <dt-bindings/gpio/aspeed-gpio.h>
/ {
model = "Rainier";
@@ -33,6 +34,34 @@
};
};
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ ps0-presence {
+ label = "ps0-presence";
+ gpios = <&gpio0 ASPEED_GPIO(S, 0) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(S, 0)>;
+ };
+
+ ps1-presence {
+ label = "ps1-presence";
+ gpios = <&gpio0 ASPEED_GPIO(S, 1) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(S, 1)>;
+ };
+
+ ps2-presence {
+ label = "ps2-presence";
+ gpios = <&gpio0 ASPEED_GPIO(S, 2) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(S, 2)>;
+ };
+
+ ps3-presence {
+ label = "ps3-presence";
+ gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(S, 3)>;
+ };
+ };
+
};
&emmc_controller {