Skip to contentSkip to conversation

ARM: dts: am437x-idk-evm: Mark MAC as having only one PHY

PATCH In review Andrew F. Davis 3 participants 5 messages May 27, 2016 – Jun 10, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: am437x-idk-evm: Mark MAC as having only one PHY

Currently am4372.dtsi declares the MAC controller to have two slave ports, on this board we only use one, so set the slave count to one. This eliminates a console error message when the non-existent PHY is not detected.

---
 arch/arm/boot/dts/am437x-idk-evm.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/am437x-idk-evm.dts +1 -0
index 76dcfc6..12a6951 100644
@@ -382,6 +382,7 @@
 };
 
 &mac {
+	slaves = <1>;
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
Signature · 1 line
2.8.3
#1 lore raw

PATCH 2/2 ARM: dts: am335x-bone-common: Mark MAC as having only one PHY

Currently am33xx.dtsi declares the MAC controller to have two slave ports, on these boards we only use one, so set the slave count to one. This eliminates a console error message when the non-existent PHY is not detected.

---
 arch/arm/boot/dts/am335x-bone-common.dtsi | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
arch/arm/boot/dts/am335x-bone-common.dtsi +1 -5
index 0cc150b..8767bbe 100644
@@ -359,12 +359,8 @@
 	phy-mode = "mii";
 };
 
-&cpsw_emac1 {
-	phy_id = <&davinci_mdio>, <1>;
-	phy-mode = "mii";
-};
-
 &mac {
+	slaves = <1>;
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
Signature · 6 lines
2.8.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reviewed-by on v1 1/2
#4 lore raw
In reply to Andrew F. Davis
Quoted 16 lines · Andrew F. Davis

Currently am4372.dtsi declares the MAC controller to have two slave ports, on this board we only use one, so set the slave count to one. This eliminates a console error message when the non-existent PHY is not detected.

---
  arch/arm/boot/dts/am437x-idk-evm.dts | 1 +
  1 file changed, 1 insertion(+)
arch/arm/boot/dts/am437x-idk-evm.dts +0 -0
index 76dcfc6..12a6951 100644

arch/arm/boot/dts/am437x-idk-evm.dts line 388

Quoted 7 lines
arch/arm/boot/dts/am437x-idk-evm.dts +1 -0
@@ -382,6 +382,7 @@
  };
 
  &mac {
+	slaves = <1>;
  	pinctrl-names = "default", "sleep";
  	pinctrl-0 = <&cpsw_default>;
  	pinctrl-1 = <&cpsw_sleep>;
Signature · 2 lines
regards,
-grygorii
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] ARM: dts: am335x-bone-common: Mark MAC as having only one PHY

In reply to Andrew F. Davis
Quoted 19 lines · Andrew F. Davis

Currently am33xx.dtsi declares the MAC controller to have two slave ports, on these boards we only use one, so set the slave count to one. This eliminates a console error message when the non-existent PHY is not detected.

---
  arch/arm/boot/dts/am335x-bone-common.dtsi | 6 +-----
  1 file changed, 1 insertion(+), 5 deletions(-)
arch/arm/boot/dts/am335x-bone-common.dtsi +0 -0
index 0cc150b..8767bbe 100644
@@ -359,12 +359,8 @@
  	phy-mode = "mii";
  };
 

arch/arm/boot/dts/am335x-bone-common.dtsi line 366

Quoted 10 lines
arch/arm/boot/dts/am335x-bone-common.dtsi +1 -5
-&cpsw_emac1 {
-	phy_id = <&davinci_mdio>, <1>;
-	phy-mode = "mii";
-};
-
  &mac {
+	slaves = <1>;
  	pinctrl-names = "default", "sleep";
  	pinctrl-0 = <&cpsw_default>;
  	pinctrl-1 = <&cpsw_sleep>;
Signature · 6 lines
regards,
-grygorii
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

Re: [PATCH 2/2] ARM: dts: am335x-bone-common: Mark MAC as having only one PHY

Quoted 5 lines · Grygorii Strashko
Quoted 4 lines · Andrew F. Davis

Currently am33xx.dtsi declares the MAC controller to have two slave ports, on these boards we only use one, so set the slave count to one. This eliminates a console error message when the non-existent PHY is not detected.

...

Quoted 1 line

Applying both into omap-for-v4.8/dt thanks.

Tony