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>
10 led-failsafe = &led_security;
11 led-upgrade = &led_diag;
14 /* There is a GPIO driven NXP 74HC153 dual 4-way multiplexer on board
15 * used for buttons that are on top of the the device.
18 compatible = "gpio-mux";
19 #mux-control-cells = <0>;
21 mux-gpios = <&gpio 9 GPIO_ACTIVE_HIGH>, /* s0 */
22 <&gpio 11 GPIO_ACTIVE_HIGH>; /* s1 */
26 compatible = "gpio-cascade";
27 mux-controls = <&mux>;
32 // GPIOs used by this node, the mux pin
33 upstream-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; /* 1y */
37 compatible = "gpio-cascade";
38 mux-controls = <&mux>;
43 // GPIOs used by this node, the mux pin
44 upstream-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; /* 2y */
48 compatible = "gpio-keys-polled";
53 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
55 debounce-interval = <60>;
60 linux,code = <KEY_RESTART>;
61 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
62 debounce-interval = <60>;
68 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
69 debounce-interval = <60>;
75 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
76 debounce-interval = <60>;
82 gpios = <&gpio3 1 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
87 label = "router_auto";
89 gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;
90 debounce-interval = <60>;
96 gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
97 debounce-interval = <60>;
102 compatible = "cfi-flash";
103 reg = <0x1e000000 0x2000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
114 reg = <0x0000000 0x0040000>;
119 label = "u-boot-env";
120 reg = <0x0040000 0x0020000>;
125 compatible = "denx,uimage";
127 reg = <0x0060000 0x1f60000>;
131 label = "user_property";
132 reg = <0x1fc0000 0x0020000>;
136 art: partition@1fe0000 {
138 reg = <0x1fe0000 0x020000>;
145 compatible = "gpio-leds";
149 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
150 trigger-sources = <&hub_port>;
151 linux,default-trigger = "usbport";
156 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
160 label = "green:wireless";
161 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
162 linux,default-trigger = "phy0tpt";
165 led_security: security {
166 label = "amber:security";
167 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
171 label = "green:router";
172 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
179 gpio-sda = <&gpio 19 GPIO_ACTIVE_HIGH>;
180 gpio-sck = <&gpio 20 GPIO_ACTIVE_HIGH>;
185 #address-cells = <1>;
188 phy4: ethernet-phy@4 {
204 nvmem-cells = <&macaddr_art_1120c>;
205 nvmem-cell-names = "mac-address";
220 compatible = "qca,ar9130-eth", "syscon";
221 reg = <0x1a000000 0x200
224 pll-reg = <0x4 0x18 22>;
228 phy-handle = <&phy4>;
232 nvmem-cells = <&macaddr_art_1120c>;
233 nvmem-cell-names = "mac-address";
239 mtd-cal-data = <&art 0x11000>;
255 compatible = "nvmem-cells";
256 #address-cells = <1>;
259 macaddr_art_1120c: macaddr@1120c {