Skip to contentSkip to conversation

aspeed: dts: Update some platforms to mux RMII1 for MAC0

PATCH In review Andrew Jeffery 2 participants 2 messages Nov 14, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aspeed: dts: Update some platforms to mux RMII1 for MAC0

I noticed that Witherspoon was missing its pinctrl properties for the mac0 node. On auditing the rest of the DTS files, the MSN and Q71L platforms appeared to have the same issue.

Add the pinctrl nodes to ensure MAC0 has RMII1 muxed. This provides mutual exclusion with the GPIO subsystem ensuring broken userspace can't interfere with networking.

Cc Mykola Kostenok <[email protected]>
Cc Patrick Venture <[email protected]>
---
 arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts    | 3 +++
 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 3 +++
 arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts     | 3 +++
 3 files changed, 9 insertions(+)
arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts +3 -0
index d1dc2ef1a162..1005d6becdba 100644
@@ -48,6 +48,9 @@
 &mac0 {
 	status = "okay";
 	use-ncsi;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rmii1_default>;
 };
 
 &i2c5 {
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +3 -0
index 68058eca1559..cc1fd0dc6677 100644
@@ -239,6 +239,9 @@
 
 	use-ncsi;
 	no-hw-checksum;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rmii1_default>;
 };
 
 &i2c0 {
arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts +3 -0
index 7ed3a773b2d5..41368734f07d 100644
@@ -139,6 +139,9 @@
 
 	use-ncsi;
 	no-hw-checksum;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rmii1_default>;
 };
 
 &mac1 {
Signature · 1 line
2.14.1
Acked-by on v1 1/1
#1 lore raw

Best regards. Mykola Kostenok.

Quoted 74 lines

-----Original Message-----
From: Andrew Jeffery [mailto:[email protected]]
Sent: Tuesday, November 14, 2017 7:24 AM
To: [email protected]
Cc: Andrew Jeffery <[email protected]>; [email protected]; Mykola Kostenok <[email protected]>; Patrick Venture <[email protected]>
Subject: [PATCH linux dev-4.10] aspeed: dts: Update some platforms to mux RMII1 for MAC0

I noticed that Witherspoon was missing its pinctrl properties for the mac0 node. On auditing the rest of the DTS files, the MSN and Q71L platforms appeared to have the same issue.

Add the pinctrl nodes to ensure MAC0 has RMII1 muxed. This provides mutual exclusion with the GPIO subsystem ensuring broken userspace can't interfere with networking.

Cc Mykola Kostenok <[email protected]>
Cc Patrick Venture <[email protected]>
---
 arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts    | 3 +++
 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 3 +++
 arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts     | 3 +++
 3 files changed, 9 insertions(+)
arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts +3 -0
index d1dc2ef1a162..1005d6becdba 100644
@@ -48,6 +48,9 @@
 &mac0 {
 	status = "okay";
 	use-ncsi;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rmii1_default>;
 };
 
 &i2c5 {
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +3 -0
index 68058eca1559..cc1fd0dc6677 100644
@@ -239,6 +239,9 @@
 
 	use-ncsi;
 	no-hw-checksum;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rmii1_default>;
 };
 
 &i2c0 {
arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts +3 -1
index 7ed3a773b2d5..41368734f07d 100644
@@ -139,6 +139,9 @@
 
 	use-ncsi;
 	no-hw-checksum;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_rmii1_default>;
 };
 
 &mac1 {
--

2.14.1