ath79: add factory.bin for ALLNET ALL-WAP02860AC
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_allnet_all-wap02860ac.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 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 model = "ALLNET ALL-WAP02860AC";
11 compatible = "allnet,all-wap02860ac", "qca,qca9558";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "amber:power";
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan2g {
41 label = "blue:wlan2g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 wlan5g {
47 label = "green:wlan5g";
48 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 wps {
53 label = "blue:wps";
54 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 virtual_flash {
59 compatible = "mtd-concat";
60
61 devices = <&fwconcat0 &fwconcat1>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 compatible = "openwrt,uimage", "denx,uimage";
70 openwrt,ih-magic = <0x73714f4b>;
71 label = "firmware";
72 reg = <0x0 0x0>;
73 };
74 };
75 };
76 };
77
78 &eth0 {
79 status = "okay";
80
81 pll-data = <0x8e000000 0x80000101 0x80001313>;
82 phy-handle = <&phy5>;
83 phy-mode = "rgmii-rxid";
84
85 mtd-mac-address = <&art 0x0>;
86 };
87
88 &mdio0 {
89 status = "okay";
90
91 phy5: ethernet-phy@5 {
92 reg = <5>;
93 eee-broken-100tx;
94 eee-broken-1000t;
95 };
96 };
97
98 &pcie0 {
99 status = "okay";
100
101 wifi@0,0 {
102 compatible = "qcom,ath10k";
103 reg = <0 0 0 0 0>;
104 };
105 };
106
107 &pll {
108 clocks = <&extosc>;
109 };
110
111 &spi {
112 status = "okay";
113
114 flash@0 {
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <25000000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 partition@0 {
125 label = "u-boot";
126 reg = <0x000000 0x040000>;
127 read-only;
128 };
129
130 partition@40000 {
131 label = "u-boot-env";
132 reg = <0x040000 0x010000>;
133 };
134
135 partition@50000 {
136 label = "custom";
137 reg = <0x050000 0x050000>;
138 read-only;
139 };
140
141 partition@a0000 {
142 label = "loader";
143 reg = <0x0a0000 0x010000>;
144 };
145
146 fwconcat1: partition@b0000 {
147 label = "fwconcat1";
148 reg = <0x0b0000 0x170000>;
149 };
150
151 fwconcat0: partition@220000 {
152 label = "fwconcat0";
153 reg = <0x220000 0xb50000>;
154 };
155
156 partition@d70000 {
157 label = "failsafe";
158 reg = <0xd70000 0x280000>;
159 read-only;
160 };
161
162 art: partition@ff0000 {
163 label = "art";
164 reg = <0xff0000 0x010000>;
165 read-only;
166 };
167 };
168 };
169 };
170
171 &wmac {
172 status = "okay";
173
174 mtd-cal-data = <&art 0x1000>;
175 mtd-mac-address = <&art 0x0>;
176 mtd-mac-address-increment = <1>;
177 qca-no-eeprom;
178 };