[PATCH linux dev-4.10] ARM: dts: aspeed: P8: Add checkstop gpio key

Joel Stanley joel at jms.id.au
Thu Nov 30 15:13:38 AEDT 2017


On Tue, Nov 28, 2017 at 7:55 PM, Lei YU <mine260309 at gmail.com> wrote:
> The checkstop gpio key is missing in P8 systems.
> Define the checkstop gpio key for Barreleye, Firestone, Garrison,
> Palmetto so they can use it for checkstop monitor.
>
> Signed-off-by: Lei YU <mine260309 at gmail.com>

Applied to dev-4.10. I also fixed up a mistake where garrison's dtb
did not build due to a missing include.

Cheers,

Joel

> ---
>  arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts | 10 ++++++++++
>  arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts | 10 ++++++++++
>  arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts  | 10 ++++++++++
>  arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts  | 10 ++++++++++
>  4 files changed, 40 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts b/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts
> index 6e70ca5..026cda5 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts
> @@ -54,6 +54,16 @@
>                         default-state = "keep";
>                 };
>         };
> +
> +       gpio-keys {
> +               compatible = "gpio-keys";
> +
> +               checkstop {
> +                       label = "checkstop";
> +                       gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
> +                       linux,code = <ASPEED_GPIO(P, 5)>;
> +               };
> +       };
>  };
>
>  &fmc {
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts b/arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts
> index 93ad3ea..fb7d5f9 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts
> @@ -43,6 +43,16 @@
>                         gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
>                 };
>         };
> +
> +       gpio-keys {
> +               compatible = "gpio-keys";
> +
> +               checkstop {
> +                       label = "checkstop";
> +                       gpios = <&gpio ASPEED_GPIO(H, 0) GPIO_ACTIVE_LOW>;
> +                       linux,code = <ASPEED_GPIO(H, 0)>;
> +               };
> +       };
>  };
>
>  &fmc {
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts b/arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts
> index 95552c8..a2906ccd 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts
> @@ -26,6 +26,16 @@
>                         reg = <0x5f000000 0x01000000>; /* 16MB */
>                 };
>         };
> +
> +       gpio-keys {
> +               compatible = "gpio-keys";
> +
> +               checkstop {
> +                       label = "checkstop";
> +                       gpios = <&gpio ASPEED_GPIO(H, 0) GPIO_ACTIVE_LOW>;
> +                       linux,code = <ASPEED_GPIO(H, 0)>;
> +               };
> +       };
>  };
>
>  &fmc {
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> index ab3fee6..8ba7d05 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> @@ -58,6 +58,16 @@
>                 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
>                 trans-gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
>         };
> +
> +       gpio-keys {
> +               compatible = "gpio-keys";
> +
> +               checkstop {
> +                       label = "checkstop";
> +                       gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
> +                       linux,code = <ASPEED_GPIO(P, 5)>;
> +               };
> +       };
>  };
>
>  &fmc {
> --
> 1.9.1
>


More information about the openbmc mailing list