]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: aspeed: witherspoon: Enable checkstop and cooling gpio keys
authorBrad Bishop <bradleyb@fuzziesquirrel.com>
Fri, 21 Apr 2017 03:19:23 +0000 (23:19 -0400)
committerJoel Stanley <joel@jms.id.au>
Fri, 25 May 2018 04:27:22 +0000 (13:57 +0930)
Enable gpio-keys events for the checkstop and water/air cooled
gpios for use by applications on the Witherspoon system.

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

index 7056231cbee65cbb6d5ec799649e07753620c015..8faa5382f2b1b96a412c47f5e0025492ebeb5b88 100644 (file)
@@ -28,6 +28,22 @@ flash_memory: region@98000000 {
                };
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               air-water {
+                       label = "air-water";
+                       gpios = <&gpio ASPEED_GPIO(B, 5) GPIO_ACTIVE_LOW>;
+                       linux,code = <ASPEED_GPIO(B, 5)>;
+               };
+
+               checkstop {
+                       label = "checkstop";
+                       gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
+                       linux,code = <ASPEED_GPIO(J, 2)>;
+               };
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;