[PATCH linux dev-4.10] ARM: dts: aspeed: Add gpio keys for power supply presence, ucd alert
Joel Stanley
joel at jms.id.au
Wed Jul 19 19:41:21 AEST 2017
On Fri, Jul 14, 2017 at 5:06 AM, Christopher Bostic
<cbostic at linux.vnet.ibm.com> wrote:
> Add GPIO keys for power supply 0 and 1 presence as well as ucd alert
> to the device tree.
>
> Signed-off-by: Christopher Bostic <cbostic at linux.vnet.ibm.com>
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> index 76a5b28..34c5dfc 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> @@ -42,6 +42,24 @@
> 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)>;
> + };
Chris, these two look fine. I applied these two and fixed the commit
message to not mention the UCD.
> +
> + ucd-alert {
> + label = "ucd-alert";
> + gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_LOW>;
> + linux,code = <ASPEED_GPIO(I, 2)>;
> + };
Andrew, are we sure this should be exposed to userspace? Is it
something that should be hooked up to the SMBus driver instead?
Cheers,
Joel
> };
>
> leds {
> --
> 1.8.2.2
>
More information about the openbmc
mailing list