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