From: sebastian.hesselbarth@gmail.com (Sebastian Hesselbarth)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: dts: berlin: add I2C nodes for BG2Q
Date: Mon, 16 Jun 2014 13:22:50 +0200 [thread overview]
Message-ID: <539ED38A.3010205@gmail.com> (raw)
In-Reply-To: <1401780790-17830-2-git-send-email-antoine.tenart@free-electrons.com>
On 06/03/2014 09:33 AM, Antoine T?nart wrote:
> The Marvell Berlin BG2Q has 4 TWSI compatible with the Synopsys
> DesignWare I2C driver. Add the corresponding nodes.
>
> The pin-muxing setup is also done here, since there cannot be another
> muxing setup if I2C{0,1,2,3} are enabled.
>
> Signed-off-by: Antoine T?nart <antoine.tenart@free-electrons.com>
Applied to berlin/dt.
Thanks!
> ---
> arch/arm/boot/dts/berlin2q.dtsi | 72 +++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 72 insertions(+)
>
> diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
> index 635a16a64cb4..0624868e36e3 100644
> --- a/arch/arm/boot/dts/berlin2q.dtsi
> +++ b/arch/arm/boot/dts/berlin2q.dtsi
> @@ -191,6 +191,32 @@
> };
> };
>
> + i2c0: i2c at 1400 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1400 0x100>;
> + interrupt-parent = <&aic>;
> + interrupts = <4>;
> + clocks = <&chip CLKID_CFG>;
> + pinctrl-0 = <&twsi0_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> + i2c1: i2c at 1800 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1800 0x100>;
> + interrupt-parent = <&aic>;
> + interrupts = <5>;
> + clocks = <&chip CLKID_CFG>;
> + pinctrl-0 = <&twsi1_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> timer0: timer at 2c00 {
> compatible = "snps,dw-apb-timer";
> reg = <0x2c00 0x14>;
> @@ -301,6 +327,16 @@
> reg = <0xea0000 0x400>, <0xdd0170 0x10>;
> clocks = <&refclk>;
> clock-names = "refclk";
> +
> + twsi0_pmux: twsi0-pmux {
> + groups = "G6";
> + function = "twsi0";
> + };
> +
> + twsi1_pmux: twsi1-pmux {
> + groups = "G7";
> + function = "twsi1";
> + };
> };
>
> apb at fc0000 {
> @@ -311,6 +347,32 @@
> ranges = <0 0xfc0000 0x10000>;
> interrupt-parent = <&sic>;
>
> + i2c2: i2c at 7000 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x7000 0x100>;
> + interrupt-parent = <&sic>;
> + interrupts = <6>;
> + clocks = <&refclk>;
> + pinctrl-0 = <&twsi2_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> + i2c3: i2c at 8000 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x8000 0x100>;
> + interrupt-parent = <&sic>;
> + interrupts = <7>;
> + clocks = <&refclk>;
> + pinctrl-0 = <&twsi3_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> uart0: uart at 9000 {
> compatible = "snps,dw-apb-uart";
> reg = <0x9000 0x100>;
> @@ -348,6 +410,16 @@
> groups = "GSM14";
> function = "uart1";
> };
> +
> + twsi2_pmux: twsi2-pmux {
> + groups = "GSM13";
> + function = "twsi2";
> + };
> +
> + twsi3_pmux: twsi3-pmux {
> + groups = "GSM14";
> + function = "twsi3";
> + };
> };
>
> sic: interrupt-controller at e000 {
>
WARNING: multiple messages have this Message-ID (diff)
From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
To: "Antoine Ténart" <antoine.tenart@free-electrons.com>
Cc: alexandre.belloni@free-electrons.com,
thomas.petazzoni@free-electrons.com, zmxu@marvell.com,
jszhang@marvell.com, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: dts: berlin: add I2C nodes for BG2Q
Date: Mon, 16 Jun 2014 13:22:50 +0200 [thread overview]
Message-ID: <539ED38A.3010205@gmail.com> (raw)
In-Reply-To: <1401780790-17830-2-git-send-email-antoine.tenart@free-electrons.com>
On 06/03/2014 09:33 AM, Antoine Ténart wrote:
> The Marvell Berlin BG2Q has 4 TWSI compatible with the Synopsys
> DesignWare I2C driver. Add the corresponding nodes.
>
> The pin-muxing setup is also done here, since there cannot be another
> muxing setup if I2C{0,1,2,3} are enabled.
>
> Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
Applied to berlin/dt.
Thanks!
> ---
> arch/arm/boot/dts/berlin2q.dtsi | 72 +++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 72 insertions(+)
>
> diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
> index 635a16a64cb4..0624868e36e3 100644
> --- a/arch/arm/boot/dts/berlin2q.dtsi
> +++ b/arch/arm/boot/dts/berlin2q.dtsi
> @@ -191,6 +191,32 @@
> };
> };
>
> + i2c0: i2c@1400 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1400 0x100>;
> + interrupt-parent = <&aic>;
> + interrupts = <4>;
> + clocks = <&chip CLKID_CFG>;
> + pinctrl-0 = <&twsi0_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> + i2c1: i2c@1800 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1800 0x100>;
> + interrupt-parent = <&aic>;
> + interrupts = <5>;
> + clocks = <&chip CLKID_CFG>;
> + pinctrl-0 = <&twsi1_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> timer0: timer@2c00 {
> compatible = "snps,dw-apb-timer";
> reg = <0x2c00 0x14>;
> @@ -301,6 +327,16 @@
> reg = <0xea0000 0x400>, <0xdd0170 0x10>;
> clocks = <&refclk>;
> clock-names = "refclk";
> +
> + twsi0_pmux: twsi0-pmux {
> + groups = "G6";
> + function = "twsi0";
> + };
> +
> + twsi1_pmux: twsi1-pmux {
> + groups = "G7";
> + function = "twsi1";
> + };
> };
>
> apb@fc0000 {
> @@ -311,6 +347,32 @@
> ranges = <0 0xfc0000 0x10000>;
> interrupt-parent = <&sic>;
>
> + i2c2: i2c@7000 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x7000 0x100>;
> + interrupt-parent = <&sic>;
> + interrupts = <6>;
> + clocks = <&refclk>;
> + pinctrl-0 = <&twsi2_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> + i2c3: i2c@8000 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x8000 0x100>;
> + interrupt-parent = <&sic>;
> + interrupts = <7>;
> + clocks = <&refclk>;
> + pinctrl-0 = <&twsi3_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> uart0: uart@9000 {
> compatible = "snps,dw-apb-uart";
> reg = <0x9000 0x100>;
> @@ -348,6 +410,16 @@
> groups = "GSM14";
> function = "uart1";
> };
> +
> + twsi2_pmux: twsi2-pmux {
> + groups = "GSM13";
> + function = "twsi2";
> + };
> +
> + twsi3_pmux: twsi3-pmux {
> + groups = "GSM14";
> + function = "twsi3";
> + };
> };
>
> sic: interrupt-controller@e000 {
>
WARNING: multiple messages have this Message-ID (diff)
From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
To: "Antoine Ténart" <antoine.tenart@free-electrons.com>
Cc: alexandre.belloni@free-electrons.com,
thomas.petazzoni@free-electrons.com, zmxu@marvell.com,
jszhang@marvell.com, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: dts: berlin: add I2C nodes for BG2Q
Date: Mon, 16 Jun 2014 13:22:50 +0200 [thread overview]
Message-ID: <539ED38A.3010205@gmail.com> (raw)
In-Reply-To: <1401780790-17830-2-git-send-email-antoine.tenart@free-electrons.com>
On 06/03/2014 09:33 AM, Antoine Ténart wrote:
> The Marvell Berlin BG2Q has 4 TWSI compatible with the Synopsys
> DesignWare I2C driver. Add the corresponding nodes.
>
> The pin-muxing setup is also done here, since there cannot be another
> muxing setup if I2C{0,1,2,3} are enabled.
>
> Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
Applied to berlin/dt.
Thanks!
> ---
> arch/arm/boot/dts/berlin2q.dtsi | 72 +++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 72 insertions(+)
>
> diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
> index 635a16a64cb4..0624868e36e3 100644
> --- a/arch/arm/boot/dts/berlin2q.dtsi
> +++ b/arch/arm/boot/dts/berlin2q.dtsi
> @@ -191,6 +191,32 @@
> };
> };
>
> + i2c0: i2c@1400 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1400 0x100>;
> + interrupt-parent = <&aic>;
> + interrupts = <4>;
> + clocks = <&chip CLKID_CFG>;
> + pinctrl-0 = <&twsi0_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> + i2c1: i2c@1800 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1800 0x100>;
> + interrupt-parent = <&aic>;
> + interrupts = <5>;
> + clocks = <&chip CLKID_CFG>;
> + pinctrl-0 = <&twsi1_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> timer0: timer@2c00 {
> compatible = "snps,dw-apb-timer";
> reg = <0x2c00 0x14>;
> @@ -301,6 +327,16 @@
> reg = <0xea0000 0x400>, <0xdd0170 0x10>;
> clocks = <&refclk>;
> clock-names = "refclk";
> +
> + twsi0_pmux: twsi0-pmux {
> + groups = "G6";
> + function = "twsi0";
> + };
> +
> + twsi1_pmux: twsi1-pmux {
> + groups = "G7";
> + function = "twsi1";
> + };
> };
>
> apb@fc0000 {
> @@ -311,6 +347,32 @@
> ranges = <0 0xfc0000 0x10000>;
> interrupt-parent = <&sic>;
>
> + i2c2: i2c@7000 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x7000 0x100>;
> + interrupt-parent = <&sic>;
> + interrupts = <6>;
> + clocks = <&refclk>;
> + pinctrl-0 = <&twsi2_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> + i2c3: i2c@8000 {
> + compatible = "snps,designware-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x8000 0x100>;
> + interrupt-parent = <&sic>;
> + interrupts = <7>;
> + clocks = <&refclk>;
> + pinctrl-0 = <&twsi3_pmux>;
> + pinctrl-names = "default";
> + status = "disabled";
> + };
> +
> uart0: uart@9000 {
> compatible = "snps,dw-apb-uart";
> reg = <0x9000 0x100>;
> @@ -348,6 +410,16 @@
> groups = "GSM14";
> function = "uart1";
> };
> +
> + twsi2_pmux: twsi2-pmux {
> + groups = "GSM13";
> + function = "twsi2";
> + };
> +
> + twsi3_pmux: twsi3-pmux {
> + groups = "GSM14";
> + function = "twsi3";
> + };
> };
>
> sic: interrupt-controller@e000 {
>
next prev parent reply other threads:[~2014-06-16 11:22 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 7:33 [PATCH 0/2] ARM: berlin: BG2Q I2C support Antoine Ténart
2014-06-03 7:33 ` Antoine Ténart
2014-06-03 7:33 ` [PATCH 1/2] ARM: dts: berlin: add I2C nodes for BG2Q Antoine Ténart
2014-06-03 7:33 ` Antoine Ténart
2014-06-16 11:22 ` Sebastian Hesselbarth [this message]
2014-06-16 11:22 ` Sebastian Hesselbarth
2014-06-16 11:22 ` Sebastian Hesselbarth
2014-06-03 7:33 ` [PATCH 2/2] ARM: dts: berlin: enable i2c0 and i2c2 Antoine Ténart
2014-06-03 7:33 ` Antoine Ténart
2014-06-03 8:05 ` Andrew Lunn
2014-06-03 8:05 ` Andrew Lunn
2014-06-03 8:05 ` Andrew Lunn
2014-06-04 16:48 ` Antoine Ténart
2014-06-04 16:48 ` Antoine Ténart
2014-06-04 16:48 ` Antoine Ténart
2014-06-04 17:03 ` Andrew Lunn
2014-06-04 17:03 ` Andrew Lunn
2014-06-04 17:03 ` Andrew Lunn
2014-06-04 17:37 ` Antoine Ténart
2014-06-04 17:37 ` Antoine Ténart
2014-06-04 17:37 ` Antoine Ténart
2014-06-16 11:23 ` Sebastian Hesselbarth
2014-06-16 11:23 ` Sebastian Hesselbarth
2014-06-16 11:23 ` Sebastian Hesselbarth
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=539ED38A.3010205@gmail.com \
--to=sebastian.hesselbarth@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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.