forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/vf610-zii-dev-rev-c.dts
....@@ -1,45 +1,6 @@
1
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
12 /*
23 * Copyright (C) 2015, 2016 Zodiac Inflight Innovations
3
- *
4
- * Based on an original 'vf610-twr.dts' which is Copyright 2015,
5
- * Freescale Semiconductor, Inc.
6
- *
7
- * This file is dual-licensed: you can use it either under the terms
8
- * of the GPL or the X11 license, at your option. Note that this dual
9
- * licensing only applies to this file, and not this project as a
10
- * whole.
11
- *
12
- * a) This file is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public License
14
- * version 2 as published by the Free Software Foundation.
15
- *
16
- * This file is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * Or, alternatively,
22
- *
23
- * b) Permission is hereby granted, free of charge, to any person
24
- * obtaining a copy of this software and associated documentation
25
- * files (the "Software"), to deal in the Software without
26
- * restriction, including without limitation the rights to use,
27
- * copy, modify, merge, publish, distribute, sublicense, and/or
28
- * sell copies of the Software, and to permit persons to whom the
29
- * Software is furnished to do so, subject to the following
30
- * conditions:
31
- *
32
- * The above copyright notice and this permission notice shall be
33
- * included in all copies or substantial portions of the Software.
34
- *
35
- * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND,
36
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42
- * OTHER DEALINGS IN THE SOFTWARE.
434 */
445
456 /dts-v1/;
....@@ -200,6 +161,13 @@
200161 phy-handle = <&switch1phy4>;
201162 };
202163
164
+ port@9 {
165
+ reg = <9>;
166
+ label = "sff2";
167
+ phy-mode = "1000base-x";
168
+ managed = "in-band-status";
169
+ sfp = <&sff2>;
170
+ };
203171
204172 switch1port10: port@10 {
205173 reg = <10>;
....@@ -245,6 +213,22 @@
245213 #size-cells = <0>;
246214 };
247215 };
216
+
217
+ sff2: sff2 {
218
+ /* lower */
219
+ compatible = "sff,sff";
220
+ i2c-bus = <&sff2_i2c>;
221
+ los-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
222
+ tx-disable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
223
+ };
224
+
225
+ sff3: sff3 {
226
+ /* upper */
227
+ compatible = "sff,sff";
228
+ i2c-bus = <&sff3_i2c>;
229
+ los-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
230
+ tx-disable-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
231
+ };
248232 };
249233
250234 &dspi0 {
....@@ -254,7 +238,7 @@
254238 status = "okay";
255239 spi-num-chipselects = <2>;
256240
257
- m25p128@0 {
241
+ flash@0 {
258242 compatible = "m25p128", "jedec,spi-nor";
259243 #address-cells = <1>;
260244 #size-cells = <1>;
....@@ -290,7 +274,7 @@
290274 * P1 - WE2_CMD
291275 * P2 - WE2_CLK
292276 */
293
- gpio5: pca9557@18 {
277
+ gpio5: io-expander@18 {
294278 compatible = "nxp,pca9557";
295279 reg = <0x18>;
296280 gpio-controller;
....@@ -329,13 +313,6 @@
329313 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
330314 gpio-controller;
331315 interrupt-controller;
332
-
333
- enet_swr_en {
334
- gpio-hog;
335
- gpios = <0 GPIO_ACTIVE_HIGH>;
336
- output-high;
337
- line-name = "enet-swr-en";
338
- };
339316 };
340317
341318 /*
....@@ -345,7 +322,7 @@
345322 * IO0 - WE1_CLK
346323 * IO1 - WE1_CMD
347324 */
348
- gpio7: pca9554@22 {
325
+ gpio7: io-expander@22 {
349326 compatible = "nxp,pca9554";
350327 reg = <0x22>;
351328 gpio-controller;
....@@ -355,7 +332,7 @@
355332 };
356333
357334 &i2c1 {
358
- at24mac602@50 {
335
+ eeprom@50 {
359336 compatible = "atmel,24c02";
360337 reg = <0x50>;
361338 read-only;
....@@ -363,7 +340,7 @@
363340 };
364341
365342 &i2c2 {
366
- tca9548@70 {
343
+ i2c-mux@70 {
367344 compatible = "nxp,pca9548";
368345 pinctrl-0 = <&pinctrl_i2c_mux_reset>;
369346 pinctrl-names = "default";
....@@ -378,26 +355,16 @@
378355 reg = <0>;
379356 };
380357
381
- i2c@1 {
358
+ sff2_i2c: i2c@1 {
382359 #address-cells = <1>;
383360 #size-cells = <0>;
384361 reg = <1>;
385
-
386
- sfp2: at24c04@50 {
387
- compatible = "atmel,24c02";
388
- reg = <0x50>;
389
- };
390362 };
391363
392
- i2c@2 {
364
+ sff3_i2c: i2c@2 {
393365 #address-cells = <1>;
394366 #size-cells = <0>;
395367 reg = <2>;
396
-
397
- sfp3: at24c04@50 {
398
- compatible = "atmel,24c02";
399
- reg = <0x50>;
400
- };
401368 };
402369
403370 i2c@3 {