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