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>
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &wmac;
18 compatible = "gpio-leds";
21 label = "green:system";
22 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "heartbeat";
28 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port0>;
30 linux,default-trigger = "usbport";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
41 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
49 label = "Reset button";
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 debounce-interval = <60>;
56 label = "RFKILL button";
57 linux,code = <KEY_RFKILL>;
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 debounce-interval = <60>;
64 compatible = "gpio-export";
68 gpio-export,name = "tp-link:power:usb";
69 gpio-export,output = <1>;
70 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <33400000>;
92 compatible = "fixed-partitions";
98 reg = <0x000000 0x020000>;
102 compatible = "fixed-layout";
103 #address-cells = <1>;
106 macaddr_uboot_1fc00: macaddr@1fc00 {
113 compatible = "tplink,firmware";
115 reg = <0x020000 0x7d0000>;
118 art: partition@7f0000 {
120 reg = <0x7f0000 0x010000>;
130 phy0: ethernet-phy@0 {
132 qca,ar8327-initvals = <
133 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
134 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
135 0x10 0x81000080 /* POWER_ON_STRAP */
136 0x50 0xcc35cc35 /* LED_CTRL0 */
137 0x54 0xca35ca35 /* LED_CTRL1 */
138 0x58 0xc935c935 /* LED_CTRL2 */
139 0x5c 0x03ffff00 /* LED_CTRL3 */
140 0x7c 0x0000007e /* PORT0_STATUS */
141 0x94 0x0000007e /* PORT6 STATUS */
149 pll-data = <0x56000000 0x00000101 0x00001616>;
151 nvmem-cells = <&macaddr_uboot_1fc00>;
152 nvmem-cell-names = "mac-address";
153 mac-address-increment = <1>;
154 phy-handle = <&phy0>;
160 pll-data = <0x03000101 0x00000101 0x00001616>;
162 nvmem-cells = <&macaddr_uboot_1fc00>;
163 nvmem-cell-names = "mac-address";
173 mtd-cal-data = <&art 0x1000>;
174 nvmem-cells = <&macaddr_uboot_1fc00>;
175 nvmem-cell-names = "mac-address";