ramips: mt7621: nix mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_haier-sim_wr1800k.dtsi
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 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 label-mac-device = &gmac1;
12 led-boot = &led_status_red;
13 led-failsafe = &led_status_blue;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_blue;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 bootargs-override = "console=ttyS0,115200";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_status_blue: led-0 {
43 label = "blue:status";
44 color = <LED_COLOR_ID_BLUE>;
45 function = LED_FUNCTION_STATUS;
46 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
47 };
48
49 led_status_green: led-1 {
50 label = "green:status";
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_STATUS;
53 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
54 };
55
56 led_status_red: led-2 {
57 label = "red:status";
58 color = <LED_COLOR_ID_RED>;
59 function = LED_FUNCTION_STATUS;
60 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
61 };
62 };
63 };
64
65 &gmac0 {
66 nvmem-cells = <&macaddr_factory_8004 0>;
67 nvmem-cell-names = "mac-address";
68 };
69
70 &gmac1 {
71 status = "okay";
72 label = "wan";
73 phy-handle = <&ethphy4>;
74
75 nvmem-cells = <&macaddr_factory_8004 (-3)>;
76 nvmem-cell-names = "mac-address";
77 };
78
79 &mdio {
80 ethphy4: ethernet-phy@4 {
81 reg = <4>;
82 };
83 };
84
85 &nand {
86 status = "okay";
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0000000 0x0080000>;
96 read-only;
97 };
98
99 partition@80000 {
100 label = "u-boot-env";
101 reg = <0x0080000 0x0080000>;
102 };
103
104 factory: partition@100000 {
105 label = "factory";
106 reg = <0x0100000 0x0080000>;
107 read-only;
108
109 nvmem-layout {
110 compatible = "fixed-layout";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 eeprom_factory_0: eeprom@0 {
115 reg = <0x0 0xe00>;
116 };
117
118 macaddr_factory_8004: macaddr@8004 {
119 compatible = "mac-base";
120 reg = <0x8004 0x6>;
121 #nvmem-cell-cells = <1>;
122 };
123 };
124 };
125
126 partition@180000 {
127 label = "firmware";
128 reg = <0x0180000 0x7a80000>;
129
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 partition@0 {
135 label = "kernel";
136 reg = <0x0000000 0x0400000>;
137 };
138
139 partition@400000 {
140 label = "ubi";
141 reg = <0x0400000 0x7680000>;
142 };
143 };
144
145 /* last 128KiB *32 is reserved for bad blocks management */
146 };
147 };
148
149 &pcie {
150 status = "okay";
151 };
152
153 &pcie1 {
154 wifi@0,0 {
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_0>;
158 nvmem-cell-names = "eeprom";
159 mediatek,disable-radar-background;
160 };
161 };
162
163 &state_default {
164 gpio {
165 groups = "i2c", "uart3", "wdt";
166 function = "gpio";
167 };
168 };
169
170 &switch0 {
171 ports {
172 port@1 {
173 status = "okay";
174 label = "lan3";
175 };
176
177 port@2 {
178 status = "okay";
179 label = "lan2";
180 };
181
182 port@3 {
183 status = "okay";
184 label = "lan1";
185 };
186 };
187 };
188
189 &xhci {
190 status = "disabled";
191 };