[PATCH 3/5] ARM: dts: aspeed: zaius: Add static GPIO config

Joel Stanley joel at jms.id.au
Thu Oct 13 13:56:28 AEDT 2016


On Thu, Oct 13, 2016 at 9:44 AM, Xo Wang <xow at google.com> wrote:
> Add GPIO hogs that turn on I2C muxes and I2C level shifter.
>
> Signed-off-by: Xo Wang <xow at google.com>

Reviewed-by: Joel Stanley <joel at jms.id.au>

> ---
>  arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> index 541455f..cc2e84b 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> @@ -1,6 +1,7 @@
>  /dts-v1/;
>
>  #include "aspeed-g5.dtsi"
> +#include <dt-bindings/gpio/aspeed-gpio.h>
>
>  / {
>         model = "Zaius BMC";
> @@ -205,6 +206,29 @@
>          */
>  };
>
> +&gpio {
> +       line_iso_u146_en {
> +               gpio-hog;
> +               gpios = <ASPEED_GPIO(O, 4) GPIO_ACTIVE_HIGH>;
> +               output-high;
> +               line-name = "iso_u164_en";
> +       };
> +
> +       line_bmc_i2c2_sw_rst_n {
> +               gpio-hog;
> +               gpios = <ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>;
> +               output-high;
> +               line-name = "bmc_i2c2_sw_rst_n";
> +       };
> +
> +       line_bmc_i2c5_sw_rst_n {
> +               gpio-hog;
> +               gpios = <ASPEED_GPIO(P, 3) GPIO_ACTIVE_HIGH>;
> +               output-high;
> +               line-name = "bmc_i2c5_sw_rst_n";
> +       };
> +};
> +
>  &vuart {
>         status = "okay";
>  };
> --
> 2.8.0.rc3.226.g39d4020
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc


More information about the openbmc mailing list