* [PATCH linux dev-5.3] ARM: dts: aspeed: rainier: gpio-keys for PSU presence
@ 2019-10-28 21:47 Brandon Wyman
2019-10-31 15:07 ` Eddie James
0 siblings, 1 reply; 2+ messages in thread
From: Brandon Wyman @ 2019-10-28 21:47 UTC (permalink / raw)
To: Joel Stanley, openbmc, Eddie James; +Cc: Brandon Wyman
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>
---
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 29 ++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index efb1e99b5124..6dee4bf1deef 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 {
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux dev-5.3] ARM: dts: aspeed: rainier: gpio-keys for PSU presence
2019-10-28 21:47 [PATCH linux dev-5.3] ARM: dts: aspeed: rainier: gpio-keys for PSU presence Brandon Wyman
@ 2019-10-31 15:07 ` Eddie James
0 siblings, 0 replies; 2+ messages in thread
From: Eddie James @ 2019-10-31 15:07 UTC (permalink / raw)
To: Brandon Wyman, Joel Stanley, openbmc
On 10/28/19 4:47 PM, Brandon Wyman wrote:
> Add in a gpio-keys section to the Rainier device tree source, add in the
> power supply presence GPIOs.
Reviewed-by: Eddie James <eajames@linux.ibm.com>
>
> Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
> ---
> arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 29 ++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
> index efb1e99b5124..6dee4bf1deef 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 {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-31 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 21:47 [PATCH linux dev-5.3] ARM: dts: aspeed: rainier: gpio-keys for PSU presence Brandon Wyman
2019-10-31 15:07 ` Eddie James
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.