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 = "white:system";
21 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&hub_port1>, <&hub_port0>;
39 linux,default-trigger = "usbport";
44 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys";
52 label = "WiFi button";
53 linux,code = <KEY_RFKILL>;
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
64 label = "Reset button";
65 linux,code = <KEY_RESTART>;
66 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
70 reg_usb0_vbus: regulator {
71 compatible = "regulator-fixed";
72 regulator-name = "usb_vbus";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
75 gpio = <&gpio 21 GPIO_ACTIVE_HIGH>;
79 reg_usb1_vbus: regulator {
80 compatible = "regulator-fixed";
81 regulator-name = "usb_vbus";
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
84 gpio = <&gpio 22 GPIO_ACTIVE_HIGH>;
92 phy0: ethernet-phy@0 {
95 qca,ar8327-initvals = <
96 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
97 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
98 0x50 0xc737c737 /* LED_CTRL0 */
99 0x54 0x00000000 /* LED_CTRL1 */
100 0x58 0x00000000 /* LED_CTRL2 */
101 0x5c 0x0030c300 /* LED_CTRL3 */
102 0x7c 0x0000007e /* PORT0_STATUS */
103 0x94 0x0000007e /* PORT6 STATUS */
111 phy-handle = <&phy0>;
112 pll-data = <0x56000000 0x00000101 0x00001616>;
123 pll-data = <0x03000101 0x00000101 0x00001616>;
144 #address-cells = <1>;
147 vbus-supply = <®_usb0_vbus>;
152 #trigger-source-cells = <0>;
161 #address-cells = <1>;
164 vbus-supply = <®_usb1_vbus>;
169 #trigger-source-cells = <0>;