ath79: add support for ALLNET ALL-WAP02860AC
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_allnet_all-wap02860ac.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca955x.dtsi"
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 = "all-wap02860ac:amber:power";
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan2g {
41 label = "all-wap02860ac:blue:wlan2g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 wlan5g {
47 label = "all-wap02860ac:green:wlan5g";
48 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
50 };
51
52 wps {
53 label = "all-wap02860ac:blue:wps";
54 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &eth0 {
60 status = "okay";
61
62 pll-data = <0x8e000000 0x80000101 0x80001313>;
63 phy-handle = <&phy5>;
64 phy-mode = "rgmii-rxid";
65
66 mtd-mac-address = <&art 0x0>;
67 };
68
69 &mdio0 {
70 status = "okay";
71
72 phy5: ethernet-phy@5 {
73 reg = <5>;
74 eee-broken-100tx;
75 eee-broken-1000t;
76 };
77 };
78
79 &pcie0 {
80 status = "okay";
81
82 wifi@0,0 {
83 compatible = "qcom,ath10k";
84 reg = <0 0 0 0 0>;
85 };
86 };
87
88 &pll {
89 clocks = <&extosc>;
90 };
91
92 &spi {
93 status = "okay";
94
95 num-cs = <1>;
96
97 flash@0 {
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <25000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "u-boot";
109 reg = <0x000000 0x040000>;
110 read-only;
111 };
112
113 partition@40000 {
114 label = "u-boot-env";
115 reg = <0x040000 0x010000>;
116 };
117
118 partition@50000 {
119 label = "custom";
120 reg = <0x050000 0x050000>;
121 read-only;
122 };
123
124 partition@a0000 {
125 compatible = "denx,uimage";
126 label = "firmware";
127 reg = <0x0a0000 0xcd0000>;
128 };
129
130 partition@d70000 {
131 label = "failsafe";
132 reg = <0xd70000 0x280000>;
133 read-only;
134 };
135
136 art: partition@ff0000 {
137 label = "art";
138 reg = <0xff0000 0x010000>;
139 read-only;
140 };
141 };
142 };
143 };
144
145 &uart {
146 status = "okay";
147 };
148
149 &wmac {
150 status = "okay";
151
152 mtd-cal-data = <&art 0x1000>;
153 mtd-mac-address = <&art 0x0>;
154 mtd-mac-address-increment = <1>;
155 qca-no-eeprom;
156 };