Fw: [PATCH] aspeed-bmc-opp-palmetto: Add GPIO hogs to devicetree

Christopher Bostic christopher.lee.bostic at gmail.com
Sat Nov 19 01:24:52 AEDT 2016


On Fri, Nov 18, 2016 at 8:18 AM, Christopher Bostic <cbostic at us.ibm.com> wrote:
> From: Andrew Jeffery <andrew at aj.id.au>
> To: Joel Stanley <joel at jms.id.au>
> Cc: openbmc at lists.ozlabs.org, Cyril Bur <cyrilbur at gmail.com>
> Date: 11/18/2016 02:13 AM
> Subject: [PATCH] aspeed-bmc-opp-palmetto: Add GPIO hogs to devicetree
> Sent by: "openbmc" <openbmc-bounces+cbostic=us.ibm.com at lists.ozlabs.org>
>
> ________________________________
>
>
>

Hi Andrew,

I notice Pin H6 is in your list assigned as a gpio-hog.   This is a
pin I use for the voltage direction control via the translator for
openFSI.  Not familiar with the history here but is that pin being
used for other purposes or is required to be flagged as a gpio-hog?
Currently I'm attempting to grab a descriptor for this without that
requirement.

Thanks,
Chris


> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> index 21619fd8cd8d..5c689613e5bd 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
> @@ -167,6 +167,133 @@
> output-low;
> line-name = "func_mode2";
> };
> +
> + pin_gpio_a0 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(A, 0) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "A0";
> + };
> +
> + pin_gpio_a1 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "A1";
> + };
> +
> + pin_gpio_b1 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "B1";
> + };
> +
> + pin_gpio_b2 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "B2";
> + };
> +
> + pin_gpio_b7 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "B7";
> + };
> +
> + pin_gpio_d1 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "D1";
> + };
> +
> + pin_gpio_f1 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "F1";
> + };
> +
> + pin_gpio_f4 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "F4";
> + };
> +
> + pin_gpio_f5 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "F5";
> + };
> +
> + pin_gpio_f7 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(F, 7) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "F7";
> + };
> +
> + pin_gpio_g3 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(G, 3) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "G3";
> + };
> +
> + pin_gpio_g4 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "G4";
> + };
> +
> + pin_gpio_g5 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(G, 5) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "G5";
> + };
> +
> + pin_gpio_h0 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "H0";
> + };
> +
> + pin_gpio_h1 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
> + input;
> + line-name = "H1";
> + };
> +
> + pin_gpio_h2 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "H2";
> + };
> +
> + pin_gpio_h6 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "H6";
> + };
> +
> + pin_gpio_h7 {
> + gpio-hog;
> + gpios = <ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
> + output-high;
> + line-name = "H7";
> + };
> +
> };
>
> &vuart {
> --
> 2.7.4
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
>
>


More information about the openbmc mailing list