ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_engenius_ews660ap.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
8 / {
9 compatible = "engenius,ews660ap", "qca,qca9558";
10 model = "EnGenius EWS660AP";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_wifi5g;
15 led-failsafe = &led_wifi5g;
16 led-upgrade = &led_wifi5g;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 wifi2g {
34 label = "green:wifi2g";
35 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
37 };
38
39 led_wifi5g: wifi5g {
40 label = "green:wifi5g";
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44 };
45 };
46
47 &partitions {
48 partition@ff0000 {
49 label = "art";
50 reg = <0xff0000 0x010000>;
51 read-only;
52
53 nvmem-layout {
54 compatible = "fixed-layout";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 macaddr_art_0: macaddr@0 {
59 compatible = "mac-base";
60 reg = <0x0 0x6>;
61 #nvmem-cell-cells = <1>;
62 };
63
64 calibration_art_1000: calibration@1000 {
65 reg = <0x1000 0x440>;
66 };
67
68 calibration_art_5000: calibration@5000 {
69 reg = <0x5000 0x844>;
70 };
71 };
72 };
73 };
74
75 &mdio0 {
76 status = "okay";
77
78 phy1: ethernet-phy@1 {
79 reg = <1>;
80 eee-broken-100tx;
81 eee-broken-1000t;
82 };
83
84 phy2: ethernet-phy@2 {
85 reg = <2>;
86 eee-broken-100tx;
87 eee-broken-1000t;
88 at803x-override-sgmii-link-check;
89 };
90 };
91
92 &eth0 {
93 status = "okay";
94
95 nvmem-cells = <&macaddr_art_0 0>;
96 nvmem-cell-names = "mac-address";
97
98 phy-handle = <&phy1>;
99 phy-mode = "rgmii-id";
100
101 pll-data = <0x82000000 0x80000101 0x80001313>;
102 };
103
104 &eth1 {
105 status = "okay";
106
107 nvmem-cells = <&macaddr_art_0 1>;
108 nvmem-cell-names = "mac-address";
109
110 phy-handle = <&phy2>;
111
112 pll-data = <0x03000000 0x00000101 0x00001313>;
113
114 qca955x-sgmii-fixup;
115 };
116
117 &wmac {
118 status = "okay";
119
120 nvmem-cells = <&macaddr_art_0 2>, <&calibration_art_1000>;
121 nvmem-cell-names = "mac-address", "calibration";
122 };
123
124 &ath10k_1 {
125 status = "okay";
126
127 nvmem-cells = <&macaddr_art_0 3>, <&calibration_art_5000>;
128 nvmem-cell-names = "mac-address", "calibration";
129 };
130
131 &pcie1 {
132 status = "okay";
133 };