Skip to contentSkip to conversation

ARM: lager: add i2c1, i2c2 pins

PATCH In review Ben Dooks 4 participants 7 messages Feb 12, 2014 – Jun 6, 2014

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 2/2 ARM: lager: add i2c1, i2c2 pins

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---
 arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +14 -0
index 890e39d..300ab20 100644
@@ -80,6 +80,16 @@
 		renesas,groups = "mmc1_data8", "mmc1_ctrl";
 		renesas,function = "mmc1";
 	};
+
+	i2c1_pins: i2c1 {
+		renesas,groups = "i2c1";
+		renesas,function = "i2c1";
+	};
+
+	i2c2_pins: i2c2 {
+		renesas,groups = "i2c2";
+		renesas,function = "i2c2";
+	};
 };
 
 &mmcif1 {
@@ -102,10 +112,14 @@
 
 &i2c1	{
 	status = "ok";
+	pinctrl-0 = <&i2c1_pins>;
+	pinctrl-names = "default";
 };
 
 &i2c2	{
 	status = "ok";
+	pinctrl-0 = <&i2c2_pins>;
+	pinctrl-names = "default";
 };
 
 &i2c3	{
Signature · 1 line
1.8.5.3
#1 lore raw

Hi Ben

Quoted 6 lines

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---

Thank you for your patches,
but, just "i2c support" patch (= [1/2] + [2/2]) is understandable / readable :)

And, about Subject

- ARM: lager: xxx
+ ARM: shmobile: lager: xxx

Best regards
---
Kuninori Morimoto

#2 lore raw
In reply to Ben Dooks
Quoted 8 lines · Ben Dooks

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---
 arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

I have queued up the following.

There was some fuzz when applying this patch, please check that the following is correct.

From: Ben Dooks <[email protected]>

[PATCH] ARM: shmobile: lager: add i2c1, i2c2 pins

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

[[email protected]: Added shmobile to patch title]
---
 arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +14 -0
index ee80788..e33ed0d 100644
@@ -139,6 +139,16 @@
 		states = <3300000 1
 			  1800000 0>;
 	};
+
+	i2c1_pins: i2c1 {
+		renesas,groups = "i2c1";
+		renesas,function = "i2c1";
+	};
+
+	i2c2_pins: i2c2 {
+		renesas,groups = "i2c2";
+		renesas,function = "i2c2";
+	};
 };
 
 &extal_clk {
@@ -331,10 +341,14 @@
 
 &i2c1	{
 	status = "ok";
+	pinctrl-0 = <&i2c1_pins>;
+	pinctrl-names = "default";
 };
 
 &i2c2	{
 	status = "ok";
+	pinctrl-0 = <&i2c2_pins>;
+	pinctrl-names = "default";
 };
 
 &i2c3	{
Signature · 1 line
2.0.0.rc2
#3 lore raw
In reply to Ben Dooks

Hello.

Quoted 37 lines · Simon Horman
Quoted 8 lines

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---
  arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)

I have queued up the following.

There was some fuzz when applying this patch, please check that the following is correct.

From: Ben Dooks <[email protected]>

[PATCH] ARM: shmobile: lager: add i2c1, i2c2 pins

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

[[email protected]: Added shmobile to patch title]
---
  arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +0 -0
index ee80788..e33ed0d 100644
@@ -139,6 +139,16 @@
  		states = <3300000 1
  			  1800000 0>;
  	};

arch/arm/boot/dts/r8a7790-lager.dts line 151

Quoted 10 lines
arch/arm/boot/dts/r8a7790-lager.dts +10 -0
+
+	i2c1_pins: i2c1 {
+		renesas,groups = "i2c1";
+		renesas,function = "i2c1";
+	};
+
+	i2c2_pins: i2c2 {
+		renesas,groups = "i2c2";
+		renesas,function = "i2c2";
+	};

These subnodes ended up added to a wrong node, they should have been added
to the PFC node below.

arch/arm/boot/dts/r8a7790-lager.dts line 154

Quoted 3 lines
arch/arm/boot/dts/r8a7790-lager.dts +0 -0
  };
 
  &extal_clk {

WBR, Sergei

author
#4 lore raw
In reply to Ben Dooks
Quoted 47 lines · Sergei Shtylyov

Hello.

Quoted 43 lines · Simon Horman
Quoted 8 lines

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---
  arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)

I have queued up the following.

There was some fuzz when applying this patch, please check that the following is correct.

From: Ben Dooks <[email protected]>

[PATCH] ARM: shmobile: lager: add i2c1, i2c2 pins

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

[[email protected]: Added shmobile to patch title]
---
  arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +5 -0
index ee80788..e33ed0d 100644
@@ -139,6 +139,16 @@
          states = <3300000 1
                1800000 0>;
      };
+
+    i2c1_pins: i2c1 {
+        renesas,groups = "i2c1";
+        renesas,function = "i2c1";
+    };
Quoted 8 lines

arch/arm/boot/dts/r8a7790-lager.dts line 92

Quoted 5 lines
arch/arm/boot/dts/r8a7790-lager.dts +5 -0
+
+    i2c2_pins: i2c2 {
+        renesas,groups = "i2c2";
+        renesas,function = "i2c2";
+    };

These subnodes ended up added to a wrong node, they should have been
added to the PFC node below.

Thanks, it is not obvious from just looking at them.

Signature · 2 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius
#5 lore raw
In reply to Ben Dooks

Hello.

Quoted 52 lines · Ben Dooks
Quoted 43 lines
Quoted 43 lines
Quoted 8 lines

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---
   arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
   1 file changed, 14 insertions(+)

I have queued up the following.

There was some fuzz when applying this patch, please check that the following is correct.

From: Ben Dooks <[email protected]>

[PATCH] ARM: shmobile: lager: add i2c1, i2c2 pins

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

[[email protected]: Added shmobile to patch title]
---
   arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
   1 file changed, 14 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +5 -0
index ee80788..e33ed0d 100644
@@ -139,6 +139,16 @@
           states = <3300000 1
                 1800000 0>;
       };
+
+    i2c1_pins: i2c1 {
+        renesas,groups = "i2c1";
+        renesas,function = "i2c1";
+    };
Quoted 8 lines

arch/arm/boot/dts/r8a7790-lager.dts line 92

Quoted 5 lines
arch/arm/boot/dts/r8a7790-lager.dts +5 -0
+
+    i2c2_pins: i2c2 {
+        renesas,groups = "i2c2";
+        renesas,function = "i2c2";
+    };

These subnodes ended up added to a wrong node, they should have been
added to the PFC node below.

Quoted 1 line

Thanks, it is not obvious from just looking at them.

It was obvious from the context, actually.

WBR, Sergei

#6 lore raw
In reply to Ben Dooks
Quoted 56 lines · Sergei Shtylyov

Hello.

Quoted 51 lines · Ben Dooks
Quoted 51 lines
Quoted 38 lines
Quoted 8 lines

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

---
  arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)

I have queued up the following.

There was some fuzz when applying this patch, please check that the following is correct.

From: Ben Dooks <[email protected]>

[PATCH] ARM: shmobile: lager: add i2c1, i2c2 pins

Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board to ensure these are setup correctly at initialisation time. The i2c0 and i2c3 busses are connected to single function pins.

[[email protected]: Added shmobile to patch title]
---
  arch/arm/boot/dts/r8a7790-lager.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +0 -0
index ee80788..e33ed0d 100644
@@ -139,6 +139,16 @@
          states = <3300000 1
                1800000 0>;
      };

arch/arm/boot/dts/r8a7790-lager.dts line 151

Quoted 10 lines
arch/arm/boot/dts/r8a7790-lager.dts +10 -0
+
+    i2c1_pins: i2c1 {
+        renesas,groups = "i2c1";
+        renesas,function = "i2c1";
+    };
+
+    i2c2_pins: i2c2 {
+        renesas,groups = "i2c2";
+        renesas,function = "i2c2";
+    };

These subnodes ended up added to a wrong node, they should have been
added to the PFC node below.

Quoted 3 lines
Quoted 1 line

Thanks, it is not obvious from just looking at them.

It was obvious from the context, actually.

Thanks for pointing out my error.

I plan to queue up the following to resolve this problem.

From: Simon Horman <[email protected]>

[PATCH] ARM: shmobile: lager: Move i2c[12]_pins nodes to pfc node

Due to an error when resolving conflicts df40f256b18300e1 ("ARM: shmobile:
lager: add i2c1, i2c2 pins") added the i2c[12]_pins nodes to the wrong node.

This patch moves them to their correct location in the pfc node.

---
 arch/arm/boot/dts/r8a7790-lager.dts | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
arch/arm/boot/dts/r8a7790-lager.dts +10 -10
index e33ed0d..2bb42bc 100644
@@ -139,16 +139,6 @@
 		states = <3300000 1
 			  1800000 0>;
 	};
-
-	i2c1_pins: i2c1 {
-		renesas,groups = "i2c1";
-		renesas,function = "i2c1";
-	};
-
-	i2c2_pins: i2c2 {
-		renesas,groups = "i2c2";
-		renesas,function = "i2c2";
-	};
 };
 
 &extal_clk {
@@ -210,6 +200,16 @@
 		renesas,function = "msiof1";
 	};
 
+	i2c1_pins: i2c1 {
+		renesas,groups = "i2c1";
+		renesas,function = "i2c1";
+	};
+
+	i2c2_pins: i2c2 {
+		renesas,groups = "i2c2";
+		renesas,function = "i2c2";
+	};
+
 	i2c3_pins: i2c3 {
 		renesas,groups = "i2c3";
 		renesas,function = "i2c3";
Signature · 1 line
2.0.0.rc2