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>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
16 label-mac-device = ð0;
20 compatible = "gpio-leds";
23 function = LED_FUNCTION_POWER;
24 color = <LED_COLOR_ID_BLUE>;
25 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 label = "blue:wlan2g";
30 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy1tpt";
35 label = "blue:wlan5g";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
41 label = "green:lan_link";
42 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
46 label = "green:lan_data";
47 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
51 function = LED_FUNCTION_WPS;
52 color = <LED_COLOR_ID_BLUE>;
53 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
57 function = LED_FUNCTION_WPS;
58 color = <LED_COLOR_ID_RED>;
59 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
64 compatible = "gpio-keys";
67 label = "Reset button";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
74 label = "LED control button";
76 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
82 linux,code = <KEY_WPS_BUTTON>;
83 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
89 compatible = "virtual,mdio-gpio";
91 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
92 <&gpio 1 GPIO_ACTIVE_HIGH>; /* MDIO */
96 phy4: ethernet-phy@4 {
98 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
107 compatible = "qcom,ath10k";
108 reg = <0x0000 0 0 0 0>;
109 nvmem-cells = <&cal_art_5000>, <&macaddr_info_8 (-2)>;
110 nvmem-cell-names = "calibration", "mac-address";
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <25000000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
129 reg = <0x000000 0x020000>;
134 compatible = "tplink,firmware";
136 reg = <0x020000 0x5e0000>;
140 label = "partition-table";
141 reg = <0x600000 0x010000>;
145 info: partition@610000 {
147 reg = <0x610000 0x020000>;
151 compatible = "fixed-layout";
152 #address-cells = <1>;
155 macaddr_info_8: macaddr@8 {
156 compatible = "mac-base";
158 #nvmem-cell-cells = <1>;
165 reg = <0x630000 0x1c0000>;
169 art: partition@7f0000 {
171 reg = <0x7f0000 0x010000>;
175 compatible = "fixed-layout";
176 #address-cells = <1>;
179 cal_art_5000: calibration@5000 {
180 reg = <0x5000 0x844>;
191 phy-handle = <&phy4>;
192 pll-data = <0xa6000000 0x00000101 0x00001616>;
194 nvmem-cells = <&macaddr_info_8 0>;
195 nvmem-cell-names = "mac-address";
201 mtd-cal-data = <&art 0x1000>;
202 nvmem-cells = <&macaddr_info_8 (-1)>;
203 nvmem-cell-names = "mac-address";