4a68f530751d8f6ac343d70e1ee65858c058faf2
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9557_extreme-networks_ws-ap3805i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "extreme-networks,ws-ap3805i", "qca,qca9557";
10 model = "Extreme Networks WS-AP3805i";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_amber;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_amber;
17 label-mac-device = &eth0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power_green: power_green {
24 label = "green:power";
25 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
26 };
27
28 led_power_amber: power_amber {
29 label = "amber:power";
30 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan5 {
34 label = "green:wlan5";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 wlan2 {
40 label = "green:wlan2";
41 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 };
54 };
55
56 watchdog {
57 compatible = "linux,wdt-gpio";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 hw_algo = "toggle";
60 hw_margin_ms = <20000>;
61 always-running;
62 };
63 };
64
65 &wdt {
66 status = "disabled";
67 };
68
69 &wmac {
70 status = "okay";
71
72 qca,no-eeprom;
73 };
74
75 &pcie0 {
76 status = "okay";
77
78 wifi@0,0 {
79 compatible = "qcom,ath10k";
80 reg = <0x0 0 0 0 0>;
81 };
82 };
83
84 &mdio0 {
85 status = "okay";
86
87 phy5: ethernet-phy@5 {
88 reg = <5>;
89 };
90 };
91
92 &eth0 {
93 status = "okay";
94
95 phy-handle = <&phy5>;
96 phy-mode = "rgmii-id";
97
98 pll-data = <0x82000000 0x80000101 0x80001313>;
99
100 gmac-config {
101 device = <&gmac>;
102 rgmii-enabled = <1>;
103 };
104 };
105
106 &spi {
107 status = "okay";
108
109 flash@0 {
110 compatible = "jedec,spi-nor";
111 reg = <0>;
112 spi-max-frequency = <50000000>;
113 m25p,fast-read;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "u-boot-bak";
122 reg = <0x0 0x80000>;
123 read-only;
124 };
125
126 partition@80000 {
127 label = "u-boot";
128 reg = <0x080000 0x80000>;
129 read-only;
130 };
131
132 partition@100000 {
133 label = "cfg1";
134 reg = <0x100000 0x40000>;
135 read-only;
136 };
137
138 partition@140000 {
139 label = "cfg2";
140 reg = <0x140000 0x40000>;
141 read-only;
142 };
143
144 partition@180000 {
145 label = "nvram4";
146 reg = <0x180000 0x40000>;
147 read-only;
148 };
149
150 partition@1c0000 {
151 label = "nvram3";
152 reg = <0x1c0000 0x40000>;
153 read-only;
154 };
155
156 partition@200000 {
157 label = "nvram2";
158 reg = <0x200000 0x40000>;
159 read-only;
160 };
161
162 partition@240000 {
163 label = "nvram1";
164 reg = <0x240000 0x40000>;
165 read-only;
166 };
167
168 partition@280000 {
169 label = "PriImg";
170 reg = <0x280000 0x1000000>;
171 read-only;
172 };
173
174 partition@1280000 {
175 label = "SecImg";
176 reg = <0x1280000 0x1000000>;
177 read-only;
178 };
179
180 partition@2280000 {
181 label = "firmware";
182 compatible = "denx,uimage";
183 reg = <0x2280000 0x1cc0000>;
184 };
185
186 partition@3f40000 {
187 label = "cert";
188 reg = <0x3f40000 0x80000>;
189 read-only;
190 };
191
192 partition@3fc0000 {
193 label = "art";
194 reg = <0x3fc0000 0x40000>;
195 read-only;
196 };
197 };
198 };
199 };