summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
diff options
context:
space:
mode:
authorPotin Lai <potin.lai.pt@gmail.com>2022-06-13 12:51:49 +0300
committerJoel Stanley <joel@jms.id.au>2022-11-20 13:16:35 +0300
commit7d5e4318ea8d8165630c1461db30eeec082f2440 (patch)
tree15aa74a0529355c303628f0510601f3b954009b5 /arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
parent9f1cff4314df5defbe6c733e20b9aa9dd01c759b (diff)
downloadlinux-7d5e4318ea8d8165630c1461db30eeec082f2440.tar.xz
ARM: dts: aspeed: bletchley: Bind presence-sledX pins via gpio-keys
Bind presence-sledX pins via gpio-keys driver to monitor and export GPIO pin values on DBUS using phosphor-gpio-presence service. Signed-off-by: Potin Lai <potin.lai.pt@gmail.com> Reviewed-by: Patrick Williams <patrick@stwcx.xyz> Link: https://lore.kernel.org/r/20220613095150.21917-4-potin.lai.pt@gmail.com Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts')
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
index 2853c4da3e34..a535f808fd7d 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
@@ -191,6 +191,41 @@
gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>;
};
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ presence-sled1 {
+ label = "presence-sled1";
+ gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(H, 2)>;
+ };
+ presence-sled2 {
+ label = "presence-sled2";
+ gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(H, 3)>;
+ };
+ presence-sled3 {
+ label = "presence-sled3";
+ gpios = <&gpio0 ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(H, 4)>;
+ };
+ presence-sled4 {
+ label = "presence-sled4";
+ gpios = <&gpio0 ASPEED_GPIO(H, 5) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(H, 5)>;
+ };
+ presence-sled5 {
+ label = "presence-sled5";
+ gpios = <&gpio0 ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(H, 6)>;
+ };
+ presence-sled6 {
+ label = "presence-sled6";
+ gpios = <&gpio0 ASPEED_GPIO(H, 7) GPIO_ACTIVE_LOW>;
+ linux,code = <ASPEED_GPIO(H, 7)>;
+ };
+ };
};
&mac2 {