1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-ipq8064.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "MikroTik RB3011UiAS-RM";
7 compatible = "mikrotik,rb3011";
10 serial0 = &gsbi7_serial;
18 bootargs = "loglevel=8 console=ttyMSM0,115200";
19 stdout-path = "serial0:115200n8";
23 reg = <0x42000000 0x3e000000>;
24 device_type = "memory";
29 compatible = "virtual,mdio-gpio";
30 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
31 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
35 pinctrl-0 = <&mdio0_pins>;
36 pinctrl-names = "default";
39 compatible = "qca,qca8337";
45 pinctrl-0 = <&sw0_reset_pin>;
46 pinctrl-names = "default";
48 reset-gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
59 phy-mode = "rgmii-id";
96 compatible = "virtual,mdio-gpio";
97 gpios = <&qcom_pinmux 11 GPIO_ACTIVE_HIGH>,
98 <&qcom_pinmux 10 GPIO_ACTIVE_HIGH>;
102 pinctrl-0 = <&mdio1_pins>;
103 pinctrl-names = "default";
106 compatible = "qca,qca8337";
107 #address-cells = <1>;
112 pinctrl-0 = <&sw1_reset_pin>;
113 pinctrl-names = "default";
115 reset-gpios = <&qcom_pinmux 17 GPIO_ACTIVE_LOW>;
119 #address-cells = <1>;
162 gsbi5: gsbi@1a200000 {
163 qcom,mode = <GSBI_PROT_SPI>;
168 spi-max-frequency = <50000000>;
170 pinctrl-0 = <&spi_pins>;
171 pinctrl-names = "default";
173 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
175 norflash: s25fl016k@0 {
176 compatible = "jedec,spi-nor";
177 #address-cells = <1>;
179 spi-max-frequency = <50000000>;
183 label = "RouterBoot";
191 compatible = "gpio-keys";
192 pinctrl-0 = <&buttons_pins>;
193 pinctrl-names = "default";
197 linux,code = <KEY_RESTART>;
198 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_LOW>;
199 linux,input-type = <1>;
200 debounce-interval = <60>;
205 compatible = "gpio-leds";
206 pinctrl-0 = <&leds_pins>;
207 pinctrl-names = "default";
210 label = "rb3011:green:user";
211 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
212 default-state = "off";
228 phy-handle = <&switch0cpu>;
241 phy-handle = <&switch1cpu>;
251 qcom,mode = <GSBI_PROT_I2C_UART>;
266 compatible = "qcom,nandcs";
269 nand-ecc-strength = <4>;
270 nand-bus-width = <8>;
271 nand-ecc-step-size = <512>;
274 compatible = "fixed-partitions";
275 #address-cells = <1>;
279 label = "RouterBoard NAND 1 Boot";
280 reg = <0x0000000 0x0800000>;
284 label = "RouterBoard NAND 1 Main";
285 reg = <0x0800000 0x7800000>;
292 buttons_pins: buttons_pins {
295 drive-strength = <16>;
300 leds_pins: leds_pins {
303 drive-strength = <16>;
308 mdio0_pins: mdio0_pins {
310 pins = "gpio0", "gpio1";
312 drive-strength = <8>;
317 mdio1_pins: mdio1_pins {
319 pins = "gpio10", "gpio11";
321 drive-strength = <8>;
326 sw0_reset_pin: sw0_reset_pin {
329 drive-strength = <16>;
336 sw1_reset_pin: sw1_reset_pin {
339 drive-strength = <16>;
346 usb1_pwr_en_pins: usb1_pwr_en_pins {
350 drive-strength = <16>;
362 pinctrl-0 = <&usb1_pwr_en_pins>;
363 pinctrl-names = "default";