Thread (24 messages) flat view 24 messages, 6 authors, 2021-03-15

Re: [PATCH net-next 1/8] dt-bindings: net: dsa: dt bindings for microchip lan937x

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-02-10 19:01:30
Also in: linux-devicetree, lkml

quoted
quoted
+        ethernet-ports {
+          #address-cells = <1>;
+          #size-cells = <0>;
+          port@0 {
+            reg = <0>;
+            label = "lan1";
+          };
+          port@1 {
+            reg = <1>;
+            label = "lan2";
+          };
+          port@2 {
+            reg = <7>;
reg should match node index (port@2), here and everywhere below. As
for
the net device labels, I'm not sure if the mismatch is deliberate
there.
reg & port node indexes are different here because to match with the
 physical to logical port mapping done in the LAN9374. I realized that
the description is missing and that is to be added. However, should reg
& port node index match for the net dev? 
If it should be the same, then the same can be acheived by renaming a
label (lanx) as well.
The label should match whatever the text on the device case says. So
it is fine if port 2 says lan3 on the front panel. However, port@2
should have reg=<2>. Please change it to port@7. This is a generic DT
requirement, not specific to DSA.

       Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help