diff mbox

ARM: shmobile: porter: add I2C2 DT support

Message ID 84974694.25bFZffQKN@wasted.cogentembedded.com (mailing list archive)
State Accepted
Commit d6b940395e430a9afd89131d5de8d7ab1c22f5d1
Headers show

Commit Message

Sergei Shtylyov Oct. 8, 2015, 9:44 p.m. UTC
Define the Porter board dependent part of the I2C2 device node.

This patch is  analogous to the commit 29a647c396a0 ("ARM: shmobile:
henninger: add I2C2 DT support") as there are no differences between
the boards in this respect.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
This patch is against 'renesas-devel-20151008-v4.3-rc4' tag of Simon Horman's
'renesas.git' repo.

 arch/arm/boot/dts/r8a7791-porter.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Simon Horman Oct. 9, 2015, 1:13 a.m. UTC | #1
On Fri, Oct 09, 2015 at 12:44:18AM +0300, Sergei Shtylyov wrote:
> Define the Porter board dependent part of the I2C2 device node.
> 
> This patch is  analogous to the commit 29a647c396a0 ("ARM: shmobile:
> henninger: add I2C2 DT support") as there are no differences between
> the boards in this respect.
> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Thanks Sergei,

I have queued this up for v4.4.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sergei Shtylyov Oct. 9, 2015, 5:53 p.m. UTC | #2
Hello.

On 10/09/2015 04:13 AM, Simon Horman wrote:

>> Define the Porter board dependent part of the I2C2 device node.
>>
>> This patch is  analogous to the commit 29a647c396a0 ("ARM: shmobile:
>> henninger: add I2C2 DT support") as there are no differences between
>> the boards in this respect.
>>
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

> Thanks Sergei,

> I have queued this up for v4.4.

    Not seeing anything from renesas.git running 'git fetch'. Forgot to push? :-)

MBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman Oct. 11, 2015, 11:54 p.m. UTC | #3
On Fri, Oct 09, 2015 at 08:53:18PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> On 10/09/2015 04:13 AM, Simon Horman wrote:
> 
> >>Define the Porter board dependent part of the I2C2 device node.
> >>
> >>This patch is  analogous to the commit 29a647c396a0 ("ARM: shmobile:
> >>henninger: add I2C2 DT support") as there are no differences between
> >>the boards in this respect.
> >>
> >>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> >Thanks Sergei,
> 
> >I have queued this up for v4.4.
> 
>    Not seeing anything from renesas.git running 'git fetch'. Forgot to push? :-)

Yes, sorry about that.
I've pushed it now.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: renesas/arch/arm/boot/dts/r8a7791-porter.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791-porter.dts
+++ renesas/arch/arm/boot/dts/r8a7791-porter.dts
@@ -109,6 +109,11 @@ 
 		renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
 		renesas,function = "sdhi2";
 	};
+
+	i2c2_pins: i2c2 {
+		renesas,groups = "i2c2";
+		renesas,function = "i2c2";
+	};
 };
 
 &scif0 {
@@ -155,6 +160,14 @@ 
 	status = "okay";
 };
 
+&i2c2 {
+	pinctrl-0 = <&i2c2_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+};
+
 &sata0 {
 	status = "okay";
 };