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>
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 label-mac-device = &wmac;
19 compatible = "gpio-leds";
22 label = "green:system";
23 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "heartbeat";
28 function = LED_FUNCTION_USB;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&hub_port0>;
32 linux,default-trigger = "usbport";
36 function = LED_FUNCTION_WLAN;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
43 function = LED_FUNCTION_WPS;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
50 compatible = "gpio-keys";
53 label = "Reset button";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
60 label = "RFKILL button";
61 linux,code = <KEY_RFKILL>;
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
68 compatible = "gpio-export";
72 gpio-export,name = "tp-link:power:usb";
73 gpio-export,output = <1>;
74 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <33400000>;
96 compatible = "fixed-partitions";
102 reg = <0x000000 0x020000>;
106 compatible = "fixed-layout";
107 #address-cells = <1>;
110 macaddr_uboot_1fc00: macaddr@1fc00 {
111 compatible = "mac-base";
113 #nvmem-cell-cells = <1>;
119 compatible = "tplink,firmware";
121 reg = <0x020000 0x7d0000>;
124 art: partition@7f0000 {
126 reg = <0x7f0000 0x010000>;
136 phy0: ethernet-phy@0 {
138 qca,ar8327-initvals = <
139 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
140 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
141 0x10 0x81000080 /* POWER_ON_STRAP */
142 0x50 0xcc35cc35 /* LED_CTRL0 */
143 0x54 0xca35ca35 /* LED_CTRL1 */
144 0x58 0xc935c935 /* LED_CTRL2 */
145 0x5c 0x03ffff00 /* LED_CTRL3 */
146 0x7c 0x0000007e /* PORT0_STATUS */
147 0x94 0x0000007e /* PORT6 STATUS */
155 pll-data = <0x56000000 0x00000101 0x00001616>;
157 nvmem-cells = <&macaddr_uboot_1fc00 1>;
158 nvmem-cell-names = "mac-address";
159 phy-handle = <&phy0>;
165 pll-data = <0x03000101 0x00000101 0x00001616>;
167 nvmem-cells = <&macaddr_uboot_1fc00 0>;
168 nvmem-cell-names = "mac-address";
178 mtd-cal-data = <&art 0x1000>;
179 nvmem-cells = <&macaddr_uboot_1fc00 0>;
180 nvmem-cell-names = "mac-address";