hostapd: Fix compile against mbedtsl 3.6
[openwrt/staging/nbd.git] / target / linux / ipq806x / files-6.1 / arch / arm / boot / dts / qcom-ipq8068-mr52.dts
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2
3 #include "qcom-ipq8068-cryptid-common.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7
8 / {
9 model = "Meraki MR52";
10 compatible = "meraki,mr52", "qcom,ipq8064";
11
12 aliases {
13 serial1 = &gsbi1_serial;
14 mdio-gpio0 = &mdio_gpio0;
15 ethernet0 = &gmac2;
16 ethernet1 = &gmac3;
17
18 led-boot = &led_active;
19 led-failsafe = &led_power;
20 led-running = &led_active;
21 led-upgrade = &led_active;
22 };
23
24 keys {
25 compatible = "gpio-keys";
26 pinctrl-0 = <&button_pins>;
27 pinctrl-names = "default";
28
29 reset {
30 label = "reset";
31 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
34 wakeup-source;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40 pinctrl-0 = <&led_pins>;
41 pinctrl-names = "default";
42
43 led_power: power {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_ORANGE>;
46 gpios = <&qcom_pinmux 19 GPIO_ACTIVE_HIGH>;
47 };
48
49 lan2_green {
50 label = "green:lan2";
51 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
52 };
53
54 lan1_green {
55 label = "green:lan1";
56 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
57 };
58
59 led_active: active {
60 label = "white:active";
61 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
62 };
63
64 lan2_orange {
65 label = "orange:lan2";
66 gpios = <&qcom_pinmux 60 GPIO_ACTIVE_HIGH>;
67 };
68
69 lan1_orange {
70 label = "orange:lan1";
71 gpios = <&qcom_pinmux 62 GPIO_ACTIVE_HIGH>;
72 };
73 };
74 };
75
76 &gmac2 {
77 status = "okay";
78
79 qcom,id = <2>;
80 mdiobus = <&mdio0>;
81
82 phy-mode = "sgmii";
83 phy-handle = <&phy0>;
84
85 nvmem-cells = <&mac_address 0>;
86 nvmem-cell-names = "mac-address";
87 };
88
89 &gmac3 {
90 status = "okay";
91
92 qcom,id = <3>;
93 mdiobus = <&mdio_gpio0>;
94
95 phy-mode = "sgmii";
96 phy-handle = <&phy4>;
97
98 nvmem-cells = <&mac_address 1>;
99 nvmem-cell-names = "mac-address";
100 };
101
102 &gsbi7 {
103 status = "okay";
104 qcom,mode = <GSBI_PROT_I2C>;
105 };
106
107 &gsbi7_i2c {
108 status = "okay";
109
110 pinctrl-0 = <&i2c_pins>;
111 pinctrl-names = "default";
112
113 ina2xx@45 {
114 compatible = "ina219";
115 shunt-resistor = <80000>;
116 reg = <0x45>;
117 };
118
119 tlc591xx@49 {
120 #address-cells = <1>;
121 #size-cells = <0>;
122 compatible = "ti,tlc59108";
123 reg = <0x49>;
124
125 red@0 {
126 label = "red:user";
127 reg = <0x0>;
128 };
129
130 green@1 {
131 label = "green:user";
132 reg = <0x1>;
133 };
134
135 blue@2 {
136 label = "blue:user";
137 reg = <0x2>;
138 };
139 };
140
141 eeprom@52 {
142 compatible = "atmel,24c64";
143 pagesize = <32>;
144 reg = <0x52>;
145 read-only;
146
147 nvmem-layout {
148 compatible = "fixed-layout";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 mac_address: mac-address@66 {
153 compatible = "mac-base";
154 reg = <0x66 0x6>;
155 #nvmem-cell-cells = <1>;
156 };
157 };
158 };
159 };
160
161 &qcom_pinmux {
162 i2c_pins: i2c_pins {
163 mux {
164 pins = "gpio8", "gpio9";
165 function = "gsbi7";
166 drive-strength = <2>;
167 bias-pull-up;
168 input;
169 };
170 };
171
172 led_pins: led_pins {
173 mux {
174 pins = "gpio19", "gpio26";
175 function = "gpio";
176 drive-strength = <12>;
177 bias-pull-down;
178 output-low;
179 };
180 };
181
182 button_pins: button_pins {
183 mux {
184 pins = "gpio25";
185 function = "gpio";
186 drive-strength = <2>;
187 bias-pull-up;
188 input;
189 };
190 };
191 };
192
193 &soc {
194 mdio_gpio0: mdio {
195 compatible = "virtual,mdio-gpio";
196 #address-cells = <1>;
197 #size-cells = <0>;
198
199 status = "okay";
200
201 pinctrl-0 = <&mdio0_pins_active>, <&phy_active>;
202 pinctrl-names = "default";
203
204 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH
205 &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
206
207 phy0: ethernet-phy0 {
208 reg = <0>;
209 reset-gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
210 reset-assert-us = <24000>;
211 };
212
213 phy4: ethernet-phy4 {
214 reg = <4>;
215 reset-gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
216 reset-assert-us = <24000>;
217 };
218 };
219 };
220
221 &wifi0 {
222 nvmem-cells = <&mac_address 4>;
223 nvmem-cell-names = "mac-address";
224 };
225
226 &wifi1 {
227 nvmem-cells = <&mac_address 3>;
228 nvmem-cell-names = "mac-address";
229 };
230
231 &wifi2 {
232 nvmem-cells = <&mac_address 2>;
233 nvmem-cell-names = "mac-address";
234 };
235
236 &hs_phy_0 {
237 status = "okay";
238 };
239
240 &ss_phy_0 {
241 status = "okay";
242 };
243
244 &usb3_0 {
245 status = "okay";
246 };
247
248 &hs_phy_1 {
249 status = "okay";
250 };
251
252 &ss_phy_1 {
253 status = "okay";
254 };
255
256 &usb3_1 {
257 status = "okay";
258 };