Skip to content

Commit 070f5b7

Browse files
vladimirolteandavem330
authored andcommitted
dt-bindings: net: dsa: sja1105: add SJA1110 bindings
There are 4 variations of the SJA1110 switch which have a different set of MII protocols supported per port. Document the compatible strings. Also, the SJA1110 optionally supports 2 internal MDIO buses for 2 different types of Ethernet PHYs. Document a container node called "mdios" which has 2 subnodes "mdio@0" and "mdio@1", identifiable via compatible string, under which the driver finds the internal PHYs. Cc: Rob Herring <[email protected]> Cc: [email protected] Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 173dbbf commit 070f5b7

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,53 @@ properties:
2727
- nxp,sja1105q
2828
- nxp,sja1105r
2929
- nxp,sja1105s
30+
- nxp,sja1110a
31+
- nxp,sja1110b
32+
- nxp,sja1110c
33+
- nxp,sja1110d
3034

3135
reg:
3236
maxItems: 1
3337

38+
# Optional container node for the 2 internal MDIO buses of the SJA1110
39+
# (one for the internal 100base-T1 PHYs and the other for the single
40+
# 100base-TX PHY). The "reg" property does not have physical significance.
41+
# The PHY addresses to port correspondence is as follows: for 100base-T1,
42+
# port 5 has PHY 1, port 6 has PHY 2 etc, while for 100base-TX, port 1 has
43+
# PHY 1.
44+
mdios:
45+
type: object
46+
47+
properties:
48+
'#address-cells':
49+
const: 1
50+
'#size-cells':
51+
const: 0
52+
53+
patternProperties:
54+
"^mdio@[0-1]$":
55+
type: object
56+
57+
allOf:
58+
- $ref: "http://devicetree.org/schemas/net/mdio.yaml#"
59+
60+
properties:
61+
compatible:
62+
oneOf:
63+
- enum:
64+
- nxp,sja1110-base-t1-mdio
65+
- nxp,sja1110-base-tx-mdio
66+
67+
reg:
68+
oneOf:
69+
- enum:
70+
- 0
71+
- 1
72+
73+
required:
74+
- compatible
75+
- reg
76+
3477
required:
3578
- compatible
3679
- reg

0 commit comments

Comments
 (0)