forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/Documentation/devicetree/bindings/net/dsa/b53.txt
....@@ -46,6 +46,42 @@
4646 "brcm,bcm6328-switch"
4747 "brcm,bcm6368-switch" and the mandatory "brcm,bcm63xx-switch"
4848
49
+Required properties for BCM585xx/586xx/88312 SoCs:
50
+
51
+ - reg: a total of 3 register base addresses, the first one must be the
52
+ Switch Register Access block base, the second is the port 5/4 mux
53
+ configuration register and the third one is the SGMII configuration
54
+ and status register base address.
55
+
56
+ - interrupts: a total of 13 interrupts must be specified, in the following
57
+ order: port 0-5, 7-8 link status change, then the integrated PHY interrupt,
58
+ then the timestamping interrupt and the sleep timer interrupts for ports
59
+ 5,7,8.
60
+
61
+Optional properties for BCM585xx/586xx/88312 SoCs:
62
+
63
+ - reg-names: a total of 3 names matching the 3 base register address, must
64
+ be in the following order:
65
+ "srab"
66
+ "mux_config"
67
+ "sgmii_config"
68
+
69
+ - interrupt-names: a total of 13 names matching the 13 interrupts specified
70
+ must be in the following order:
71
+ "link_state_p0"
72
+ "link_state_p1"
73
+ "link_state_p2"
74
+ "link_state_p3"
75
+ "link_state_p4"
76
+ "link_state_p5"
77
+ "link_state_p7"
78
+ "link_state_p8"
79
+ "phy"
80
+ "ts"
81
+ "imp_sleep_timer_p5"
82
+ "imp_sleep_timer_p7"
83
+ "imp_sleep_timer_p8"
84
+
4985 See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional
5086 required and optional properties.
5187
....@@ -59,7 +95,7 @@
5995
6096 fixed-link {
6197 speed = <1000>;
62
- duplex-full;
98
+ full-duplex;
6399 };
64100 };
65101
....@@ -68,12 +104,16 @@
68104 #address-cells = <1>;
69105 #size-cells = <0>;
70106
71
- switch0: ethernet-switch@30 {
107
+ switch0: ethernet-switch@1e {
72108 compatible = "brcm,bcm53125";
109
+ reg = <30>;
73110 #address-cells = <1>;
74111 #size-cells = <0>;
75112
76113 ports {
114
+ #address-cells = <1>;
115
+ #size-cells = <0>;
116
+
77117 port0@0 {
78118 reg = <0>;
79119 label = "lan1";
....@@ -89,7 +129,7 @@
89129 label = "cable-modem";
90130 fixed-link {
91131 speed = <1000>;
92
- duplex-full;
132
+ full-duplex;
93133 };
94134 phy-mode = "rgmii-txid";
95135 };
....@@ -99,7 +139,7 @@
99139 label = "cpu";
100140 fixed-link {
101141 speed = <1000>;
102
- duplex-full;
142
+ full-duplex;
103143 };
104144 phy-mode = "rgmii-txid";
105145 ethernet = <&eth0>;