From: Rob Herring <robh@kernel.org>
To: Christian Lamparter <chunkeey@googlemail.com>
Cc: linux-gpio@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
devicetree@vger.kernel.org, Kumar Gala <galak@codeaurora.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Mark Rutland <mark.rutland@arm.com>,
Pawel Moll <pawel.moll@arm.com>,
Alexandre Courbot <gnurou@gmail.com>,
Alistair Popple <alistair@popple.id.au>,
Matt Porter <mporter@kernel.crashing.org>,
Linus Walleij <linus.walleij@linaro.org>
Subject: Re: [PATCH] gpio: dt-bindings: add ibm,ppc4xx-gpio binding
Date: Mon, 16 May 2016 11:56:18 -0500 [thread overview]
Message-ID: <20160516165618.GA29776@rob-hp-laptop> (raw)
In-Reply-To: <20160516152746.GA13649@rob-hp-laptop>
On Mon, May 16, 2016 at 10:27:46AM -0500, Rob Herring wrote:
> On Thu, May 12, 2016 at 12:07:48AM +0200, Christian Lamparter wrote:
> > This patch adds binding information for IBM/AMCC/APM GPIO
> > Controllers of the PowerPC 4XX series and compatible SoCs.
> >
> > The "PowerPC 405EP Embedded Processor Data Sheet" has the
> > following to say about the GPIO controllers: "
> >
> > - Controller functions and GPIO registers are programmed
> > and accessed via memory-mapped OPB bus master accesses
> >
> > - All GPIOs are pin-shared with other functions. DCRs control
> > whether a particular pin that has GPIO capabilities acts
> > as a GPIO or is used for another purpose.
> >
> > - Each GPIO outputs is separately programmable to emulate
> > an open-drain driver (i.e. drives to zero, threestated if
> > output bit is 1)
> >
> > "
> > The ppc4xx_gpio.c driver is part of the platform/sysdev drivers
> > in arch/powerpc/sysdev.
> >
> > Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
> > ---
> > I looked into arch/powerpc/sysdev/ppc4xx_gpio.c driver and
> > it doesn't have support for the tri-state logic (open drain
> > is disabled), but the hardware would support it.
> > (the #gpio-cells description suffers because of this, since
> > the high-z option isn't there).
> >
> > Also there's another problem: There's no DCR pinmux driver?!
> > So sadly, there's not much information on how to use the DCRs
> > to control the which pin is muxed to the GPIO or to a SoC
> > function like the i2c.
> >
> > This was all the valuable information I could find about the
> > hardware, so it is included it in the binding text, even
> > though there's no support for it... Is there anything else
> > to add?
> > ---
> > .../devicetree/bindings/gpio/ibm,ppc4xx-gpio.txt | 24 ++++++++++++++++++++++
> > 1 file changed, 24 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/gpio/ibm,ppc4xx-gpio.txt
>
> Normally, we don't allow wildcards for compatible strings, but given
> this is an established binding it is okay.
>
> Acked-by: Rob Herring <robh@kernel.org>
As this is just a binding doc, I've applied it.
Rob
next prev parent reply other threads:[~2016-05-16 16:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-11 22:07 [PATCH] gpio: dt-bindings: add ibm,ppc4xx-gpio binding Christian Lamparter
2016-05-16 15:27 ` Rob Herring
2016-05-16 16:56 ` Rob Herring [this message]
2016-05-24 11:43 ` Linus Walleij
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=20160516165618.GA29776@rob-hp-laptop \
--to=robh@kernel.org \
--cc=alistair@popple.id.au \
--cc=chunkeey@googlemail.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gnurou@gmail.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mark.rutland@arm.com \
--cc=mporter@kernel.crashing.org \
--cc=pawel.moll@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox