devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: Ashwini Ghuge <aghuge@nvidia.com>
Cc: "rob.herring@calxeda.com" <rob.herring@calxeda.com>,
	Pawel Moll <Pawel.Moll@arm.com>,
	"swarren@wwwdotorg.org" <swarren@wwwdotorg.org>,
	"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
	"rob@landley.net" <rob@landley.net>,
	"linus.walleij@linaro.org" <linus.walleij@linaro.org>,
	"grant.likely@linaro.org" <grant.likely@linaro.org>,
	"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH] pinctrl: tegra124: add pinctrl driver for NVIDIA's Tegra124 SoC
Date: Mon, 11 Nov 2013 18:01:24 +0000	[thread overview]
Message-ID: <20131111180124.GA27735@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1384191718-16817-1-git-send-email-aghuge@nvidia.com>

On Mon, Nov 11, 2013 at 05:41:58PM +0000, Ashwini Ghuge wrote:
> The driver uses the common Tegra pinctrl driver utility functions to
> implement the majority of the driver. It is based on the similar Tegra114
> pinctrl
> 
> Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
> ---
>  .../bindings/pinctrl/nvidia,tegra124-pinctrl.txt   |  120 +
>  drivers/pinctrl/Kconfig                            |    4 +
>  drivers/pinctrl/Makefile                           |    1 +
>  drivers/pinctrl/pinctrl-tegra124.c                 | 3125 ++++++++++++++++++++
>  4 files changed, 3250 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinctrl.txt
>  create mode 100644 drivers/pinctrl/pinctrl-tegra124.c
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinctrl.txt
> new file mode 100644
> index 0000000..9d39ab9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinctrl.txt
> @@ -0,0 +1,120 @@
> +NVIDIA Tegra124 pinmux controller
> +
> +The Tegra124 pinctrl binding is very similar to the Tegra114
> +pinctrl binding, as described in nvidia,tegra114-pinmux.txt. In fact, this
> +document assumes that binding as a baseline, and only documents the
> +differences between the two bindings.
> +
> +Required properties:
> +- compatible: "nvidia,tegra124-pinmux"
> +- reg: Should contain the register physical address and length for each of
> +  the pad control and mux registers. The first bank of address must be the
> +  driver strength pad control register address and second bank address must
> +  be pinmux register address.

It might be worth using reg-names here, in case a future hardware
variant builds atop of this.

> +
> +Tegra124 has the following optional properties for pin configuration subnodes:
> +- nvidia,enable-input: Integer. Enable the pin's input path. 0: no, 1: yes.

Why are the properties representing boolean values not empty / boolean
properties (as can be handled in the kernel with of_property_read_bool)?

> +- nvidia,open-drain: Integer. Enable open drain mode. 0: no, 1: yes.
> +- nvidia,lock: Integer. Lock the pin configuration against further changes
> +    until reset. 0: no, 1: yes.
> +- nvidia,io-reset: Integer. Reset the IO path. 0: no, 1: yes.
> +- nvidia,rcv-sel: Integer. Select VIL/VIH receivers. 0: normal, 1: high.

Why not just have nvidia,rcv-high as a boolean property, and default to
normal?

> +- nvidia,drive-type: Integer. Valid range 0...3.

What do these values mean?

> +
> +As with Tegra114, see the Tegra TRM for complete details regarding which
> +groups support which functionality.

Where can I find this TRM?

[...]

> +Example:
> +
> +       pinmux: pinmux {
> +               compatible = "nvidia,tegra124-pinmux";
> +               reg = <0x70000868 0x148         /* Pad control registers */
> +                       0x70003000 0x40c>;      /* PinMux registers */

For consistency, please bracket entries in lists individually:

reg = <0x70000868 0x148>,      /* Pad control registers */
      <0x70003000 0x40c>;      /* PinMux registers */

Cheers,
Mark.

  reply	other threads:[~2013-11-11 18:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-11 17:41 [PATCH] pinctrl: tegra124: add pinctrl driver for NVIDIA's Tegra124 SoC Ashwini Ghuge
2013-11-11 18:01 ` Mark Rutland [this message]
     [not found]   ` <20131111180124.GA27735-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-11 18:24     ` Stephen Warren
     [not found]       ` <528120EF.1030000-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-12  9:19         ` Mark Rutland
2013-12-04 19:30 ` Stephen Warren

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=20131111180124.GA27735@e106331-lin.cambridge.arm.com \
    --to=mark.rutland@arm.com \
    --cc=Pawel.Moll@arm.com \
    --cc=aghuge@nvidia.com \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@linaro.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linus.walleij@linaro.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=swarren@wwwdotorg.org \
    /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;
as well as URLs for NNTP newsgroup(s).