Skip to contentSkip to conversation

arm: mvebu: fixes for previous DS213j/DS414 series

PATCH New Arnaud Ebalard 2 participants 6 messages Nov 22, 2014 – Nov 26, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover arm: mvebu: fixes for previous DS213j/DS414 series

Hi Jason,

This series contains two patches. I spent some time reading the patches of my previous series you had to manually apply. I only noticed the error Ben reported on v6 (i.e. some pinctrl entries still using pmx_ instead of _pins) which patch 1 corrects.

Regarding the second patch, having forgotten to enable MACH_ARMADA_XP in my kernel config, I missed a renaming of ge0/1 pinctrl entries in armada-xp.dtsi, which resulted in a non-compiling .dts file for DS414. To fix my mistake, you did a s/ge[01]_rgmii_pins/pmx_ge[01]_rgmii/, reintroducing some of the pmx_ naming that should have been removed in the process. So, the second patch in that series finishes the work to normalize pinctrl entries in Armada SoCs DT files.

The patches do apply on your mvebu/dt branch. They do pass a whole compilation (including 'make dtbs') and I can boot a resulting kernel on my DS213j. I do not have a DS414 at hand but will test on this device early next week.

I hope eveyhting is now back in order w/ those. Feedback appreciated.

Cheers,

a+

Arnaud Ebalard (2):
arm: mvebu: fix wrongly named DS414 pinctrl entries
arm: mvebu: normalize pinctrl entries for Armada SoCs

 arch/arm/boot/dts/armada-xp-axpwifiap.dts       | 12 ++++++------
 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts |  4 ++--
 arch/arm/boot/dts/armada-xp-synology-ds414.dts  | 10 +++++-----
 arch/arm/boot/dts/armada-xp.dtsi                |  6 +++---
 4 files changed, 16 insertions(+), 16 deletions(-)
Signature · 1 line
2.1.1
#1 lore raw

PATCH 1/2 arm: mvebu: fix wrongly named DS414 pinctrl entries

While renaming pinctrl entries during reviews of Synology DS414 support series, I missed three entries, as reported by Ben. This patch fixes those.

---
 arch/arm/boot/dts/armada-xp-synology-ds414.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/armada-xp-synology-ds414.dts +3 -3
index ba5e94d27c21..97cbf980c54d 100644
@@ -308,17 +308,17 @@
 		marvell,function = "gpio";
 	};
 
-	pmx_syno_id_bit1: syno-id-bit1-pin {
+	syno_id_bit1_pin: syno-id-bit1-pin {
 		marvell,pins = "mpp28";
 		marvell,function = "gpio";
 	};
 
-	pmx_syno_id_bit2: syno-id-bit2-pin {
+	syno_id_bit2_pin: syno-id-bit2-pin {
 		marvell,pins = "mpp29";
 		marvell,function = "gpio";
 	};
 
-	pmx_fan1_alarm: fan1-alarm-pin {
+	fan1_alarm_pin: fan1-alarm-pin {
 		marvell,pins = "mpp33";
 		marvell,function = "gpio";
 	};
Signature · 1 line
2.1.1
#2 lore raw

PATCH 2/2 arm: mvebu: normalize pinctrl entries for Armada SoCs

In reply to Arnaud Ebalard

There are currently 2 differents naming conventions used between the existing Armada SoC DT files for pinctrl entries (*_pin(s): *-pin(s) and pmx_*: pmx-*) with a vast majority of files using the former:

$ grep _pin arch/arm/boot/dts/armada-*.dts* | wc -l
155
$ grep pmx arch/arm/boot/dts/armada-*.dts* | wc -l
13

In fact, only some Armada XP files are using the second variant. This patch normalizes those files (mainly ge0/1 entries) to use the first variant.

---
 arch/arm/boot/dts/armada-xp-axpwifiap.dts       | 12 ++++++------
 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts |  4 ++--
 arch/arm/boot/dts/armada-xp-synology-ds414.dts  |  4 ++--
 arch/arm/boot/dts/armada-xp.dtsi                |  6 +++---
 4 files changed, 13 insertions(+), 13 deletions(-)
arch/arm/boot/dts/armada-xp-axpwifiap.dts +6 -6
index c9d25bdbe795..ba7ef9a2a904 100644
@@ -84,14 +84,14 @@
 			};
 
 			ethernet at 70000 {
-				pinctrl-0 = <&pmx_ge0_rgmii>;
+				pinctrl-0 = <&ge0_rgmii_pins>;
 				pinctrl-names = "default";
 				status = "okay";
 				phy = <&phy0>;
 				phy-mode = "rgmii-id";
 			};
 			ethernet at 74000 {
-				pinctrl-0 = <&pmx_ge1_rgmii>;
+				pinctrl-0 = <&ge1_rgmii_pins>;
 				pinctrl-names = "default";
 				status = "okay";
 				phy = <&phy1>;
@@ -116,7 +116,7 @@
 		compatible = "gpio-keys";
 		#address-cells = <1>;
 		#size-cells = <0>;
-		pinctrl-0 = <&pmx_keys>;
+		pinctrl-0 = <&keys_pin>;
 		pinctrl-names = "default";
 
 		button at 1 {
@@ -128,15 +128,15 @@
 };
 
 &pinctrl {
-	pinctrl-0 = <&pmx_phy_int>;
+	pinctrl-0 = <&phy_int_pin>;
 	pinctrl-names = "default";
 
-	pmx_keys: pmx-keys {
+	keys_pin: keys-pin {
 		marvell,pins = "mpp33";
 		marvell,function = "gpio";
 	};
 
-	pmx_phy_int: pmx-phy-int {
+	phy_int_pin: phy-int-pin {
 		marvell,pins = "mpp32";
 		marvell,function = "gpio";
 	};
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts +2 -2
index 088d8d2fe9eb..a2ef93c1eb10 100644
@@ -66,7 +66,7 @@
 			};
 
 			ethernet at 70000 {
-				pinctrl-0 = <&pmx_ge0_rgmii>;
+				pinctrl-0 = <&ge0_rgmii_pins>;
 				pinctrl-names = "default";
 				status = "okay";
 				phy = <&phy0>;
@@ -74,7 +74,7 @@
 			};
 
 			ethernet at 74000 {
-				pinctrl-0 = <&pmx_ge1_rgmii>;
+				pinctrl-0 = <&ge1_rgmii_pins>;
 				pinctrl-names = "default";
 				status = "okay";
 				phy = <&phy1>;
arch/arm/boot/dts/armada-xp-synology-ds414.dts +2 -2
index 97cbf980c54d..749fdba5a642 100644
@@ -184,14 +184,14 @@
 
 			ethernet at 70000 {
 				status = "okay";
-				pinctrl-0 = <&pmx_ge0_rgmii>;
+				pinctrl-0 = <&ge0_rgmii_pins>;
 				pinctrl-names = "default";
 				phy = <&phy1>;
 				phy-mode = "rgmii-id";
 			};
 
 			ethernet at 74000 {
-				pinctrl-0 = <&pmx_ge1_rgmii>;
+				pinctrl-0 = <&ge1_rgmii_pins>;
 				pinctrl-names = "default";
 				status = "okay";
 				phy = <&phy0>;
arch/arm/boot/dts/armada-xp.dtsi +3 -3
index bdb36a05c039..a2a6451524dc 100644
@@ -212,7 +212,7 @@
 };
 
 &pinctrl {
-	pmx_ge0_gmii: pmx-ge0-gmii {
+	ge0_gmii_pins: ge0-gmii-pins {
 		marvell,pins =
 		     "mpp0",  "mpp1",  "mpp2",  "mpp3",
 		     "mpp4",  "mpp5",  "mpp6",  "mpp7",
@@ -223,7 +223,7 @@
 		marvell,function = "ge0";
 	};
 
-	pmx_ge0_rgmii: pmx-ge0-rgmii {
+	ge0_rgmii_pins: ge0-rgmii-pins {
 		marvell,pins =
 		     "mpp0", "mpp1", "mpp2", "mpp3",
 		     "mpp4", "mpp5", "mpp6", "mpp7",
@@ -231,7 +231,7 @@
 		marvell,function = "ge0";
 	};
 
-	pmx_ge1_rgmii: pmx-ge1-rgmii {
+	ge1_rgmii_pins: ge1-rgmii-pins {
 		marvell,pins =
 		     "mpp12", "mpp13", "mpp14", "mpp15",
 		     "mpp16", "mpp17", "mpp18", "mpp19",
Signature · 1 line
2.1.1
#3 lore raw

cover arm: mvebu: fixes for previous DS213j/DS414 series

In reply to Arnaud Ebalard

Hi Jason,

Quoted 13 lines · Arnaud Ebalard

This series contains two patches. I spent some time reading the patches of my previous series you had to manually apply. I only noticed the error Ben reported on v6 (i.e. some pinctrl entries still using pmx_ instead of _pins) which patch 1 corrects.

Regarding the second patch, having forgotten to enable MACH_ARMADA_XP in my kernel config, I missed a renaming of ge0/1 pinctrl entries in armada-xp.dtsi, which resulted in a non-compiling .dts file for DS414. To fix my mistake, you did a s/ge[01]_rgmii_pins/pmx_ge[01]_rgmii/, reintroducing some of the pmx_ naming that should have been removed in the process. So, the second patch in that series finishes the work to normalize pinctrl entries in Armada SoCs DT files.

Quoted 6 lines

The patches do apply on your mvebu/dt branch. They do pass a whole compilation (including 'make dtbs') and I can boot a resulting kernel on my DS213j. I do not have a DS414 at hand but will test on this device early next week.

I hope eveyhting is now back in order w/ those. Feedback appreciated.

Just tested the series on a DS414, booting a debian on a 4-disk RAID5 array. I do get an IP via DHCP from both ethernet ports. Plugging an USB device on rear ports (USB 3.0) or front port (USB 2.0) also works.

Cheers,

a+

#4 lore raw

cover arm: mvebu: fixes for previous DS213j/DS414 series

In reply to Arnaud Ebalard
Quoted 30 lines · Arnaud Ebalard

Hi Jason,

This series contains two patches. I spent some time reading the patches of my previous series you had to manually apply. I only noticed the error Ben reported on v6 (i.e. some pinctrl entries still using pmx_ instead of _pins) which patch 1 corrects.

Regarding the second patch, having forgotten to enable MACH_ARMADA_XP in my kernel config, I missed a renaming of ge0/1 pinctrl entries in armada-xp.dtsi, which resulted in a non-compiling .dts file for DS414. To fix my mistake, you did a s/ge[01]_rgmii_pins/pmx_ge[01]_rgmii/, reintroducing some of the pmx_ naming that should have been removed in the process. So, the second patch in that series finishes the work to normalize pinctrl entries in Armada SoCs DT files.

The patches do apply on your mvebu/dt branch. They do pass a whole compilation (including 'make dtbs') and I can boot a resulting kernel on my DS213j. I do not have a DS414 at hand but will test on this device early next week.

I hope eveyhting is now back in order w/ those. Feedback appreciated.

Cheers,

a+

Arnaud Ebalard (2):
arm: mvebu: fix wrongly named DS414 pinctrl entries
arm: mvebu: normalize pinctrl entries for Armada SoCs

Quoted 5 lines
 arch/arm/boot/dts/armada-xp-axpwifiap.dts       | 12 ++++++------
 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts |  4 ++--
 arch/arm/boot/dts/armada-xp-synology-ds414.dts  | 10 +++++-----
 arch/arm/boot/dts/armada-xp.dtsi                |  6 +++---
 4 files changed, 16 insertions(+), 16 deletions(-)

Thanks for taking care of this. Applied to mvebu/dt

thx,

Jason.

#5 lore raw

cover arm: mvebu: fixes for previous DS213j/DS414 series

Hi,

Quoted 10 lines · Jason Cooper
Quoted 8 lines

arm: mvebu: fix wrongly named DS414 pinctrl entries
arm: mvebu: normalize pinctrl entries for Armada SoCs

 arch/arm/boot/dts/armada-xp-axpwifiap.dts       | 12 ++++++------
 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts |  4 ++--
 arch/arm/boot/dts/armada-xp-synology-ds414.dts  | 10 +++++-----
 arch/arm/boot/dts/armada-xp.dtsi                |  6 +++---
 4 files changed, 16 insertions(+), 16 deletions(-)

Thanks for taking care of this. Applied to mvebu/dt

I was the one screwing the series in the first place. So that was the least I could do. Next time you see sth no kosher in one of my series, do not hesitate to ask for a vN+1.

Cheers,

a+