From: Grant Likely <grant.likely@secretlab.ca>
To: swarren@wwwdotorg.org, rob@landley.net, rob.herring@calxeda.com
Cc: devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org,
linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
Laxman Dewangan <ldewangan@nvidia.com>
Subject: Re: [PATCH] Doc: dt: i2c: tegra: add dt binding for i2c-tegra
Date: Mon, 15 Apr 2013 14:08:44 +0100 [thread overview]
Message-ID: <20130415130844.C26CE3E0AA8@localhost> (raw)
In-Reply-To: <1363599350-25187-1-git-send-email-ldewangan@nvidia.com>
On Mon, 18 Mar 2013 15:05:50 +0530, Laxman Dewangan <ldewangan@nvidia.com> wrote:
> Add documentation for device tree binding of NVIDIA's Tegra i2c
> controller driver.
>
> Describing all compatible values used for diffenent Tegra SoCs
> in details in this documentation.
>
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Looks fine by me
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Should be merged with the driver series.
g.
> ---
> .../devicetree/bindings/i2c/nvidia,tegra20-i2c.txt | 99 ++++++++++++++++++++
> 1 files changed, 99 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt
>
> diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt
> new file mode 100644
> index 0000000..e390ce8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt
> @@ -0,0 +1,99 @@
> +NVIDIA Tegra20/Tegra30/Tegra114 I2C controller driver.
> +
> +Required properties:
> +- compatible : should be:
> + "nvidia,tegra114-i2c"
> + "nvidia,tegra30-i2c"
> + "nvidia,tegra20-i2c"
> + "nvidia,tegra20-i2c-dvc"
> +
> + Details of compatible are as follows:
> + nvidia,tegra20-i2c-dvc: Tegra20 has specific i2c controller called as DVC I2C
> + controller. This only support master mode of I2C communication. Register
> + interface/offset and interrupts handling are different than generic I2C
> + controller. Driver of DVC I2C controller is only compatible with
> + "nvidia,tegra20-i2c-dvc".
> + nvidia,tegra20-i2c: Tegra20 has 4 generic I2C controller. This can support
> + master and slave mode of I2C communication. The i2c-tegra driver only
> + support master mode of I2C communication. Driver of I2C controller is
> + only compatible with "nvidia,tegra20-i2c".
> + nvidia,tegra30-i2c: Tegra30 has 5 generic I2C controller. This controller is
> + very much similar to Tegra20 I2C controller with additional feature:
> + Continue Transfer Support. This feature helps to implement M_NO_START
> + as per I2C core API transfer flags. Driver of I2C controller is
> + compatible with "nvidia,tegra30-i2c" to enable the continue transfer
> + support. This is also compatible with "nvidia,tegra20-i2c" without
> + continue transfer support.
> + nvidia,tegra114-i2c: Tegra114 has 5 generic I2C controller. This controller is
> + very much similar to Tegra30 I2C controller with some hardware
> + modification:
> + - Tegra30/Tegra20 I2C controller has 2 clock source called div-clk and
> + fast-clk. Tegra114 has only one clock source called as div-clk and
> + hence clock mechanism is changed in I2C controller.
> + - Tegra30/Tegra20 I2C controller has enabled per packet transfer by
> + default and there is no way to disable it. Tegra114 has this
> + interrupt disable by default and SW need to enable explicitly.
> + Due to above changes, Tegra114 I2C driver makes incompatible with
> + previous hardware driver. Hence, tegra114 I2C controller is compatible
> + with "nvidia,tegra114-i2c".
> +
> +
> +- reg: Should contain I2C controller registers physical address and length.
> +- interrupts: Should contain I2C controller interrupts.
> +- address-cells: Address cells for I2C device address.
> +- size-cells: Size of the I2C device address.
> +- clocks: Clock Id as per
> + Documentation/devicetree/bindings/clock/tegra<chip-id>.txt
> + for I2C controller.
> +- clock-names: Name of the clock:
> + Tegra20/Tegra30 I2C controller: "div-clk and "fast-clk".
> + Tegra114 I2C controller: "div-clk".
> +
> +
> +Typical i2c node for Tegra20:
> + i2c@7000c000 {
> + compatible = "nvidia,tegra20-i2c";
> + reg = <0x7000c000 0x100>;
> + interrupts = <0 38 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&tegra_car 12>, <&tegra_car 124>;
> + clock-names = "div-clk", "fast-clk";
> + status = "disabled";
> + };
> +
> +Typical dvc-i2c node for Tegra20:
> + i2c@7000d000 {
> + compatible = "nvidia,tegra20-i2c-dvc";
> + reg = <0x7000d000 0x200>;
> + interrupts = <0 53 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&tegra_car 47>, <&tegra_car 124>;
> + clock-names = "div-clk", "fast-clk";
> + status = "disabled";
> + };
> +
> +Typical i2c node for Tegra30:
> + i2c@7000c000 {
> + compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c";
> + reg = <0x7000c000 0x100>;
> + interrupts = <0 38 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&tegra_car 12>, <&tegra_car 182>;
> + clock-names = "div-clk", "fast-clk";
> + status = "disabled";
> + };
> +
> +Typical i2c node for Tegra114:
> + i2c@7000c000 {
> + compatible = "nvidia,tegra114-i2c";
> + reg = <0x7000c000 0x100>;
> + interrupts = <0 38 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + clocks = <&tegra_car 12>;
> + clock-names = "div-clk";
> + };
> --
> 1.7.1.1
>
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies, Ltd.
WARNING: multiple messages have this Message-ID (diff)
From: Grant Likely <grant.likely@secretlab.ca>
To: Laxman Dewangan <ldewangan@nvidia.com>,
swarren@wwwdotorg.org, rob@landley.net, rob.herring@calxeda.com
Cc: devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org,
linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
Laxman Dewangan <ldewangan@nvidia.com>
Subject: Re: [PATCH] Doc: dt: i2c: tegra: add dt binding for i2c-tegra
Date: Mon, 15 Apr 2013 14:08:44 +0100 [thread overview]
Message-ID: <20130415130844.C26CE3E0AA8@localhost> (raw)
In-Reply-To: <1363599350-25187-1-git-send-email-ldewangan@nvidia.com>
On Mon, 18 Mar 2013 15:05:50 +0530, Laxman Dewangan <ldewangan@nvidia.com> wrote:
> Add documentation for device tree binding of NVIDIA's Tegra i2c
> controller driver.
>
> Describing all compatible values used for diffenent Tegra SoCs
> in details in this documentation.
>
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Looks fine by me
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Should be merged with the driver series.
g.
> ---
> .../devicetree/bindings/i2c/nvidia,tegra20-i2c.txt | 99 ++++++++++++++++++++
> 1 files changed, 99 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt
>
> diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt
> new file mode 100644
> index 0000000..e390ce8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.txt
> @@ -0,0 +1,99 @@
> +NVIDIA Tegra20/Tegra30/Tegra114 I2C controller driver.
> +
> +Required properties:
> +- compatible : should be:
> + "nvidia,tegra114-i2c"
> + "nvidia,tegra30-i2c"
> + "nvidia,tegra20-i2c"
> + "nvidia,tegra20-i2c-dvc"
> +
> + Details of compatible are as follows:
> + nvidia,tegra20-i2c-dvc: Tegra20 has specific i2c controller called as DVC I2C
> + controller. This only support master mode of I2C communication. Register
> + interface/offset and interrupts handling are different than generic I2C
> + controller. Driver of DVC I2C controller is only compatible with
> + "nvidia,tegra20-i2c-dvc".
> + nvidia,tegra20-i2c: Tegra20 has 4 generic I2C controller. This can support
> + master and slave mode of I2C communication. The i2c-tegra driver only
> + support master mode of I2C communication. Driver of I2C controller is
> + only compatible with "nvidia,tegra20-i2c".
> + nvidia,tegra30-i2c: Tegra30 has 5 generic I2C controller. This controller is
> + very much similar to Tegra20 I2C controller with additional feature:
> + Continue Transfer Support. This feature helps to implement M_NO_START
> + as per I2C core API transfer flags. Driver of I2C controller is
> + compatible with "nvidia,tegra30-i2c" to enable the continue transfer
> + support. This is also compatible with "nvidia,tegra20-i2c" without
> + continue transfer support.
> + nvidia,tegra114-i2c: Tegra114 has 5 generic I2C controller. This controller is
> + very much similar to Tegra30 I2C controller with some hardware
> + modification:
> + - Tegra30/Tegra20 I2C controller has 2 clock source called div-clk and
> + fast-clk. Tegra114 has only one clock source called as div-clk and
> + hence clock mechanism is changed in I2C controller.
> + - Tegra30/Tegra20 I2C controller has enabled per packet transfer by
> + default and there is no way to disable it. Tegra114 has this
> + interrupt disable by default and SW need to enable explicitly.
> + Due to above changes, Tegra114 I2C driver makes incompatible with
> + previous hardware driver. Hence, tegra114 I2C controller is compatible
> + with "nvidia,tegra114-i2c".
> +
> +
> +- reg: Should contain I2C controller registers physical address and length.
> +- interrupts: Should contain I2C controller interrupts.
> +- address-cells: Address cells for I2C device address.
> +- size-cells: Size of the I2C device address.
> +- clocks: Clock Id as per
> + Documentation/devicetree/bindings/clock/tegra<chip-id>.txt
> + for I2C controller.
> +- clock-names: Name of the clock:
> + Tegra20/Tegra30 I2C controller: "div-clk and "fast-clk".
> + Tegra114 I2C controller: "div-clk".
> +
> +
> +Typical i2c node for Tegra20:
> + i2c@7000c000 {
> + compatible = "nvidia,tegra20-i2c";
> + reg = <0x7000c000 0x100>;
> + interrupts = <0 38 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&tegra_car 12>, <&tegra_car 124>;
> + clock-names = "div-clk", "fast-clk";
> + status = "disabled";
> + };
> +
> +Typical dvc-i2c node for Tegra20:
> + i2c@7000d000 {
> + compatible = "nvidia,tegra20-i2c-dvc";
> + reg = <0x7000d000 0x200>;
> + interrupts = <0 53 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&tegra_car 47>, <&tegra_car 124>;
> + clock-names = "div-clk", "fast-clk";
> + status = "disabled";
> + };
> +
> +Typical i2c node for Tegra30:
> + i2c@7000c000 {
> + compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c";
> + reg = <0x7000c000 0x100>;
> + interrupts = <0 38 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&tegra_car 12>, <&tegra_car 182>;
> + clock-names = "div-clk", "fast-clk";
> + status = "disabled";
> + };
> +
> +Typical i2c node for Tegra114:
> + i2c@7000c000 {
> + compatible = "nvidia,tegra114-i2c";
> + reg = <0x7000c000 0x100>;
> + interrupts = <0 38 0x04>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + clocks = <&tegra_car 12>;
> + clock-names = "div-clk";
> + };
> --
> 1.7.1.1
>
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies, Ltd.
next prev parent reply other threads:[~2013-04-15 13:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 9:35 [PATCH] Doc: dt: i2c: tegra: add dt binding for i2c-tegra Laxman Dewangan
2013-03-18 9:35 ` Laxman Dewangan
2013-03-19 17:35 ` Stephen Warren
2013-04-15 13:08 ` Grant Likely [this message]
2013-04-15 13:08 ` Grant Likely
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=20130415130844.C26CE3E0AA8@localhost \
--to=grant.likely@secretlab.ca \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=ldewangan@nvidia.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@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 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.