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