1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-ipq8064.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
7 model = "MikroTik RB3011UiAS-RM";
8 compatible = "mikrotik,rb3011", "qcom,ipq8064";
11 serial0 = &gsbi7_serial;
19 bootargs = "loglevel=8 console=ttyMSM0,115200";
20 stdout-path = "serial0:115200n8";
24 reg = <0x42000000 0x3e000000>;
25 device_type = "memory";
30 compatible = "virtual,mdio-gpio";
31 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
32 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
36 pinctrl-0 = <&mdio0_pins>;
37 pinctrl-names = "default";
40 compatible = "qca,qca8337";
44 pinctrl-0 = <&sw0_reset_pin>;
45 pinctrl-names = "default";
47 reset-gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
58 phy-mode = "rgmii-id";
75 color = <LED_COLOR_ID_GREEN>;
76 function = LED_FUNCTION_LAN;
77 default-state = "keep";
92 color = <LED_COLOR_ID_GREEN>;
93 function = LED_FUNCTION_LAN;
94 default-state = "keep";
104 #address-cells = <1>;
109 color = <LED_COLOR_ID_GREEN>;
110 function = LED_FUNCTION_LAN;
111 default-state = "keep";
121 #address-cells = <1>;
126 color = <LED_COLOR_ID_GREEN>;
127 function = LED_FUNCTION_LAN;
128 default-state = "keep";
138 #address-cells = <1>;
143 color = <LED_COLOR_ID_GREEN>;
144 function = LED_FUNCTION_LAN;
145 default-state = "keep";
155 compatible = "virtual,mdio-gpio";
156 gpios = <&qcom_pinmux 11 GPIO_ACTIVE_HIGH>,
157 <&qcom_pinmux 10 GPIO_ACTIVE_HIGH>;
158 #address-cells = <1>;
161 pinctrl-0 = <&mdio1_pins>;
162 pinctrl-names = "default";
165 compatible = "qca,qca8337";
169 pinctrl-0 = <&sw1_reset_pin>;
170 pinctrl-names = "default";
172 reset-gpios = <&qcom_pinmux 17 GPIO_ACTIVE_LOW>;
176 #address-cells = <1>;
195 #address-cells = <1>;
200 color = <LED_COLOR_ID_GREEN>;
201 function = LED_FUNCTION_LAN;
202 default-state = "keep";
212 #address-cells = <1>;
217 color = <LED_COLOR_ID_GREEN>;
218 function = LED_FUNCTION_LAN;
219 default-state = "keep";
229 #address-cells = <1>;
234 color = <LED_COLOR_ID_GREEN>;
235 function = LED_FUNCTION_LAN;
236 default-state = "keep";
246 #address-cells = <1>;
251 color = <LED_COLOR_ID_GREEN>;
252 function = LED_FUNCTION_LAN;
253 default-state = "keep";
263 #address-cells = <1>;
268 color = <LED_COLOR_ID_GREEN>;
269 function = LED_FUNCTION_LAN;
270 default-state = "keep";
279 gsbi5: gsbi@1a200000 {
280 qcom,mode = <GSBI_PROT_SPI>;
285 spi-max-frequency = <50000000>;
287 pinctrl-0 = <&spi_pins>;
288 pinctrl-names = "default";
290 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
293 compatible = "jedec,spi-nor";
294 #address-cells = <1>;
296 spi-max-frequency = <50000000>;
300 label = "RouterBoot";
308 compatible = "gpio-keys";
309 pinctrl-0 = <&buttons_pins>;
310 pinctrl-names = "default";
314 linux,code = <KEY_RESTART>;
315 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_LOW>;
316 linux,input-type = <1>;
317 debounce-interval = <60>;
322 compatible = "gpio-leds";
323 pinctrl-0 = <&leds_pins>;
324 pinctrl-names = "default";
327 label = "rb3011:green:user";
328 color = <LED_COLOR_ID_GREEN>;
329 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
330 default-state = "off";
346 phy-handle = <&switch0cpu>;
359 phy-handle = <&switch1cpu>;
369 qcom,mode = <GSBI_PROT_I2C_UART>;
386 nand-ecc-strength = <4>;
387 nand-bus-width = <8>;
388 nand-ecc-step-size = <512>;
391 compatible = "fixed-partitions";
392 #address-cells = <1>;
396 label = "RouterBoard NAND 1 Boot";
397 reg = <0x0000000 0x0800000>;
401 label = "RouterBoard NAND 1 Main";
402 reg = <0x0800000 0x7800000>;
409 buttons_pins: buttons_pins {
412 drive-strength = <16>;
417 leds_pins: leds_pins {
420 drive-strength = <16>;
425 mdio1_pins: mdio1_pins {
427 pins = "gpio10", "gpio11";
429 drive-strength = <8>;
434 sw0_reset_pin: sw0_reset_pin {
437 drive-strength = <16>;
444 sw1_reset_pin: sw1_reset_pin {
447 drive-strength = <16>;
454 usb1_pwr_en_pins: usb1_pwr_en_pins {
458 drive-strength = <16>;
470 pinctrl-0 = <&usb1_pwr_en_pins>;
471 pinctrl-names = "default";