208eb11cd55270b7382ed3ec475ddf6fa519ec4b
[openwrt/staging/jow.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 reg = <0x0 0x6>;
60 };
61
62 calibration_art_1000: calibration@1000 {
63 reg = <0x1000 0x440>;
64 };
65
66 calibration_art_5000: calibration@5000 {
67 reg = <0x5000 0x844>;
68 };
69 };
70 };
71 };
72
73 &mdio0 {
74 status = "okay";
75
76 phy1: ethernet-phy@1 {
77 reg = <1>;
78 eee-broken-100tx;
79 eee-broken-1000t;
80 };
81
82 phy2: ethernet-phy@2 {
83 reg = <2>;
84 eee-broken-100tx;
85 eee-broken-1000t;
86 at803x-override-sgmii-link-check;
87 };
88 };
89
90 &eth0 {
91 status = "okay";
92
93 nvmem-cells = <&macaddr_art_0>;
94 nvmem-cell-names = "mac-address";
95
96 phy-handle = <&phy1>;
97 phy-mode = "rgmii-id";
98
99 pll-data = <0x82000000 0x80000101 0x80001313>;
100 };
101
102 &eth1 {
103 status = "okay";
104
105 nvmem-cells = <&macaddr_art_0>;
106 nvmem-cell-names = "mac-address";
107 mac-address-increment = <1>;
108
109 phy-handle = <&phy2>;
110
111 pll-data = <0x03000000 0x00000101 0x00001313>;
112
113 qca955x-sgmii-fixup;
114 };
115
116 &wmac {
117 status = "okay";
118
119 nvmem-cells = <&macaddr_art_0>, <&calibration_art_1000>;
120 nvmem-cell-names = "mac-address", "calibration";
121 mac-address-increment = <2>;
122 };
123
124 &ath10k_1 {
125 status = "okay";
126
127 nvmem-cells = <&macaddr_art_0>, <&calibration_art_5000>;
128 nvmem-cell-names = "mac-address", "calibration";
129 mac-address-increment = <3>;
130 };
131
132 &pcie1 {
133 status = "okay";
134 };