From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH] gpio: add Tegra186 GPIO driver
Date: Wed, 27 Apr 2016 10:01:37 -0600 [thread overview]
Message-ID: <5720E261.3010209@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ0S62kDwVGkXP68D0QO+r3jKVnHBnSrU87S6aPiJQXmhQ@mail.gmail.com>
On 04/27/2016 09:12 AM, Simon Glass wrote:
> Hi Stephen,
>
> On 20 April 2016 at 17:28, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> Tegra186's GPIO controller register layout is significantly different from
>> previous chips, so add a new driver for it. In fact, there are two
>> different GPIO controllers in Tegra186 that share a similar register
>> layout, but very different port mapping. This driver covers both.
>>
>> The DT binding is already present in the Linux kernel (FIXME: Validate
>> this when submitting).
>> FIXME: Add DT binding file to this commit.
>>
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>> arch/arm/mach-tegra/Kconfig | 3 +
>> drivers/gpio/Kconfig | 9 +
>> drivers/gpio/Makefile | 1 +
>> drivers/gpio/tegra186_gpio.c | 271 +++++++++++++++++++++++++++++++
>> drivers/gpio/tegra186_gpio_priv.h | 61 +++++++
>> include/dt-bindings/gpio/tegra186-gpio.h | 56 +++++++
>> 6 files changed, 401 insertions(+)
>> create mode 100644 drivers/gpio/tegra186_gpio.c
>> create mode 100644 drivers/gpio/tegra186_gpio_priv.h
>> create mode 100644 include/dt-bindings/gpio/tegra186-gpio.h
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> My only comment is that tegra186_gpio_get_value() should return 0 or 1.
Thanks, fixed locally. As you may have noticed, I actually sent that
patch out accidentally when I meant to send something else. Still, the
remaining work is in the binding approval and addition to this patch,
not the code you reviewed which I don't expect will change:-)
> I haven't seen the device tree, but presumably it is just a single node?
There's one DT node per top-level controller instance. The patch I sent
for that is at:
https://patchwork.ozlabs.org/patch/609516/
[V2] ARM: tegra: add DT binding for Tegra186 GPIO controllers
next prev parent reply other threads:[~2016-04-27 16:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 23:28 [U-Boot] [RFC PATCH] gpio: add Tegra186 GPIO driver Stephen Warren
2016-04-20 23:30 ` Stephen Warren
2016-04-27 15:12 ` Simon Glass
2016-04-27 16:01 ` Stephen Warren [this message]
2016-04-29 14:02 ` Simon Glass
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=5720E261.3010209@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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.