ramips: correct NVMEM MAC address node name and label for Bolt Arion
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_wavlink_wl-wn53xax.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
8 / {
9 aliases {
10 led-boot = &led_status_red;
11 led-failsafe = &led_status_red;
12 led-running = &led_status_blue;
13 led-upgrade = &led_status_red;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "Reset Button";
21 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 touch { /* RH6015C touch sensor -> GPIO 14 */
26 label = "Touch Button";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 linux,code = <BTN_0>;
29 };
30
31 turbo {
32 label = "Turbo Button";
33 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
34 linux,code = <BTN_1>;
35 };
36
37 wps {
38 label = "WPS Button";
39 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 led_status_blue: status_blue {
48 label = "blue:power";
49 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
50 };
51
52 led_status_red: status_red {
53 label = "red:power";
54 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
55 };
56
57 wifi2g {
58 label = "blue:wifi2g";
59 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63 };
64
65 &i2c {
66 status = "okay";
67 };
68
69 &spi0 {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <40000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x0 0x30000>;
85 read-only;
86 };
87
88 partition@30000 {
89 label = "config";
90 reg = <0x30000 0x10000>;
91 read-only;
92 };
93
94 factory: partition@40000 {
95 label = "factory";
96 reg = <0x40000 0x10000>;
97 read-only;
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x50000 0xeb0000>;
104 };
105
106 partition@f00000 {
107 label = "vendor";
108 reg = <0xf00000 0x100000>;
109 read-only;
110 };
111 };
112 };
113 };
114
115 &pcie {
116 status = "okay";
117 };
118
119 &pcie0 {
120 wifi0: mt76@0,0 {
121 compatible = "mediatek,mt76";
122 reg = <0x0000 0 0 0 0>;
123 mediatek,mtd-eeprom = <&factory 0x0>;
124 };
125 };
126
127 &pcie1 {
128 wifi1: mt76@0,0 {
129 compatible = "mediatek,mt76";
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x8000>;
132 };
133 };
134
135 &ethernet {
136 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
137 };
138
139 &gmac0 {
140 nvmem-cells = <&macaddr_factory_e000>;
141 nvmem-cell-names = "mac-address";
142 };
143
144 &switch0 {
145 ports {
146 port0: port@0 {
147 status = "okay";
148 };
149
150 port1: port@1 {
151 status = "okay";
152 };
153
154 port2: port@2 {
155 status = "okay";
156 };
157
158 port3: port@3 {
159 status = "okay";
160 };
161
162 port@4 {
163 status = "okay";
164 label = "wan";
165 nvmem-cells = <&macaddr_factory_e006>;
166 nvmem-cell-names = "mac-address";
167 };
168 };
169 };
170
171 &state_default {
172 gpio {
173 groups = "rgmii2", "jtag", "wdt";
174 function = "gpio";
175 };
176 };
177
178 &uartlite2 {
179 status = "okay";
180 };
181
182 &factory {
183 compatible = "nvmem-cells";
184 #address-cells = <1>;
185 #size-cells = <1>;
186
187 macaddr_factory_e000: macaddr@e000 {
188 reg = <0xe000 0x6>;
189 };
190
191 macaddr_factory_e006: macaddr@e006 {
192 reg = <0xe006 0x6>;
193 };
194 };