hostapd: Fix compile against mbedtsl 3.6
[openwrt/staging/nbd.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 nvmem-cells = <&eeprom_factory_0>;
84 nvmem-cell-names = "eeprom";
85 mediatek,disable-radar-background;
86 };
87 };
88
89 &spi0 {
90 status = "okay";
91
92 flash@0 {
93 compatible = "jedec,spi-nor";
94 reg = <0>;
95 spi-max-frequency = <50000000>;
96 m25p,fast-read;
97 broken-flash-reset;
98
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x30000>;
107 read-only;
108 };
109
110 partition@30000 {
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
113 read-only;
114 };
115
116 partition@40000 {
117 label = "factory";
118 reg = <0x40000 0x10000>;
119 read-only;
120
121 nvmem-layout {
122 compatible = "fixed-layout";
123 #address-cells = <1>;
124 #size-cells = <1>;
125
126 eeprom_factory_0: eeprom@0 {
127 reg = <0x0 0xe00>;
128 };
129 };
130 };
131
132 partition@50000 {
133 compatible = "denx,uimage";
134 label = "firmware";
135 reg = <0x50000 0xfb0000>;
136 };
137
138 partition@1000000 {
139 label = "app";
140 reg = <0x1000000 0xfd0000>;
141 read-only;
142 };
143
144 partition@1fd0000 {
145 label = "debug";
146 reg = <0x1fd0000 0x10000>;
147 read-only;
148 };
149
150 partition@1fe0000 {
151 label = "backup";
152 reg = <0x1fe0000 0x10000>;
153 read-only;
154 };
155
156 partition@1ff0000 {
157 label = "bdinfo";
158 reg = <0x1ff0000 0x10000>;
159 read-only;
160
161 nvmem-layout {
162 compatible = "fixed-layout";
163 #address-cells = <1>;
164 #size-cells = <1>;
165
166 macaddr_bdinfo_de00: macaddr@de00 {
167 compatible = "mac-base";
168 reg = <0xde00 0x6>;
169 #nvmem-cell-cells = <1>;
170 };
171 };
172 };
173 };
174 };
175 };
176
177 &state_default {
178 gpio {
179 groups = "jtag", "uart3";
180 function = "gpio";
181 };
182 };
183
184 &switch0 {
185 ports {
186 port@3 {
187 status = "okay";
188 label = "wan";
189 };
190 };
191 };