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/mtd/partitions/uimage.h>
10 model = "Atheros DB120 reference board";
11 compatible = "atheros,db120", "qca,ar9344";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 compatible = "gpio-leds";
24 label = "green:wlan2g";
25 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy0tpt";
30 label = "green:wlan5g";
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
36 label = "green:system";
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 trigger-sources = <&hub_port>;
45 linux,default-trigger = "usbport";
50 compatible = "gpio-leds";
53 label = "green:wlan5g-ath";
54 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy1tpt";
60 compatible = "gpio-keys";
63 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
71 compatible = "mtd-concat";
72 devices = <&fwconcat0 &fwconcat1>;
75 compatible = "fixed-partitions";
82 compatible = "openwrt,uimage", "denx,uimage";
83 openwrt,ih-magic = <IH_MAGIC_OKLI>;
90 clock-frequency = <40000000>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <25000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
108 reg = <0x000000 0x040000>;
113 label = "u-boot-env";
114 reg = <0x040000 0x010000>;
118 fwconcat0: partition@50000 {
120 reg = <0x050000 0x630000>;
125 reg = <0x680000 0x010000>;
128 fwconcat1: partition@690000 {
130 reg = <0x690000 0x150000>;
135 reg = <0x7e0000 0x010000>;
140 reg = <0x7f0000 0x010000>;
143 compatible = "nvmem-cells";
144 #address-cells = <1>;
147 macaddr_art_0: macaddr@0 {
151 macaddr_art_6: macaddr@6 {
155 calibration_art_1000: calibration@1000 {
156 reg = <0x1000 0x440>;
159 calibration_art_5000: calibration@5000 {
160 reg = <0x5000 0x440>;
170 pll-data = <0x06000000 0x00000101 0x00001616>;
172 nvmem-cells = <&macaddr_art_0>;
173 nvmem-cell-names = "mac-address";
176 phy-handle = <&phy0>;
182 phy0: ethernet-phy@0 {
185 qca,ar8327-initvals = <
186 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
187 0x10 0xc1000000 /* POWER_ON_STRAP */
188 0x7c 0x0000007e /* PORT0_STATUS */
189 0x94 0x0000007e /* PORT6_STATUS */
195 pmx_led_wan_lan: pinmux_led_wan_lan {
196 pinctrl-single,bits = <0x10 0x2c2d0000 0xffff0000>,
197 <0x14 0x292a2b 0xffffff>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&pmx_led_wan_lan>;
205 /delete-property/qca,phy4-mii-enable;
211 nvmem-cells = <&macaddr_art_6>;
212 nvmem-cell-names = "mac-address";
216 switch-phy-swap = <0>;
217 switch-only-mode = <1>;
225 compatible = "pci168c,0030";
226 reg = <0x0000 0 0 0 0>;
227 nvmem-cells = <&calibration_art_5000>;
228 nvmem-cell-names = "calibration";
229 ieee80211-freq-limit = <4900000 5990000>;
238 nvmem-cells = <&calibration_art_1000>;
239 nvmem-cell-names = "calibration";