1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
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>
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 label-mac-device = ð1;
20 compatible = "gpio-leds";
24 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
25 trigger-sources = <&hub_port0>;
26 linux,default-trigger = "usbport";
30 function = LED_FUNCTION_STATUS;
31 color = <LED_COLOR_ID_AMBER>;
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
36 function = LED_FUNCTION_WPS;
37 color = <LED_COLOR_ID_AMBER>;
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 function = LED_FUNCTION_WPS;
43 color = <LED_COLOR_ID_BLUE>;
44 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
48 label = "blue:system";
49 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
54 compatible = "gpio-export";
58 gpio-export,name = "usb2:power";
59 gpio-export,output = <1>;
60 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
65 compatible = "gpio-keys";
69 linux,code = <KEY_WPS_BUTTON>;
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 debounce-interval = <60>;
75 label = "Reset button";
76 linux,code = <KEY_RESTART>;
77 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
78 debounce-interval = <60>;
83 compatible = "mtd-concat";
85 devices = <&fwconcat0 &fwconcat1>;
88 compatible = "fixed-partitions";
93 compatible = "openwrt,uimage", "denx,uimage";
94 openwrt,ih-magic = <IH_MAGIC_OKLI>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <80000000>;
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
130 reg = <0x000000 0x040000>;
135 label = "u-boot-env";
136 reg = <0x040000 0x010000>;
139 fwconcat0: partition@50000 {
141 reg = <0x050000 0xe20000>;
146 reg = <0xe70000 0x10000>;
150 fwconcat1: partition@e80000 {
152 reg = <0xe80000 0x170000>;
155 art: partition@ff0000 {
157 reg = <0xff0000 0x010000>;
160 compatible = "fixed-layout";
161 #address-cells = <1>;
164 macaddr_art_0: macaddr@0 {
165 compatible = "mac-base";
167 #nvmem-cell-cells = <1>;
178 phy0: ethernet-phy@0 {
181 qca,ar8327-initvals = <
182 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
183 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
184 0x50 0xc737c737 /* LED_CTRL0 */
185 0x54 0x00000000 /* LED_CTRL1 */
186 0x58 0x00000000 /* LED_CTRL2 */
187 0x5c 0x0030c300 /* LED_CTRL3 */
188 0x7c 0x0000007e /* PORT0_STATUS */
189 0x94 0x0000007e /* PORT6 STATUS */
197 nvmem-cells = <&macaddr_art_0 0>;
198 nvmem-cell-names = "mac-address";
199 phy-handle = <&phy0>;
200 pll-data = <0xa6000000 0x00000101 0x00001616>;
211 nvmem-cells = <&macaddr_art_0 (-1)>;
212 nvmem-cell-names = "mac-address";
213 pll-data = <0x03000101 0x00000101 0x00001616>;
225 compatible = "qcom,ath10k";
233 mtd-cal-data = <&art 0x1000>;