1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mikrotik,routerboard-912uag-2hpnd", "qca,ar9342";
10 model = "MikroTik RouterBOARD 912UAG-2HPnD";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "mikrotik,gpio-rb91x-key";
23 gpio = <&gpio 15 GPIO_ACTIVE_HIGH>;
26 gpio_latch: gpio_latch {
27 compatible = "gpio-latch";
30 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>,
31 <&gpio 1 GPIO_ACTIVE_HIGH>,
32 <&gpio 2 GPIO_ACTIVE_HIGH>,
33 <&gpio 3 GPIO_ACTIVE_HIGH>,
34 <0>, /* Not connected */
35 <&gpio 13 GPIO_ACTIVE_HIGH>,
36 <&gpio 14 GPIO_ACTIVE_HIGH>,
37 <&gpio_key 0 GPIO_ACTIVE_HIGH>,
38 <&gpio 11 GPIO_ACTIVE_LOW>; /* Latch Enable */
42 compatible = "mikrotik,rb91x-nand";
44 gpios = <&gpio_latch 3 GPIO_ACTIVE_HIGH>, /* Read */
45 <&gpio 4 GPIO_ACTIVE_HIGH>, /* Ready (RDY) */
46 <&gpio_latch 5 GPIO_ACTIVE_LOW>, /* Chip Enable (nCE) */
47 <&gpio_latch 6 GPIO_ACTIVE_HIGH>, /* Command Latch Enable (CLE) */
48 <&gpio_latch 7 GPIO_ACTIVE_HIGH>, /* Address Latch Enable (ALE) */
49 <&gpio 12 GPIO_ACTIVE_LOW>, /* Read/Write Enable (nRW) */
50 <&gpio_latch 8 GPIO_ACTIVE_LOW>, /* Latch Enable (nLE) */
51 <&gpio_key 2 GPIO_ACTIVE_HIGH>; /* Key poll disable */
54 compatible = "fixed-partitions";
59 reg = <0x0 0x0040000>;
65 reg = <0x0040000 0x03c0000>;
70 reg = <0x0400000 0x7c00000>;
76 compatible = "gpio-keys-polled";
81 linux,code = <KEY_RESTART>;
82 gpios = <&gpio_key 1 GPIO_ACTIVE_LOW>;
87 compatible = "gpio-leds";
90 label = "green:power";
91 gpios = <&gpio_latch 1 GPIO_ACTIVE_HIGH>;
97 gpios = <&gpio_latch 2 GPIO_ACTIVE_HIGH>;
101 label = "green:led1";
102 gpios = <&ssr 0 GPIO_ACTIVE_HIGH>;
106 label = "green:led2";
107 gpios = <&ssr 1 GPIO_ACTIVE_HIGH>;
111 label = "green:led3";
112 gpios = <&ssr 2 GPIO_ACTIVE_HIGH>;
116 label = "green:led4";
117 gpios = <&ssr 3 GPIO_ACTIVE_HIGH>;
121 label = "green:led5";
122 gpios = <&ssr 4 GPIO_ACTIVE_HIGH>;
127 compatible = "gpio-export";
130 gpio-export,name = "beeper";
131 gpio-export,output = <1>; /* Must be 1 to avoid EMI induced clicking noise */
132 gpios = <&ssr 5 GPIO_ACTIVE_HIGH>;
136 gpio-export,name = "power-usb";
137 gpio-export,output = <1>;
138 gpios = <&ssr 6 GPIO_ACTIVE_HIGH>;
142 gpio-export,name = "power-pcie";
143 gpio-export,output = <0>;
144 gpios = <&ssr 7 GPIO_ACTIVE_HIGH>;
150 clock-frequency = <25000000>;
156 compatible = "qca,ar7100-spi";
158 cs-gpios = <0>, <&gpio_latch 0 GPIO_ACTIVE_LOW>;
161 compatible = "jedec,spi-nor";
163 spi-max-frequency = <50000000>;
166 compatible = "mikrotik,routerboot-partitions";
167 #address-cells = <1>;
171 label = "routerboot";
191 compatible = "fairchild,74hc595";
194 registers-number = <1>;
196 spi-max-frequency = <50000000>;
205 phy0: ethernet-phy@0 {
213 phy-mode = "rgmii-id";
214 phy-handle = <&phy0>;
215 pll-data = <0x02000000 0x00000101 0x00001313>;