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