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;
21 compatible = "gpio-leds";
24 label = "tp-link:white:system";
25 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 label = "tp-link:white:wlan";
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 label = "tp-link:white:lan";
36 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
40 label = "tp-link:white:usb";
41 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
42 trigger-sources = <&hub_port1>, <&hub_port0>;
43 linux,default-trigger = "usbport";
47 label = "tp-link:white:qss";
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
53 compatible = "gpio-keys";
56 label = "WiFi button";
57 linux,code = <KEY_RFKILL>;
58 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
68 label = "Reset button";
69 linux,code = <KEY_RESTART>;
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
74 reg_usb0_vbus: regulator {
75 compatible = "regulator-fixed";
76 regulator-name = "usb_vbus";
77 regulator-min-microvolt = <5000000>;
78 regulator-max-microvolt = <5000000>;
79 gpio = <&gpio 21 GPIO_ACTIVE_HIGH>;
83 reg_usb1_vbus: regulator {
84 compatible = "regulator-fixed";
85 regulator-name = "usb_vbus";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 gpio = <&gpio 22 GPIO_ACTIVE_HIGH>;
96 phy0: ethernet-phy@0 {
99 qca,ar8327-initvals = <
100 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
101 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
102 0x50 0xc737c737 /* LED_CTRL0 */
103 0x54 0x00000000 /* LED_CTRL1 */
104 0x58 0x00000000 /* LED_CTRL2 */
105 0x5c 0x0030c300 /* LED_CTRL3 */
106 0x7c 0x0000007e /* PORT0_STATUS */
107 0x94 0x0000007e /* PORT6 STATUS */
115 phy-handle = <&phy0>;
116 pll-data = <0x56000000 0x00000101 0x00001616>;
127 pll-data = <0x03000101 0x00000101 0x00001616>;
152 #address-cells = <1>;
155 vbus-supply = <®_usb0_vbus>;
160 #trigger-source-cells = <0>;
169 #address-cells = <1>;
172 vbus-supply = <®_usb1_vbus>;
177 #trigger-source-cells = <0>;