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 compatible = "iodata,wn-ag300dgr", "qca,ar9344";
11 model = "I-O DATA WN-AG300DGR";
15 led-failsafe = &router;
16 led-running = &router;
17 led-upgrade = &router;
21 compatible = "gpio-leds";
24 label = "wn-ag300dgr:green:router";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 label = "wn-ag300dgr:green:children";
31 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
32 default-state = "off";
36 label = "wn-ag300dgr:green:eco";
37 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
38 default-state = "off";
42 label = "wn-ag300dgr:amber:notification";
43 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 default-state = "off";
48 label = "wn-ag300dgr:green:wlan2g";
49 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
50 default-state = "off";
51 linux,default-trigger = "phy0tpt";
55 label = "wn-ag300dgr:green:wlan5g";
56 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
57 default-state = "off";
58 linux,default-trigger = "phy1tpt";
63 compatible = "gpio-keys-polled";
68 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
75 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
77 linux,input-type = <EV_SW>;
78 debounce-interval = <60>;
83 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
85 linux,input-type = <EV_SW>;
86 debounce-interval = <60>;
91 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 debounce-interval = <60>;
98 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_RESTART>;
100 debounce-interval = <60>;
105 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
106 linux,code = <BTN_1>;
107 debounce-interval = <60>;
113 clock-frequency = <25000000>;
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <25000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x000000 0x030000>;
137 label = "u-boot-env";
138 reg = <0x030000 0x010000>;
143 compatible = "denx,uimage";
145 reg = <0x040000 0xf10000>;
149 label = "manufacture";
150 reg = <0xf50000 0x40000>;
156 reg = <0xf90000 0x10000>;
162 reg = <0xfa0000 0x50000>;
168 reg = <0xff0000 0x010000>;
178 phy0: ethernet-phy@0 {
182 qca,ar8327-initvals = <
183 0x04 0x07a00000 /* PORT0 PAD MODE CTRL */
184 0x7c 0x000000fe /* PORT0_STATUS */
192 pll-data = <0x06000000 0x00000101 0x00001616>;
195 phy-handle = <&phy0>;