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;
19 gpio_latch: gpio_latch {
20 compatible = "gpio-latch";
23 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>,
24 <&gpio 1 GPIO_ACTIVE_HIGH>,
25 <&gpio 2 GPIO_ACTIVE_HIGH>,
26 <&gpio 3 GPIO_ACTIVE_HIGH>,
27 <0>, /* Not connected */
28 <&gpio 13 GPIO_ACTIVE_HIGH>,
29 <&gpio 14 GPIO_ACTIVE_HIGH>,
30 <&gpio 15 GPIO_ACTIVE_HIGH>,
31 <&gpio 11 GPIO_ACTIVE_LOW>; /* Latch Enable */
35 compatible = "mikrotik,rb91x-nand";
37 gpios = <&gpio_latch 3 GPIO_ACTIVE_HIGH>, /* Read */
38 <&gpio 4 GPIO_ACTIVE_HIGH>, /* Ready (RDY) */
39 <&gpio_latch 5 GPIO_ACTIVE_LOW>, /* Chip Enable (nCE) */
40 <&gpio_latch 6 GPIO_ACTIVE_HIGH>, /* Command Latch Enable (CLE) */
41 <&gpio_latch 7 GPIO_ACTIVE_HIGH>, /* Address Latch Enable (ALE) */
42 <&gpio 12 GPIO_ACTIVE_LOW>, /* Read/Write Enable (nRW) */
43 <&gpio_latch 8 GPIO_ACTIVE_LOW>; /* Latch Enable (nLE) */
46 compatible = "fixed-partitions";
51 reg = <0x0 0x0040000>;
57 reg = <0x0040000 0x03c0000>;
62 reg = <0x0400000 0x7c00000>;
68 compatible = "gpio-leds";
71 label = "green:power";
72 gpios = <&gpio_latch 1 GPIO_ACTIVE_HIGH>;
78 gpios = <&gpio_latch 2 GPIO_ACTIVE_HIGH>;
83 gpios = <&ssr 0 GPIO_ACTIVE_HIGH>;
88 gpios = <&ssr 1 GPIO_ACTIVE_HIGH>;
93 gpios = <&ssr 2 GPIO_ACTIVE_HIGH>;
98 gpios = <&ssr 3 GPIO_ACTIVE_HIGH>;
102 label = "green:led5";
103 gpios = <&ssr 4 GPIO_ACTIVE_HIGH>;
108 compatible = "gpio-export";
111 gpio-export,name = "beeper";
112 gpio-export,output = <1>; /* Must be 1 to avoid EMI induced clicking noise */
113 gpios = <&ssr 5 GPIO_ACTIVE_HIGH>;
117 gpio-export,name = "power-usb";
118 gpio-export,output = <1>;
119 gpios = <&ssr 6 GPIO_ACTIVE_HIGH>;
123 gpio-export,name = "power-pcie";
124 gpio-export,output = <0>;
125 gpios = <&ssr 7 GPIO_ACTIVE_HIGH>;
131 clock-frequency = <25000000>;
137 compatible = "qca,ar7100-spi";
139 cs-gpios = <0>, <&gpio_latch 0 GPIO_ACTIVE_LOW>;
142 compatible = "jedec,spi-nor";
144 spi-max-frequency = <50000000>;
147 compatible = "mikrotik,routerboot-partitions";
148 #address-cells = <1>;
152 label = "routerboot";
157 hard_config: hard_config {
172 compatible = "fairchild,74hc595";
175 registers-number = <1>;
177 spi-max-frequency = <50000000>;
186 phy0: ethernet-phy@0 {
194 phy-mode = "rgmii-id";
195 phy-handle = <&phy0>;
196 pll-data = <0x02000000 0x00000101 0x00001313>;