ath79: qca: convert to nvmem-layout
[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 nvmem-layout {
48 compatible = "fixed-layout";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 macaddr_info_8: macaddr@8 {
53 reg = <0x8 0x6>;
54 };
55
56 calibration_ath10k: calibration@5000 {
57 reg = <0x5000 0x844>;
58 };
59 };
60 };
61
62 &eth0 {
63 phy-handle = <&phy4>;
64 phy-mode = "sgmii";
65 };
66
67 &mdio0 {
68 phy4: ethernet-phy@4 {
69 reg = <4>;
70 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 &pcie {
75 wifi@0,0 {
76 compatible = "qcom,ath10k";
77 reg = <0 0 0 0 0>;
78
79 mac-address-increment = <1>;
80
81 nvmem-cells = <&macaddr_info_8>, <&calibration_ath10k>;
82 nvmem-cell-names = "mac-address", "calibration";
83 };
84 };