ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_araknis_an-700-ap-i-ac.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_senao_loader.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "araknis,an-700-ap-i-ac", "qca,qca9558";
11 model = "Araknis AN-700-AP-I-AC";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power: power {
34 function = LED_FUNCTION_POWER;
35 color = <LED_COLOR_ID_AMBER>;
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 default-state = "off";
38 };
39
40 wifi2g {
41 label = "blue:wifi2g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 wifi5g {
47 label = "blue:wifi5g";
48 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 wps {
53 function = LED_FUNCTION_WPS;
54 color = <LED_COLOR_ID_BLUE>;
55 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
56 };
57 };
58 };
59
60 &partitions {
61 art: partition@ff0000 {
62 label = "art";
63 reg = <0xff0000 0x010000>;
64 read-only;
65
66 nvmem-layout {
67 compatible = "fixed-layout";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 macaddr_art_0: macaddr@0 {
72 compatible = "mac-base";
73 reg = <0x0 0x6>;
74 #nvmem-cell-cells = <1>;
75 };
76
77 cal_art_5000: calibration@5000 {
78 reg = <0x5000 0x844>;
79 };
80 };
81 };
82 };
83
84 &mdio0 {
85 status = "okay";
86
87 phy5: ethernet-phy@5 {
88 reg = <5>;
89 eee-broken-100tx;
90 eee-broken-1000t;
91 };
92 };
93
94 &eth0 {
95 status = "okay";
96
97 nvmem-cells = <&macaddr_art_0 0>;
98 nvmem-cell-names = "mac-address";
99
100 phy-handle = <&phy5>;
101 phy-mode = "rgmii-id";
102
103 pll-data = <0x82000000 0x80000101 0x80001313>;
104 };
105
106 &wmac {
107 status = "okay";
108
109 mtd-cal-data = <&art 0x1000>;
110 nvmem-cells = <&macaddr_art_0 1>;
111 nvmem-cell-names = "mac-address";
112 };
113
114 &pcie0 {
115 status = "okay";
116
117 wifi@0,0 {
118 compatible = "qcom,ath10k";
119 reg = <0x0000 0 0 0 0>;
120 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
121 nvmem-cell-names = "calibration", "mac-address";
122 };
123 };