1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,eap245-v3", "qca,qca9563";
11 model = "TP-Link EAP245 v3 / EAP265 HD v1";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_amber;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_amber;
18 label-mac-device = ð0;
22 compatible = "gpio-leds";
24 led_status_green: status_green {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
31 led_status_amber: status_amber {
32 function = LED_FUNCTION_STATUS;
33 color = <LED_COLOR_ID_AMBER>;
34 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
39 compatible = "gpio-keys";
42 label = "Reset button";
43 linux,code = <KEY_RESTART>;
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
54 compatible = "qcom,ath10k";
57 nvmem-cells = <&macaddr_info_8 1>, <&calibration_ath10k>;
58 nvmem-cell-names = "mac-address", "pre-calibration";
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <25000000>;
71 compatible = "fixed-partitions";
76 label = "factory-boot";
77 reg = <0x000000 0x040000>;
83 reg = <0x040000 0x040000>;
88 label = "partition-table";
89 reg = <0x080000 0x010000>;
93 info: partition@90000 {
95 reg = <0x090000 0x010000>;
99 compatible = "fixed-layout";
100 #address-cells = <1>;
103 macaddr_info_8: macaddr@8 {
104 compatible = "mac-base";
106 #nvmem-cell-cells = <1>;
113 reg = <0x0a0000 0x010000>;
117 compatible = "fixed-layout";
118 #address-cells = <1>;
121 calibration_ath9k: calibration@1000 {
122 reg = <0x1000 0x440>;
125 calibration_ath10k: calibration@5000 {
126 reg = <0x5000 0x2f20>;
132 label = "extra-para";
133 reg = <0x0b0000 0x010000>;
138 compatible = "openwrt,elf";
140 reg = <0x0c0000 0xe40000>;
145 reg = <0xf00000 0x030000>;
151 reg = <0xf30000 0x080000>;
157 reg = <0xfb0000 0x040000>;
167 phy0: ethernet-phy@0 {
170 qca,ar8327-initvals = <
171 0x04 0x00080080 /* PAD0 */
172 0x7c 0x0000007e /* PORT0_STATUS */
173 0xe0 0xc74164de /* SGMII_CTRL */
181 phy-handle = <&phy0>;
184 nvmem-cells = <&macaddr_info_8 0>;
185 nvmem-cell-names = "mac-address";
191 nvmem-cells = <&macaddr_info_8 0>, <&calibration_ath9k>;
192 nvmem-cell-names = "mac-address", "calibration";