1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
11 led-failsafe = &led_security;
12 led-upgrade = &led_diag;
15 /* There is a GPIO driven NXP 74HC153 dual 4-way multiplexer on board
16 * used for buttons that are on top of the the device.
19 compatible = "gpio-mux";
20 #mux-control-cells = <0>;
22 mux-gpios = <&gpio 9 GPIO_ACTIVE_HIGH>, /* s0 */
23 <&gpio 11 GPIO_ACTIVE_HIGH>; /* s1 */
27 compatible = "gpio-cascade";
28 mux-controls = <&mux>;
33 // GPIOs used by this node, the mux pin
34 upstream-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; /* 1y */
38 compatible = "gpio-cascade";
39 mux-controls = <&mux>;
44 // GPIOs used by this node, the mux pin
45 upstream-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; /* 2y */
49 compatible = "gpio-keys-polled";
54 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
69 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
70 debounce-interval = <60>;
76 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
77 debounce-interval = <60>;
83 gpios = <&gpio3 1 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
88 label = "router_auto";
90 gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;
91 debounce-interval = <60>;
97 gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
98 debounce-interval = <60>;
103 compatible = "cfi-flash";
104 reg = <0x1e000000 0x2000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x0000000 0x0040000>;
120 label = "u-boot-env";
121 reg = <0x0040000 0x0020000>;
126 compatible = "denx,uimage";
128 reg = <0x0060000 0x1f60000>;
132 label = "user_property";
133 reg = <0x1fc0000 0x0020000>;
137 art: partition@1fe0000 {
139 reg = <0x1fe0000 0x020000>;
143 compatible = "fixed-layout";
144 #address-cells = <1>;
147 macaddr_art_1120c: macaddr@1120c {
156 compatible = "gpio-leds";
159 function = LED_FUNCTION_USB;
160 color = <LED_COLOR_ID_BLUE>;
161 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
162 trigger-sources = <&hub_port>;
163 linux,default-trigger = "usbport";
168 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
172 label = "green:wireless";
173 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
174 linux,default-trigger = "phy0tpt";
177 led_security: security {
178 label = "amber:security";
179 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
183 label = "green:router";
184 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
191 gpio-sda = <&gpio 19 GPIO_ACTIVE_HIGH>;
192 gpio-sck = <&gpio 20 GPIO_ACTIVE_HIGH>;
197 #address-cells = <1>;
200 phy4: ethernet-phy@4 {
216 nvmem-cells = <&macaddr_art_1120c>;
217 nvmem-cell-names = "mac-address";
232 compatible = "qca,ar9130-eth", "syscon";
233 reg = <0x1a000000 0x200
236 pll-reg = <0x4 0x18 22>;
240 phy-handle = <&phy4>;
244 nvmem-cells = <&macaddr_art_1120c>;
245 nvmem-cell-names = "mac-address";
251 mtd-cal-data = <&art 0x11000>;