Message ID | 1476312288-100725-3-git-send-email-xow@google.com |
---|---|
State | Accepted, archived |
Headers | show |
On Thu, Oct 13, 2016 at 9:44 AM, Xo Wang <xow@google.com> wrote: > Add GPIO hogs that turn on I2C muxes and I2C level shifter. > > Signed-off-by: Xo Wang <xow@google.com> Reviewed-by: Joel Stanley <joel@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@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/openbmc
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"; };
Add GPIO hogs that turn on I2C muxes and I2C level shifter. Signed-off-by: Xo Wang <xow@google.com> --- arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)