ramips: mt7621: nix mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_cudy_m1800.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 = "cudy,m1800", "mediatek,mt7621-soc";
10 model = "Cudy M1800";
11
12 aliases {
13 led-boot = &led_internet_white;
14 led-failsafe = &led_internet_white;
15 led-running = &led_internet_white;
16 led-upgrade = &led_internet_white;
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 8 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_internet_white: internet-white {
44 label = "white:internet";
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 };
47
48 internet-red {
49 label = "red:internet";
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &gmac0 {
56 nvmem-cells = <&macaddr_bdinfo_de00 1>;
57 nvmem-cell-names = "mac-address";
58 };
59
60 &gmac1 {
61 status = "okay";
62 label = "lan";
63 phy-handle = <&ethphy4>;
64
65 nvmem-cells = <&macaddr_bdinfo_de00 0>;
66 nvmem-cell-names = "mac-address";
67 };
68
69 &mdio {
70 ethphy4: ethernet-phy@4 {
71 reg = <4>;
72 };
73 };
74
75 &pcie {
76 status = "okay";
77 };
78
79 &pcie0 {
80 wifi@0,0 {
81 compatible = "mediatek,mt76";
82 reg = <0x0000 0 0 0 0>;
83 mediatek,mtd-eeprom = <&factory 0x0000>;
84 mediatek,disable-radar-background;
85 };
86 };
87
88 &spi0 {
89 status = "okay";
90
91 flash@0 {
92 compatible = "jedec,spi-nor";
93 reg = <0>;
94 spi-max-frequency = <50000000>;
95 m25p,fast-read;
96 broken-flash-reset;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x0 0x30000>;
106 read-only;
107 };
108
109 partition@30000 {
110 label = "u-boot-env";
111 reg = <0x30000 0x10000>;
112 read-only;
113 };
114
115 factory: partition@40000 {
116 label = "factory";
117 reg = <0x40000 0x10000>;
118 read-only;
119 };
120
121 partition@50000 {
122 compatible = "denx,uimage";
123 label = "firmware";
124 reg = <0x50000 0xfb0000>;
125 };
126
127 partition@1000000 {
128 label = "app";
129 reg = <0x1000000 0xfd0000>;
130 read-only;
131 };
132
133 partition@1fd0000 {
134 label = "debug";
135 reg = <0x1fd0000 0x10000>;
136 read-only;
137 };
138
139 partition@1fe0000 {
140 label = "backup";
141 reg = <0x1fe0000 0x10000>;
142 read-only;
143 };
144
145 partition@1ff0000 {
146 label = "bdinfo";
147 reg = <0x1ff0000 0x10000>;
148 read-only;
149
150 nvmem-layout {
151 compatible = "fixed-layout";
152 #address-cells = <1>;
153 #size-cells = <1>;
154
155 macaddr_bdinfo_de00: macaddr@de00 {
156 compatible = "mac-base";
157 reg = <0xde00 0x6>;
158 #nvmem-cell-cells = <1>;
159 };
160 };
161 };
162 };
163 };
164 };
165
166 &state_default {
167 gpio {
168 groups = "jtag", "uart3";
169 function = "gpio";
170 };
171 };
172
173 &switch0 {
174 ports {
175 port@3 {
176 status = "okay";
177 label = "wan";
178 };
179 };
180 };