1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
6 #include "qca955x.dtsi"
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = ð1;
18 compatible = "gpio-leds";
21 label = "tp-link:green:system";
22 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 label = "tp-link:green:usb1";
28 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port1>;
30 linux,default-trigger = "usbport";
34 label = "tp-link:green:usb2";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 trigger-sources = <&hub_port0>;
37 linux,default-trigger = "usbport";
41 label = "tp-link:green:wlan2g";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
47 label = "tp-link:green:qss";
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
53 compatible = "gpio-keys";
56 label = "Reset button";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 debounce-interval = <60>;
64 compatible = "gpio-export";
67 gpio-export,name = "tp-link:power:usb1";
68 gpio-export,output = <1>;
69 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
73 gpio-export,name = "tp-link:power:usb2";
74 gpio-export,output = <1>;
75 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
99 #trigger-source-cells = <0>;
108 #address-cells = <1>;
114 #trigger-source-cells = <0>;
124 compatible = "jedec,spi-nor";
126 spi-max-frequency = <25000000>;
128 mtdparts: partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
139 phy0: ethernet-phy@0 {
142 qca,ar8327-initvals = <
143 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
144 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
145 0x50 0xc737c737 /* LED_CTRL0 */
146 0x54 0x00000000 /* LED_CTRL1 */
147 0x58 0x00000000 /* LED_CTRL2 */
148 0x5c 0x0030c300 /* LED_CTRL3 */
149 0x7c 0x0000007e /* PORT0_STATUS */
150 0x94 0x0000007e /* PORT6 STATUS */
158 mtd-mac-address = <&uboot 0x1fc00>;
159 mtd-mac-address-increment = <1>;
160 phy-handle = <&phy0>;
161 pll-data = <0x56000000 0x00000101 0x00001616>;
172 mtd-mac-address = <&uboot 0x1fc00>;
173 pll-data = <0x03000101 0x00000101 0x00001616>;
184 mtd-cal-data = <&art 0x1000>;
185 mtd-mac-address = <&uboot 0x1fc00>;