ramips: fix and clean up D-Link MAC address
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_belkin_rt1800.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "belkin,rt1800", "mediatek,mt7621-soc";
11 model = "Belkin RT1800";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
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 6 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led-wps {
44 color = <LED_COLOR_ID_AMBER>;
45 function = LED_FUNCTION_WPS;
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 };
48
49 led_power: led-power {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_WHITE>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 default-state = "on";
54 };
55
56 led-wan2 {
57 color = <LED_COLOR_ID_AMBER>;
58 function = LED_FUNCTION_WAN;
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 };
61
62 led-wan {
63 color = <LED_COLOR_ID_WHITE>;
64 function = LED_FUNCTION_WAN;
65 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
66 };
67 };
68 };
69
70 &nand {
71 status = "okay";
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "Boot";
80 reg = <0x0 0x80000>;
81 read-only;
82 };
83
84 partition@80000 {
85 label = "Config";
86 reg = <0x80000 0x80000>;
87 };
88
89 partition@100000 {
90 label = "Factory";
91 reg = <0x100000 0x80000>;
92 read-only;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 eeprom_factory_0: eeprom@0 {
100 reg = <0x0 0xe00>;
101 };
102 };
103 };
104
105 partition@180000 {
106 label = "firmware";
107 reg = <0x180000 0x3000000>;
108
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 label = "kernel";
115 reg = <0x0 0x400000>;
116 };
117
118 partition@400000 {
119 label = "ubi";
120 reg = <0x400000 0x2c00000>;
121 };
122 };
123
124 partition@3180000 {
125 label = "alt_firmware";
126 reg = <0x3180000 0x3000000>;
127 read-only;
128 };
129
130 partition@6180000 {
131 label = "cbtinfo";
132 reg = <0x6180000 0x80000>;
133 read-only;
134 };
135 /* seems to be the end here. Can't read past 0x6200000 */
136 };
137 };
138
139 &pcie {
140 status = "okay";
141 };
142
143 &pcie1 {
144 wifi@0,0 {
145 compatible = "mediatek,mt76";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&eeprom_factory_0>;
148 nvmem-cell-names = "eeprom";
149 };
150 };
151
152 &state_default {
153 gpio {
154 groups = "i2c", "uart3", "jtag", "wdt";
155 function = "gpio";
156 };
157 };
158
159 &gmac1 {
160 status = "okay";
161 label = "wan";
162 phy-handle = <&ethphy0>;
163 };
164
165 &mdio {
166 ethphy0: ethernet-phy@0 {
167 reg = <0>;
168 };
169 };
170
171 &switch0 {
172 gpio-controller;
173 #gpio-cells = <2>;
174
175 ports {
176 port@1 {
177 status = "okay";
178 label = "lan4";
179 };
180
181 port@2 {
182 status = "okay";
183 label = "lan3";
184 };
185
186 port@3 {
187 status = "okay";
188 label = "lan2";
189 };
190
191 port@4 {
192 status = "okay";
193 label = "lan1";
194 };
195 };
196 };