[PATCH] ARM: dts: BCM53573: add phy-mode and fixed-link

Rosen Penev <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.drivers.devicetree,gmane.linux.ports.arm.kernel
Message-ID <[email protected]>
These are needed for CPU ethernet links for switches.

Fixes dtbs_check warnings:

switch@1e (brcm,bcm53125): ports:port@5: 'phy-mode' is a required property
switch@1e (brcm,bcm53125): ports:port@8: 'phy-mode' is a required property
switch@1e (brcm,bcm53125): ports:port@8: 'oneOf' conditional failed, one must be fixed:

'fixed-link' is a required property
'phy-handle' is a required property
'managed' is a required property
from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml

Signed-off-by: Rosen Penev <[email protected]>
---
 arch/arm/boot/dts/broadcom/bcm53573.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/broadcom/bcm53573.dtsi b/arch/arm/boot/dts/broadcom/bcm53573.dtsi
index 2c43be98090b..1dd2e984b1e9 100644
--- a/arch/arm/boot/dts/broadcom/bcm53573.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm53573.dtsi
@@ -226,6 +226,7 @@ port@4 {
 
 						port@5 {
 							reg = <5>;
+							phy-mode = "internal";
 							ethernet = <&gmac1>;
 
 							fixed-link {
@@ -236,7 +237,13 @@ fixed-link {
 
 						port@8 {
 							reg = <8>;
+							phy-mode = "internal";
 							ethernet = <&gmac0>;
+
+							fixed-link {
+								speed = <1000>;
+								full-duplex;
+							};
 						};
 					};
 				};
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.