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";
224 phy-handle = <&switch0cpu>;
237 phy-handle = <&switch1cpu>;
247 qcom,mode = <GSBI_PROT_I2C_UART>;
255 buttons_pins: buttons_pins {
258 drive-strength = <16>;
263 leds_pins: leds_pins {
266 drive-strength = <16>;
271 mdio0_pins: mdio0_pins {
273 pins = "gpio0", "gpio1";
275 drive-strength = <8>;
280 mdio1_pins: mdio1_pins {
282 pins = "gpio10", "gpio11";
284 drive-strength = <8>;
289 sw0_reset_pin: sw0_reset_pin {
292 drive-strength = <16>;
299 sw1_reset_pin: sw1_reset_pin {
302 drive-strength = <16>;