Skip to contentSkip to conversation

dt-bindings: net: dsa: b53: Specify unit address in hex

PATCH Applied Kurt Kanzenbach 3 participants 7 messages Oct 3, 2020 – Oct 4, 2020

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

PATCH 1/2 dt-bindings: net: dsa: b53: Specify unit address in hex

The unit address should be 1e, because the unit address is supposed to be in hexadecimal.

---
 Documentation/devicetree/bindings/net/dsa/b53.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/net/dsa/b53.txt +1 -1
index 80437b2fc935..3bb4e1086913 100644
@@ -104,7 +104,7 @@ Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		switch0: ethernet-switch@30 {
+		switch0: ethernet-switch@1e {
 			compatible = "brcm,bcm53125";
 			reg = <30>;
 			#address-cells = <1>;
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 dt-bindings: net: dsa: b53: Fix full duplex in example

There is no such property as duplex-full. It's called full-duplex. Leading to reduced speed when using the example as base for a real device tree.

---
 Documentation/devicetree/bindings/net/dsa/b53.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/net/dsa/b53.txt +3 -3
index 3bb4e1086913..f1487a751b1a 100644
@@ -95,7 +95,7 @@ Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
 
 		fixed-link {
 			speed = <1000>;
-			duplex-full;
+			full-duplex;
 		};
 	};
 
@@ -129,7 +129,7 @@ Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
 					label = "cable-modem";
 					fixed-link {
 						speed = <1000>;
-						duplex-full;
+						full-duplex;
 					};
 					phy-mode = "rgmii-txid";
 				};
@@ -139,7 +139,7 @@ Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
 					label = "cpu";
 					fixed-link {
 						speed = <1000>;
-						duplex-full;
+						full-duplex;
 					};
 					phy-mode = "rgmii-txid";
 					ethernet = <&eth0>;
Signature · 1 line
2.20.1
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH net-next 2/2] dt-bindings: net: dsa: b53: Fix full duplex in example

Quoted 2 lines · Kurt Kanzenbach

There is no such property as duplex-full. It's called full-duplex. Leading to reduced speed when using the example as base for a real device tree.

Doh, thanks for correcting this. Would you want to make this a YAML binding at some point? I can take care of it if you do not have time to do it.

Quoted 2 lines
Signature · 1 line
Florian
#3 lore raw

Re: [PATCH net-next 2/2] dt-bindings: net: dsa: b53: Fix full duplex in example

Quoted 7 lines · Florian Fainelli
Quoted 2 lines · Kurt Kanzenbach

There is no such property as duplex-full. It's called full-duplex. Leading to reduced speed when using the example as base for a real device tree.

Doh, thanks for correcting this. Would you want to make this a YAML binding at some point? I can take care of it if you do not have time to do it.

Actually I have started to convert the DSA bindings to YAML, but ran out of time very quickly. Unfortunately the b53 wasn't one of them I've converted already. So, you can go ahead.

Thanks,
Kurt