hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/mips/boot/dts/mscc/ocelot.dtsi
....@@ -78,6 +78,19 @@
7878 status = "disabled";
7979 };
8080
81
+ i2c: i2c@100400 {
82
+ compatible = "mscc,ocelot-i2c", "snps,designware-i2c";
83
+ pinctrl-0 = <&i2c_pins>;
84
+ pinctrl-names = "default";
85
+ reg = <0x100400 0x100>, <0x198 0x8>;
86
+ #address-cells = <1>;
87
+ #size-cells = <0>;
88
+ interrupts = <8>;
89
+ clocks = <&ahb_clk>;
90
+
91
+ status = "disabled";
92
+ };
93
+
8194 uart2: serial@100800 {
8295 pinctrl-0 = <&uart2_pins>;
8396 pinctrl-names = "default";
....@@ -107,7 +120,7 @@
107120 reg = <0x1010000 0x10000>,
108121 <0x1030000 0x10000>,
109122 <0x1080000 0x100>,
110
- <0x10d0000 0x10000>,
123
+ <0x10e0000 0x10000>,
111124 <0x11e0000 0x100>,
112125 <0x11f0000 0x100>,
113126 <0x1200000 0x100>,
....@@ -120,13 +133,16 @@
120133 <0x1270000 0x100>,
121134 <0x1280000 0x100>,
122135 <0x1800000 0x80000>,
123
- <0x1880000 0x10000>;
124
- reg-names = "sys", "rew", "qs", "hsio", "port0",
125
- "port1", "port2", "port3", "port4", "port5",
126
- "port6", "port7", "port8", "port9", "port10",
127
- "qsys", "ana";
128
- interrupts = <21 22>;
129
- interrupt-names = "xtr", "inj";
136
+ <0x1880000 0x10000>,
137
+ <0x1040000 0x10000>,
138
+ <0x1050000 0x10000>,
139
+ <0x1060000 0x10000>;
140
+ reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
141
+ "port2", "port3", "port4", "port5", "port6",
142
+ "port7", "port8", "port9", "port10", "qsys",
143
+ "ana", "s0", "s1", "s2";
144
+ interrupts = <18 21 22>;
145
+ interrupt-names = "ptp_rdy", "xtr", "inj";
130146
131147 ethernet-ports {
132148 #address-cells = <1>;
....@@ -183,6 +199,11 @@
183199 interrupts = <13>;
184200 #interrupt-cells = <2>;
185201
202
+ i2c_pins: i2c-pins {
203
+ pins = "GPIO_16", "GPIO_17";
204
+ function = "twi";
205
+ };
206
+
186207 uart_pins: uart-pins {
187208 pins = "GPIO_6", "GPIO_7";
188209 function = "uart";
....@@ -195,8 +216,9 @@
195216
196217 miim1: miim1 {
197218 pins = "GPIO_14", "GPIO_15";
198
- function = "miim1";
219
+ function = "miim";
199220 };
221
+
200222 };
201223
202224 mdio0: mdio@107009c {
....@@ -231,5 +253,15 @@
231253 pinctrl-0 = <&miim1>;
232254 status = "disabled";
233255 };
256
+
257
+ hsio: syscon@10d0000 {
258
+ compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
259
+ reg = <0x10d0000 0x10000>;
260
+
261
+ serdes: serdes {
262
+ compatible = "mscc,vsc7514-serdes";
263
+ #phy-cells = <2>;
264
+ };
265
+ };
234266 };
235267 };