ramips: mt7621: nix mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_renkforce_ws-wn530hp3-a.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 = "renkforce,ws-wn530hp3-a", "mediatek,mt7621-soc";
10 model = "Renkforce WS-WN530HP3-A";
11
12 aliases {
13 label-mac-device = &gmac0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power: led_1 {
34 label = "red:led1";
35 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
36 };
37
38 led_2 {
39 label = "blue:led2";
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
41 };
42 };
43 };
44
45 &spi0 {
46 status = "okay";
47
48 flash@0 {
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <40000000>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 partition@30000 {
65 label = "u-boot-env";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 factory: partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74
75 nvmem-layout {
76 compatible = "fixed-layout";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 eeprom_factory_0: eeprom@0 {
81 reg = <0x0 0x400>;
82 };
83
84 eeprom_factory_8000: eeprom@8000 {
85 reg = <0x8000 0x4da8>;
86 };
87
88 macaddr_factory_4: macaddr@4 {
89 compatible = "mac-base";
90 reg = <0x4 0x6>;
91 #nvmem-cell-cells = <1>;
92 };
93 };
94 };
95
96 partition@50000 {
97 compatible = "denx,uimage";
98 label = "firmware";
99 reg = <0x50000 0xf30000>;
100 };
101 };
102 };
103 };
104
105 &pcie {
106 status = "okay";
107 };
108
109 &pcie0 {
110 wifi0: wifi@0,0 {
111 compatible = "mediatek,mt76";
112 reg = <0x0000 0 0 0 0>;
113 nvmem-cells = <&eeprom_factory_0>;
114 nvmem-cell-names = "eeprom";
115 ieee80211-freq-limit = <2400000 2500000>;
116 };
117 };
118
119 &pcie1 {
120 wifi1: wifi@0,0 {
121 compatible = "mediatek,mt76";
122 reg = <0x0000 0 0 0 0>;
123 ieee80211-freq-limit = <5000000 6000000>;
124 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_4 1>;
125 nvmem-cell-names = "eeprom", "mac-address";
126 };
127 };
128
129 &gmac0 {
130 nvmem-cells = <&macaddr_factory_4 (-2)>;
131 nvmem-cell-names = "mac-address";
132 };
133
134 &gmac1 {
135 status = "okay";
136 label = "wan";
137 phy-handle = <&ethphy4>;
138
139 nvmem-cells = <&macaddr_factory_4 (-1)>;
140 nvmem-cell-names = "mac-address";
141 };
142
143 &mdio {
144 ethphy4: ethernet-phy@4 {
145 reg = <4>;
146 };
147 };
148
149 &switch0 {
150 ports {
151 port@0 {
152 status = "okay";
153 label = "lan2";
154 };
155
156 port@1 {
157 status = "okay";
158 label = "lan1";
159 };
160 };
161 };
162
163 &state_default {
164 gpio {
165 groups = "uart2", "jtag", "wdt";
166 function = "gpio";
167 };
168 };
169
170 &xhci {
171 status = "disabled";
172 };