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;
17 compatible = "gpio-leds";
20 label = "green:system";
21 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
28 trigger-sources = <&hub_port1>;
29 linux,default-trigger = "usbport";
34 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&hub_port0>;
36 linux,default-trigger = "usbport";
40 label = "green:wlan2g";
41 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys";
55 label = "Reset button";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 debounce-interval = <60>;
63 compatible = "gpio-export";
66 gpio-export,name = "tp-link:power:usb1";
67 gpio-export,output = <1>;
68 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
72 gpio-export,name = "tp-link:power:usb2";
73 gpio-export,output = <1>;
74 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <25000000>;
107 mtdparts: partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
118 phy0: ethernet-phy@0 {
121 qca,ar8327-initvals = <
122 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
123 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
124 0x50 0xc737c737 /* LED_CTRL0 */
125 0x54 0x00000000 /* LED_CTRL1 */
126 0x58 0x00000000 /* LED_CTRL2 */
127 0x5c 0x0030c300 /* LED_CTRL3 */
128 0x7c 0x0000007e /* PORT0_STATUS */
129 0x94 0x0000007e /* PORT6 STATUS */
137 phy-handle = <&phy0>;
138 pll-data = <0x56000000 0x00000101 0x00001616>;
149 pll-data = <0x03000101 0x00000101 0x00001616>;