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";
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";
46 pinctrl-0 = <&sw0_reset_pin>;
47 pinctrl-names = "default";
49 reset-gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
60 phy-mode = "rgmii-id";
97 compatible = "virtual,mdio-gpio";
98 gpios = <&qcom_pinmux 11 GPIO_ACTIVE_HIGH>,
99 <&qcom_pinmux 10 GPIO_ACTIVE_HIGH>;
100 #address-cells = <1>;
103 pinctrl-0 = <&mdio1_pins>;
104 pinctrl-names = "default";
107 compatible = "qca,qca8337";
108 #address-cells = <1>;
113 pinctrl-0 = <&sw1_reset_pin>;
114 pinctrl-names = "default";
116 reset-gpios = <&qcom_pinmux 17 GPIO_ACTIVE_LOW>;
120 #address-cells = <1>;
163 gsbi5: gsbi@1a200000 {
164 qcom,mode = <GSBI_PROT_SPI>;
169 spi-max-frequency = <50000000>;
171 pinctrl-0 = <&spi_pins>;
172 pinctrl-names = "default";
174 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
177 compatible = "jedec,spi-nor";
178 #address-cells = <1>;
180 spi-max-frequency = <50000000>;
184 label = "RouterBoot";
192 compatible = "gpio-keys";
193 pinctrl-0 = <&buttons_pins>;
194 pinctrl-names = "default";
198 linux,code = <KEY_RESTART>;
199 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_LOW>;
200 linux,input-type = <1>;
201 debounce-interval = <60>;
206 compatible = "gpio-leds";
207 pinctrl-0 = <&leds_pins>;
208 pinctrl-names = "default";
211 label = "rb3011:green:user";
212 color = <LED_COLOR_ID_GREEN>;
213 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
214 default-state = "off";
230 phy-handle = <&switch0cpu>;
243 phy-handle = <&switch1cpu>;
253 qcom,mode = <GSBI_PROT_I2C_UART>;
268 compatible = "qcom,nandcs";
271 nand-ecc-strength = <4>;
272 nand-bus-width = <8>;
273 nand-ecc-step-size = <512>;
276 compatible = "fixed-partitions";
277 #address-cells = <1>;
281 label = "RouterBoard NAND 1 Boot";
282 reg = <0x0000000 0x0800000>;
286 label = "RouterBoard NAND 1 Main";
287 reg = <0x0800000 0x7800000>;
294 buttons_pins: buttons_pins {
297 drive-strength = <16>;
302 leds_pins: leds_pins {
305 drive-strength = <16>;
310 mdio1_pins: mdio1_pins {
312 pins = "gpio10", "gpio11";
314 drive-strength = <8>;
319 sw0_reset_pin: sw0_reset_pin {
322 drive-strength = <16>;
329 sw1_reset_pin: sw1_reset_pin {
332 drive-strength = <16>;
339 usb1_pwr_en_pins: usb1_pwr_en_pins {
343 drive-strength = <16>;
355 pinctrl-0 = <&usb1_pwr_en_pins>;
356 pinctrl-names = "default";