OSDN Git Service

ARM: dts: aspeed: witherspoon: Add gpio keys for power supply presence
authorChristopher Bostic <cbostic@linux.vnet.ibm.com>
Thu, 13 Jul 2017 19:36:06 +0000 (14:36 -0500)
committerJoel Stanley <joel@jms.id.au>
Fri, 25 May 2018 04:27:22 +0000 (13:57 +0930)
Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts

index 8faa538..fe42a43 100644 (file)
                        gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
                        linux,code = <ASPEED_GPIO(J, 2)>;
                };
+
+               ps0-presence {
+                       label = "ps0-presence";
+                       gpios = <&gpio ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
+                       linux,code = <ASPEED_GPIO(P, 7)>;
+               };
+
+               ps1-presence {
+                       label = "ps1-presence";
+                       gpios = <&gpio ASPEED_GPIO(N, 0) GPIO_ACTIVE_LOW>;
+                       linux,code = <ASPEED_GPIO(N, 0)>;
+               };
        };
 
        gpio-keys-polled {