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";
60 reg = <0x0 0x0040000>;
66 reg = <0x0040000 0x03c0000>;
71 reg = <0x0400000 0x7c00000>;
77 compatible = "gpio-keys-polled";
82 linux,code = <KEY_RESTART>;
83 gpios = <&gpio_key 1 GPIO_ACTIVE_LOW>;
88 compatible = "gpio-leds";
91 label = "green:power";
92 gpios = <&gpio_latch 1 GPIO_ACTIVE_HIGH>;
98 gpios = <&gpio_latch 2 GPIO_ACTIVE_HIGH>;
102 label = "green:led1";
103 gpios = <&ssr 0 GPIO_ACTIVE_HIGH>;
107 label = "green:led2";
108 gpios = <&ssr 1 GPIO_ACTIVE_HIGH>;
112 label = "green:led3";
113 gpios = <&ssr 2 GPIO_ACTIVE_HIGH>;
117 label = "green:led4";
118 gpios = <&ssr 3 GPIO_ACTIVE_HIGH>;
122 label = "green:led5";
123 gpios = <&ssr 4 GPIO_ACTIVE_HIGH>;
128 compatible = "gpio-export";
131 gpio-export,name = "beeper";
132 gpio-export,output = <1>; /* Must be 1 to avoid EMI induced clicking noise */
133 gpios = <&ssr 5 GPIO_ACTIVE_HIGH>;
137 gpio-export,name = "power-usb";
138 gpio-export,output = <1>;
139 gpios = <&ssr 6 GPIO_ACTIVE_HIGH>;
143 gpio-export,name = "power-pcie";
144 gpio-export,output = <0>;
145 gpios = <&ssr 7 GPIO_ACTIVE_HIGH>;
151 clock-frequency = <40000000>;
157 compatible = "qca,ar7100-spi";
159 cs-gpios = <0>, <&gpio_latch 0 GPIO_ACTIVE_LOW>;
162 compatible = "jedec,spi-nor";
164 spi-max-frequency = <50000000>;
167 compatible = "mikrotik,routerboot-partitions";
168 #address-cells = <1>;
172 label = "routerboot";
192 compatible = "fairchild,74hc595";
195 registers-number = <1>;
197 spi-max-frequency = <50000000>;
204 phy0: ethernet-phy@0 {
212 phy-mode = "rgmii-id";
213 phy-handle = <&phy0>;
214 pll-data = <0x02000000 0x00000101 0x00001313>;