ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_eap225-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4 #include "qca9563_tplink_eap2x5-1port.dtsi"
5
6 / {
7 compatible = "tplink,eap225-v1", "qca,qca9563";
8 model = "TP-Link EAP225 v1";
9
10 aliases {
11 led-boot = &led_status_green;
12 led-failsafe = &led_status_amber;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_amber;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_status_green: led-0 {
21 label = "green:status";
22 color = <LED_COLOR_ID_GREEN>;
23 function = LED_FUNCTION_STATUS;
24 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
25 default-state = "on";
26 };
27
28 led_status_amber: led-1 {
29 label = "amber:status";
30 color = <LED_COLOR_ID_AMBER>;
31 function = LED_FUNCTION_STATUS;
32 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
33 };
34
35 led_status_red: led-2 {
36 label = "red:status";
37 color = <LED_COLOR_ID_RED>;
38 function = LED_FUNCTION_STATUS;
39 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
40 };
41 };
42
43 gpio-export {
44 compatible = "gpio-export";
45 led_enable {
46 gpio-export,name = "leds:enable";
47 gpio-export,output = <1>;
48 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
49 };
50 };
51 };
52
53 &art {
54 calibration_ath10k: calibration@5000 {
55 reg = <0x5000 0x844>;
56 };
57 };
58
59 &eth0 {
60 phy-handle = <&phy4>;
61 phy-mode = "sgmii";
62 };
63
64 &mdio0 {
65 phy4: ethernet-phy@4 {
66 reg = <4>;
67 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
68 };
69 };
70
71 &pcie {
72 wifi@0,0 {
73 compatible = "qcom,ath10k";
74 reg = <0 0 0 0 0>;
75
76 mac-address-increment = <1>;
77
78 nvmem-cells = <&macaddr_info_8>, <&calibration_ath10k>;
79 nvmem-cell-names = "mac-address", "calibration";
80 };
81 };