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;
15 compatible = "fixed-clock";
17 clock-frequency = <40000000>;
20 /* There is a GPIO driven NXP 74HC153 dual 4-way multiplexer on board
21 * used for buttons that are on top of the the device.
24 compatible = "gpio-mux";
25 #mux-control-cells = <0>;
27 mux-gpios = <&gpio 9 GPIO_ACTIVE_HIGH>, /* s0 */
28 <&gpio 11 GPIO_ACTIVE_HIGH>; /* s1 */
32 compatible = "gpio-cascade";
33 mux-controls = <&mux>;
38 // GPIOs used by this node, the mux pin
39 upstream-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; /* 1y */
43 compatible = "gpio-cascade";
44 mux-controls = <&mux>;
49 // GPIOs used by this node, the mux pin
50 upstream-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; /* 2y */
54 compatible = "gpio-keys-polled";
59 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
66 linux,code = <KEY_RESTART>;
67 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
74 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
75 debounce-interval = <60>;
81 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
82 debounce-interval = <60>;
88 gpios = <&gpio3 1 GPIO_ACTIVE_LOW>;
89 debounce-interval = <60>;
93 label = "router_auto";
95 gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>;
96 debounce-interval = <60>;
101 linux,code = <BTN_4>;
102 gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
103 debounce-interval = <60>;
108 compatible = "cfi-flash";
109 reg = <0x1e000000 0x2000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
120 reg = <0x0000000 0x0040000>;
125 label = "u-boot-env";
126 reg = <0x0040000 0x0020000>;
131 compatible = "denx,uimage";
133 reg = <0x0060000 0x1f60000>;
137 label = "user_property";
138 reg = <0x1fc0000 0x0020000>;
142 art: partition@1fe0000 {
144 reg = <0x1fe0000 0x020000>;
151 compatible = "gpio-leds";
155 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
156 trigger-sources = <&hub_port>;
157 linux,default-trigger = "usbport";
162 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
166 label = "green:wireless";
167 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
168 linux,default-trigger = "phy0tpt";
171 led_security: security {
172 label = "amber:security";
173 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
177 label = "green:router";
178 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
185 gpio-sda = <&gpio 19 GPIO_ACTIVE_HIGH>;
186 gpio-sck = <&gpio 20 GPIO_ACTIVE_HIGH>;
192 #address-cells = <1>;
196 phy4: ethernet-phy@4 {
212 nvmem-cells = <&macaddr_art_1120c>;
213 nvmem-cell-names = "mac-address";
228 compatible = "qca,ar9130-eth", "syscon";
229 reg = <0x1a000000 0x200
232 pll-reg = <0x4 0x18 22>;
236 phy-handle = <&phy4>;
240 nvmem-cells = <&macaddr_art_1120c>;
241 nvmem-cell-names = "mac-address";
247 mtd-cal-data = <&art 0x11000>;
255 clocks = <&clock40mhz>;
261 #address-cells = <1>;
266 #trigger-source-cells = <0>;
275 compatible = "nvmem-cells";
276 #address-cells = <1>;
279 macaddr_art_1120c: macaddr@1120c {