hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/vf610-zii-cfu1.dts
....@@ -16,6 +16,7 @@
1616 };
1717
1818 memory@80000000 {
19
+ device_type = "memory";
1920 reg = <0x80000000 0x20000000>;
2021 };
2122
....@@ -28,35 +29,30 @@
2829 label = "zii:green:debug1";
2930 gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>;
3031 linux,default-trigger = "heartbeat";
31
- max-brightness = <1>;
3232 };
3333
3434 led-fail {
3535 label = "zii:red:fail";
3636 gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
3737 default-state = "off";
38
- max-brightness = <1>;
3938 };
4039
4140 led-status {
4241 label = "zii:green:status";
4342 gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
4443 default-state = "off";
45
- max-brightness = <1>;
4644 };
4745
4846 led-debug-a {
4947 label = "zii:green:debug_a";
5048 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
5149 default-state = "off";
52
- max-brightness = <1>;
5350 };
5451
5552 led-debug-b {
5653 label = "zii:green:debug_b";
5754 gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
5855 default-state = "off";
59
- max-brightness = <1>;
6056 };
6157 };
6258
....@@ -65,6 +61,23 @@
6561 regulator-name = "vcc_3v3_mcu";
6662 regulator-min-microvolt = <3300000>;
6763 regulator-max-microvolt = <3300000>;
64
+ };
65
+
66
+ sff: sfp {
67
+ compatible = "sff,sff";
68
+ pinctrl-0 = <&pinctrl_optical>;
69
+ pinctrl-names = "default";
70
+ i2c-bus = <&i2c0>;
71
+ los-gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>;
72
+ tx-disable-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
73
+ };
74
+
75
+ supply-voltage-monitor {
76
+ compatible = "iio-hwmon";
77
+ io-channels = <&adc0 8>, /* 28VDC_IN */
78
+ <&adc0 9>, /* +3.3V */
79
+ <&adc1 8>, /* VCC_1V5 */
80
+ <&adc1 9>; /* VCC_1V2 */
6881 };
6982 };
7083
....@@ -82,9 +95,14 @@
8295 bus-num = <1>;
8396 pinctrl-names = "default";
8497 pinctrl-0 = <&pinctrl_dspi1>;
85
- status = "okay";
98
+ /*
99
+ * Some CFU1s come with SPI-NOR chip DNPed, so we leave this
100
+ * node disabled by default and rely on bootloader to enable
101
+ * it when appropriate.
102
+ */
103
+ status = "disabled";
86104
87
- m25p128@0 {
105
+ flash@0 {
88106 #address-cells = <1>;
89107 #size-cells = <1>;
90108 compatible = "m25p128", "jedec,spi-nor";
....@@ -113,6 +131,8 @@
113131 non-removable;
114132 no-1-8-v;
115133 keep-power-in-suspend;
134
+ no-sdio;
135
+ no-sd;
116136 status = "okay";
117137 };
118138
....@@ -120,6 +140,7 @@
120140 pinctrl-names = "default";
121141 pinctrl-0 = <&pinctrl_esdhc1>;
122142 bus-width = <4>;
143
+ no-sdio;
123144 status = "okay";
124145 };
125146
....@@ -137,6 +158,8 @@
137158 mdio1: mdio {
138159 #address-cells = <1>;
139160 #size-cells = <0>;
161
+ clock-frequency = <12500000>;
162
+ suppress-preamble;
140163 status = "okay";
141164
142165 switch0: switch0@0 {
....@@ -149,7 +172,6 @@
149172 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
150173 interrupt-controller;
151174 #interrupt-cells = <2>;
152
- reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
153175
154176 ports {
155177 #address-cells = <1>;
....@@ -168,6 +190,14 @@
168190 port@2 {
169191 reg = <2>;
170192 label = "eth_cu_1000_3";
193
+ };
194
+
195
+ port@5 {
196
+ reg = <5>;
197
+ label = "eth_fc_1000_1";
198
+ phy-mode = "1000base-x";
199
+ managed = "in-band-status";
200
+ sfp = <&sff>;
171201 };
172202
173203 port@6 {
....@@ -191,10 +221,11 @@
191221 pinctrl-0 = <&pinctrl_i2c0>;
192222 status = "okay";
193223
194
- pca9554@22 {
224
+ io-expander@22 {
195225 compatible = "nxp,pca9554";
196226 reg = <0x22>;
197227 gpio-controller;
228
+ #gpio-cells = <2>;
198229 };
199230
200231 lm75@48 {
....@@ -202,17 +233,33 @@
202233 reg = <0x48>;
203234 };
204235
205
- at24c04@52 {
236
+ eeprom@52 {
206237 compatible = "atmel,24c04";
207238 reg = <0x52>;
208239 label = "nvm";
209240 };
210241
211
- at24c04@54 {
242
+ eeprom@54 {
212243 compatible = "atmel,24c04";
213244 reg = <0x54>;
214245 label = "nameplate";
215246 };
247
+};
248
+
249
+&i2c1 {
250
+ clock-frequency = <100000>;
251
+ pinctrl-names = "default";
252
+ pinctrl-0 = <&pinctrl_i2c1>;
253
+ status = "okay";
254
+
255
+ watchdog@38 {
256
+ compatible = "zii,rave-wdt";
257
+ reg = <0x38>;
258
+ };
259
+};
260
+
261
+&snvsrtc {
262
+ status = "disabled";
216263 };
217264
218265 &uart0 {
....@@ -279,6 +326,13 @@
279326 >;
280327 };
281328
329
+ pinctrl_i2c1: i2c1grp {
330
+ fsl,pins = <
331
+ VF610_PAD_PTB16__I2C1_SCL 0x37ff
332
+ VF610_PAD_PTB17__I2C1_SDA 0x37ff
333
+ >;
334
+ };
335
+
282336 pinctrl_leds_debug: pinctrl-leds-debug {
283337 fsl,pins = <
284338 VF610_PAD_PTD3__GPIO_82 0x31c2
....@@ -289,10 +343,19 @@
289343 >;
290344 };
291345
346
+ pinctrl_optical: optical-grp {
347
+ fsl,pins = <
348
+ /* SFF SD input */
349
+ VF610_PAD_PTE27__GPIO_132 0x3061
350
+
351
+ /* SFF Transmit disable output */
352
+ VF610_PAD_PTE13__GPIO_118 0x3043
353
+ >;
354
+ };
355
+
292356 pinctrl_switch: switch-grp {
293357 fsl,pins = <
294358 VF610_PAD_PTB28__GPIO_98 0x3061
295
- VF610_PAD_PTE2__GPIO_107 0x1042
296359 >;
297360 };
298361