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 bootargs = "console=ttyS0,115200n8";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = ð1;
22 compatible = "gpio-leds";
25 label = "tp-link:green:system";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 label = "tp-link:green:usb1";
32 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&hub_port1>;
34 linux,default-trigger = "usbport";
38 label = "tp-link:green:usb2";
39 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port0>;
41 linux,default-trigger = "usbport";
45 label = "tp-link:green:wlan2g";
46 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
51 label = "tp-link:green:qss";
52 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
60 label = "Reset button";
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
68 compatible = "gpio-export";
71 gpio-export,name = "tp-link:power:usb1";
72 gpio-export,output = <1>;
73 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
77 gpio-export,name = "tp-link:power:usb2";
78 gpio-export,output = <1>;
79 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
101 #address-cells = <1>;
107 #trigger-source-cells = <0>;
116 #address-cells = <1>;
122 #trigger-source-cells = <0>;
132 compatible = "jedec,spi-nor";
134 spi-max-frequency = <25000000>;
136 mtdparts: partitions {
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
147 phy0: ethernet-phy@0 {
150 qca,ar8327-initvals = <
151 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
152 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
153 0x50 0xc737c737 /* LED_CTRL0 */
154 0x54 0x00000000 /* LED_CTRL1 */
155 0x58 0x00000000 /* LED_CTRL2 */
156 0x5c 0x0030c300 /* LED_CTRL3 */
157 0x7c 0x0000007e /* PORT0_STATUS */
158 0x94 0x0000007e /* PORT6 STATUS */
166 mtd-mac-address = <&uboot 0x1fc00>;
167 mtd-mac-address-increment = <1>;
168 phy-handle = <&phy0>;
169 pll-data = <0x56000000 0x00000101 0x00001616>;
180 mtd-mac-address = <&uboot 0x1fc00>;
181 pll-data = <0x03000101 0x00000101 0x00001616>;
192 mtd-cal-data = <&art 0x1000>;
193 mtd-mac-address = <&uboot 0x1fc00>;