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>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 model = "Atheros DB120 reference board";
12 compatible = "atheros,db120", "qca,ar9344";
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
22 compatible = "gpio-leds";
25 label = "green:wlan2g";
26 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
31 label = "green:wlan5g";
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
37 label = "green:system";
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 function = LED_FUNCTION_USB;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&hub_port>;
47 linux,default-trigger = "usbport";
52 compatible = "gpio-leds";
55 label = "green:wlan5g-ath";
56 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy1tpt";
62 compatible = "gpio-keys";
65 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
73 compatible = "mtd-concat";
74 devices = <&fwconcat0 &fwconcat1>;
77 compatible = "fixed-partitions";
84 compatible = "openwrt,uimage", "denx,uimage";
85 openwrt,ih-magic = <IH_MAGIC_OKLI>;
92 clock-frequency = <40000000>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <25000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
110 reg = <0x000000 0x040000>;
115 label = "u-boot-env";
116 reg = <0x040000 0x010000>;
120 fwconcat0: partition@50000 {
122 reg = <0x050000 0x630000>;
127 reg = <0x680000 0x010000>;
130 fwconcat1: partition@690000 {
132 reg = <0x690000 0x150000>;
137 reg = <0x7e0000 0x010000>;
142 reg = <0x7f0000 0x010000>;
146 compatible = "fixed-layout";
147 #address-cells = <1>;
150 macaddr_art_0: macaddr@0 {
154 macaddr_art_6: macaddr@6 {
158 calibration_art_1000: calibration@1000 {
159 reg = <0x1000 0x440>;
162 calibration_art_5000: calibration@5000 {
163 reg = <0x5000 0x440>;
174 pll-data = <0x06000000 0x00000101 0x00001616>;
176 nvmem-cells = <&macaddr_art_0>;
177 nvmem-cell-names = "mac-address";
180 phy-handle = <&phy0>;
186 phy0: ethernet-phy@0 {
189 qca,ar8327-initvals = <
190 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
191 0x10 0xc1000000 /* POWER_ON_STRAP */
192 0x7c 0x0000007e /* PORT0_STATUS */
193 0x94 0x0000007e /* PORT6_STATUS */
199 pmx_led_wan_lan: pinmux_led_wan_lan {
200 pinctrl-single,bits = <0x10 0x2c2d0000 0xffff0000>,
201 <0x14 0x292a2b 0xffffff>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&pmx_led_wan_lan>;
209 /delete-property/qca,phy4-mii-enable;
215 nvmem-cells = <&macaddr_art_6>;
216 nvmem-cell-names = "mac-address";
220 switch-phy-swap = <0>;
221 switch-only-mode = <1>;
229 compatible = "pci168c,0030";
230 reg = <0x0000 0 0 0 0>;
231 nvmem-cells = <&calibration_art_5000>;
232 nvmem-cell-names = "calibration";
233 ieee80211-freq-limit = <4900000 5990000>;
242 nvmem-cells = <&calibration_art_1000>;
243 nvmem-cell-names = "calibration";