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";
14 led-boot = &led_router;
15 led-failsafe = &led_router;
16 led-running = &led_router;
17 led-upgrade = &led_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>;
35 label = "wn-ag300dgr:green:eco";
36 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
40 label = "wn-ag300dgr:amber:notification";
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
45 label = "wn-ag300dgr:green:wlan2g";
46 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
51 label = "wn-ag300dgr:green:wlan5g";
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
58 compatible = "gpio-keys";
62 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
69 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
71 linux,input-type = <EV_SW>;
72 debounce-interval = <60>;
77 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
79 linux,input-type = <EV_SW>;
80 debounce-interval = <60>;
85 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
87 debounce-interval = <60>;
92 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_RESTART>;
94 debounce-interval = <60>;
99 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
100 linux,code = <BTN_1>;
101 debounce-interval = <60>;
107 clock-frequency = <25000000>;
116 compatible = "jedec,spi-nor";
118 spi-max-frequency = <25000000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
127 reg = <0x000000 0x030000>;
132 label = "u-boot-env";
133 reg = <0x030000 0x010000>;
138 compatible = "denx,uimage";
140 reg = <0x040000 0xf10000>;
144 label = "manufacture";
145 reg = <0xf50000 0x40000>;
151 reg = <0xf90000 0x10000>;
157 reg = <0xfa0000 0x50000>;
163 reg = <0xff0000 0x010000>;
173 phy0: ethernet-phy@0 {
177 qca,ar8327-initvals = <
178 0x04 0x07a00000 /* PORT0 PAD MODE CTRL */
179 0x7c 0x000000fe /* PORT0_STATUS */
187 pll-data = <0x06000000 0x00000101 0x00001616>;
190 phy-handle = <&phy0>;