1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "iodata,wn-ag300dgr", "qca,ar9344";
10 model = "I-O DATA WN-AG300DGR";
13 led-boot = &led_router;
14 led-failsafe = &led_router;
15 led-running = &led_router;
16 led-upgrade = &led_router;
20 compatible = "gpio-leds";
23 label = "green:router";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 label = "green:children";
30 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 label = "amber:notification";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 label = "green:wlan2g";
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
50 label = "green:wlan5g";
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
57 compatible = "gpio-keys";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
68 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
70 linux,input-type = <EV_SW>;
71 debounce-interval = <60>;
76 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
78 linux,input-type = <EV_SW>;
79 debounce-interval = <60>;
84 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
86 debounce-interval = <60>;
91 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
93 debounce-interval = <60>;
98 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
100 debounce-interval = <60>;
106 clock-frequency = <25000000>;
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <25000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
124 reg = <0x000000 0x030000>;
129 label = "u-boot-env";
130 reg = <0x030000 0x010000>;
135 compatible = "denx,uimage";
137 reg = <0x040000 0xf10000>;
141 label = "manufacture";
142 reg = <0xf50000 0x40000>;
148 reg = <0xf90000 0x10000>;
154 reg = <0xfa0000 0x50000>;
160 reg = <0xff0000 0x010000>;
170 phy0: ethernet-phy@0 {
174 qca,ar8327-initvals = <
175 0x04 0x07a00000 /* PORT0 PAD MODE CTRL */
176 0x7c 0x000000fe /* PORT0_STATUS */
184 pll-data = <0x06000000 0x00000101 0x00001616>;
187 phy-handle = <&phy0>;