1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca956x.dtsi"
11 bootargs = "console=ttyS0,115200n8";
19 compatible = "gpio-leds";
22 label = "tp-link:green:system";
23 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "heartbeat";
28 label = "tp-link:green:usb";
29 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 trigger-sources = <&hub_port0>;
32 linux,default-trigger = "usbport";
36 label = "tp-link:green:wlan";
37 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
38 default-state = "off";
39 linux,default-trigger = "phy0tpt";
43 label = "tp-link:green:wps";
44 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
45 default-state = "off";
49 label = "tp-link:green:wan";
50 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
51 default-state = "off";
55 label = "tp-link:green:lan1";
56 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
57 default-state = "off";
61 label = "tp-link:green:lan2";
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
63 default-state = "off";
67 label = "tp-link:green:lan3";
68 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
69 default-state = "off";
73 label = "tp-link:green:lan4";
74 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
75 default-state = "off";
80 compatible = "gpio-keys";
85 label = "Reset button";
86 linux,code = <KEY_RESTART>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
88 debounce-interval = <60>;
92 label = "RFKILL button";
93 linux,code = <KEY_RFKILL>;
94 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
95 debounce-interval = <60>;
100 compatible = "gpio-export";
104 gpio-export,name = "tp-link:power:usb";
105 gpio-export,output = <1>;
106 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
128 #trigger-source-cells = <0>;
137 #address-cells = <1>;
139 compatible = "jedec,spi-nor";
141 spi-max-frequency = <25000000>;
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
150 reg = <0x000000 0x020000>;
156 reg = <0x020000 0xf30000>;
159 info: partition@f50000 {
160 label = "product-info";
161 reg = <0xf50000 0x020000>;
167 reg = <0xf70000 0x050000>;
172 label = "partition-table";
173 reg = <0xfc0000 0x010000>;
179 reg = <0xfd0000 0x020000>;
183 art: partition@ff0000 {
185 reg = <0xff0000 0x010000>;
196 phy0: ethernet-phy@0 {
200 qca,ar8327-initvals = <
201 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
202 0x7c 0x0000007e /* PORT0_STATUS */
210 mtd-mac-address = <&info 0x8>;
211 phy-handle = <&phy0>;
216 mtd-cal-data = <&art 0x1000>;
217 mtd-mac-address = <&info 0x8>;