ramips: mt7621-dts: remove incorrect ethphy4 node for WAVLINK WL-WN573HX1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_wavlink_wl-wn573hx1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "wavlink,wl-wn573hx1", "mediatek,mt7621-soc";
10 model = "WAVLINK WL-WN573HX1";
11
12 aliases {
13 led-boot = &led_status_blue;
14 led-failsafe = &led_status_blue;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_blue;
17 label-mac-device = &gmac0;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_status_blue:status_led {
38 label = "blue:status_led";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 };
41
42 };
43 };
44
45 &gmac0 {
46 nvmem-cells = <&macaddr_factory_3fff4>;
47 nvmem-cell-names = "mac-address";
48 };
49
50 &pcie {
51 status = "okay";
52 };
53
54 &pcie1 {
55 wifi@0,0 {
56 compatible = "mediatek,mt76";
57 reg = <0x0000 0 0 0 0>;
58 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
59 nvmem-cell-names = "eeprom", "precal";
60 };
61 };
62
63 &spi0 {
64 status = "okay";
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <14000000>;
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x00000 0x30000>;
77 };
78
79 partition@30000 {
80 label = "config";
81 reg = <0x30000 0x10000>;
82 };
83
84 partition@50000 {
85 label = "factory";
86 reg = <0x50000 0x40000>;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0xe00>;
95 };
96
97 precal_factory_e10: precal@e10 {
98 reg = <0xe10 0x19c10>;
99 };
100
101 macaddr_factory_3fff4: macaddr@3fff4 {
102 reg = <0x3fff4 0x6>;
103 };
104 };
105 };
106
107 partition@90000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x90000 0xf70000>;
111 };
112 };
113 };
114 };
115
116 &switch0 {
117 ports {
118 port@3 {
119 status = "okay";
120 label = "lan";
121 };
122 };
123 };