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_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
15 label-mac-device = ð0;
19 compatible = "gpio-leds";
23 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
27 label = "blue:wlan2g";
28 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy1tpt";
33 label = "blue:wlan5g";
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
39 label = "green:lan_link";
40 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
44 label = "green:lan_data";
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
55 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
60 compatible = "gpio-keys";
63 label = "Reset button";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
70 label = "LED control button";
72 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
78 linux,code = <KEY_WPS_BUTTON>;
79 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
85 compatible = "virtual,mdio-gpio";
87 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
88 <&gpio 1 GPIO_ACTIVE_HIGH>; /* MDIO */
92 phy4: ethernet-phy@4 {
94 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
107 compatible = "jedec,spi-nor";
109 spi-max-frequency = <25000000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x000000 0x020000>;
123 compatible = "tplink,firmware";
125 reg = <0x020000 0x5e0000>;
129 label = "partition-table";
130 reg = <0x600000 0x010000>;
134 info: partition@610000 {
136 reg = <0x610000 0x020000>;
140 compatible = "fixed-layout";
141 #address-cells = <1>;
144 macaddr_info_8: macaddr@8 {
152 reg = <0x630000 0x1c0000>;
156 art: partition@7f0000 {
158 reg = <0x7f0000 0x010000>;
168 phy-handle = <&phy4>;
169 pll-data = <0xa6000000 0x00000101 0x00001616>;
171 nvmem-cells = <&macaddr_info_8>;
172 nvmem-cell-names = "mac-address";
178 mtd-cal-data = <&art 0x1000>;
179 nvmem-cells = <&macaddr_info_8>;
180 nvmem-cell-names = "mac-address";
181 mac-address-increment = <(-1)>;