From: Andrew Jeffery <andrew@aj.id.au>
To: Xo Wang <xow@google.com>
Cc: "Joel Stanley" <joel@jms.id.au>,
"OpenBMC Maillist" <openbmc@lists.ozlabs.org>,
"Cédric Le Goater" <clg@kaod.org>, Mine <mine260309@gmail.com>,
"Rick Altherr" <raltherr@google.com>
Subject: Re: [PATCH linux dev-4.10 05/10] aspeed: zaius: Disable GPIO bias via devicetree pinconf requests
Date: Fri, 28 Apr 2017 13:04:39 +0930 [thread overview]
Message-ID: <1493350479.4433.10.camel@aj.id.au> (raw)
In-Reply-To: <CAPH-5w46rey_4d=enxOPwvjbZp2aL8smNZ6DMGPQraQtaFt3OQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4381 bytes --]
On Thu, 2017-04-27 at 10:16 -0700, Xo Wang wrote:
> Hi Andrew,
>
> > On Wed, Apr 26, 2017 at 11:08 PM, Andrew Jeffery <andrew@aj.id.au> wrote:
> > Given there are fixes presumably present in revisions beyond EVT1, the
> > special-casing done in the board file is implemented by separate
> > devicetrees.
>
> I don't think anyone is using EVT1 boards any more. They don't boot
> CPUs.
Alright, I'll drop the support. Less code is better :)
> However, I like this approach for plumbing board special-casing
> and we'll probably have to do it for EVT/DVT differences.
> >
> > > > Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
> > ---
> > arch/arm/boot/dts/Makefile | 1 +
> > arch/arm/boot/dts/aspeed-bmc-opp-zaius-evt1.dts | 20 ++++++++++++++++++++
> > arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 10 ++++++++++
> > arch/arm/mach-aspeed/aspeed.c | 11 -----------
> > 4 files changed, 31 insertions(+), 11 deletions(-)
> > create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-zaius-evt1.dts
> >
> > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> > index 6127fd94591c..6102e7bd21ae 100644
> > --- a/arch/arm/boot/dts/Makefile
> > +++ b/arch/arm/boot/dts/Makefile
> > @@ -989,6 +989,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
> > aspeed-bmc-opp-garrison.dtb \
> > aspeed-bmc-opp-witherspoon.dtb \
> > aspeed-bmc-opp-zaius.dtb \
> > + aspeed-bmc-opp-zaius-evt1.dtb \
> > aspeed-ast2500-evb.dtb
> > endif
> >
> > diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius-evt1.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius-evt1.dts
> > new file mode 100644
> > index 000000000000..21b87a5dbae3
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius-evt1.dts
> > @@ -0,0 +1,20 @@
> > +#include "aspeed-bmc-opp-zaius.dts"
> > +
> > +&pinctrl {
> > + pinctrl_gpiogab_unbiased: gpiogab_unbiased {
> > + pins = "A14", "E13", "D13", "C13", "B13", "Y21", "AA22", "U18";
> > + bias-disable;
> > + };
> > +
> > + pinctrl_gpioi_unbiased: gpioi_unbiased {
> > + pins = "C22", "G18", "D19", "C20", "B22", "G19", "C18", "E20";
> > + bias-disable;
> > + };
> > +};
> > +
> > +&gpio {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_gpioh_unbiased
> > + &pinctrl_gpiogab_unbiased
> > + &pinctrl_gpioi_unbiased>;
> > +};
> > diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> > index 73496c8d50f6..c6e58c5b4df1 100644
> > --- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> > +++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> > @@ -359,4 +359,14 @@
> >
> > &pinctrl {
> > aspeed,external-nodes = <&gfx &lhc>;
> > +
> > + pinctrl_gpioh_unbiased: gpioi_unbiased {
> > + pins = "A8", "C7", "B7", "A7", "D7", "B6", "A6", "E7";
> > + bias-disable;
> > + };
> > +};
> > +
> > +&gpio {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_gpioh_unbiased>;
> > };
>
> Looks good.
>
> > diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
> > index b3aba87964bf..f73a72676437 100644
> > --- a/arch/arm/mach-aspeed/aspeed.c
> > +++ b/arch/arm/mach-aspeed/aspeed.c
> > @@ -124,17 +124,6 @@ static void __init do_zaius_setup(void)
> > reg = readl(AST_IO(AST_BASE_GPIO | 0x78));
> > board_rev = (reg >> 3) & 0x1F;
> >
> > - /* EVT1 hacks */
> > - if (board_rev == 0) {
> > - /* Disable GPIO I, G/AB pulldowns due to weak driving buffers */
> > - reg = readl(AST_IO(AST_BASE_SCU | 0x8C));
> > - writel(reg | BIT(24) | BIT(22), AST_IO(AST_BASE_SCU | 0x8C));
> > - }
>
> Please remove this code (in a separate commit if you prefer) and omit
> aspeed-bmc-opp-zaius-evt1.dts.
Yes, will do.
Cheers,
Andrew
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-04-28 3:34 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 6:08 [PATCH linux dev-4.10 00/10] Clean up mach-aspeed/aspeed.c Andrew Jeffery
2017-04-27 6:08 ` [PATCH linux dev-4.10 01/10] aspeed: barreleye: Remove unnecessary GPIO configuration Andrew Jeffery
2017-04-27 6:08 ` [PATCH linux dev-4.10 02/10] aspeed: barreleye: Passthrough debounce isn't required Andrew Jeffery
2017-04-27 6:08 ` [PATCH linux dev-4.10 03/10] aspeed: barreleye: Debounce BMC_PWBTN_IN_N through devicetree Andrew Jeffery
2017-04-27 6:08 ` [PATCH linux dev-4.10 04/10] aspeed: garrison: Request RGMII and MDIO " Andrew Jeffery
2017-04-28 1:26 ` Lei YU
2017-04-28 5:09 ` Andrew Jeffery
2017-04-27 6:08 ` [PATCH linux dev-4.10 05/10] aspeed: zaius: Disable GPIO bias via devicetree pinconf requests Andrew Jeffery
2017-04-27 17:16 ` Xo Wang
2017-04-28 0:38 ` Joel Stanley
2017-04-28 3:36 ` Andrew Jeffery
2017-04-28 3:34 ` Andrew Jeffery [this message]
2017-04-27 6:08 ` [PATCH linux dev-4.10 06/10] aspeed: zaius: Remove LPC-to-AHB bridge configuration Andrew Jeffery
2017-04-27 17:17 ` Xo Wang
2017-04-28 0:54 ` Joel Stanley
2017-04-27 6:08 ` [PATCH linux dev-4.10 07/10] aspeed: zaius: Remove manual CS decoding window configuration Andrew Jeffery
2017-04-27 6:57 ` Cédric Le Goater
2017-04-27 17:20 ` Xo Wang
2017-04-28 0:53 ` Joel Stanley
2017-04-27 6:08 ` [PATCH linux dev-4.10 08/10] aspeed: witherspoon: Remove LPC-to-AHB bridge configuration Andrew Jeffery
2017-04-28 0:55 ` Joel Stanley
2017-04-27 6:08 ` [PATCH linux dev-4.10 09/10] aspeed: witherspoon: Remove manual CS decoding window configuration Andrew Jeffery
2017-04-27 6:56 ` Cédric Le Goater
2017-04-28 0:54 ` Joel Stanley
2017-04-27 6:08 ` [PATCH linux dev-4.10 10/10] aspeed: romulus: " Andrew Jeffery
2017-04-27 6:57 ` Cédric Le Goater
2017-04-28 0:53 ` Joel Stanley
2017-04-28 0:54 ` Andrew Jeffery
2017-04-28 0:56 ` [PATCH linux dev-4.10 00/10] Clean up mach-aspeed/aspeed.c Joel Stanley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1493350479.4433.10.camel@aj.id.au \
--to=andrew@aj.id.au \
--cc=clg@kaod.org \
--cc=joel@jms.id.au \
--cc=mine260309@gmail.com \
--cc=openbmc@lists.ozlabs.org \
--cc=raltherr@google.com \
--cc=xow@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.