ath79: remove model name from LED labels
[openwrt/staging/ynezz.git] / target / linux / ath79 / dts / qca9558_sitecom_wlr-8100.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 = "Sitecom WLR-8100 (X8 AC1750)";
10 compatible = "sitecom,wlr-8100", "qca,qca9558";
11
12 aliases {
13 led-boot = &led_status_amber;
14 led-failsafe = &led_status_amber;
15 led-running = &led_status_amber;
16 led-upgrade = &led_status_amber;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 wifi2g_rfkill {
23 label = "2.4GHz - RFKILL";
24 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RFKILL>;
26 };
27
28 wifi5g_restart {
29 label = "5GHz - RESTART";
30 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 led_status_amber: status_amber {
39 label = "amber:status";
40 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
41 default-state = "on";
42 };
43
44 ops {
45 label = "white:ops";
46 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
47 };
48
49 wifi2g {
50 label = "blue:wifi2g";
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54
55 wifi5g {
56 label = "blue:wifi5g";
57 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
59 };
60 };
61 };
62
63 &spi {
64 status = "okay";
65
66 num-cs = <1>;
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <25000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 uboot: partition@0 {
79 label = "u-boot";
80 reg = <0x000000 0x030000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x030000 0x010000>;
87 read-only;
88 };
89
90 partition@40000 {
91 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x040000 0xf10000>;
94 };
95
96 partition@f50000 {
97 label = "manufacture";
98 reg = <0xf50000 0x040000>;
99 read-only;
100 };
101
102 partition@f90000 {
103 label = "backup";
104 reg = <0xf90000 0x010000>;
105 read-only;
106 };
107
108 partition@fa0000 {
109 label = "storage";
110 reg = <0xfa0000 0x050000>;
111 read-only;
112 };
113
114 art: partition@ff0000 {
115 label = "art";
116 reg = <0xff0000 0x010000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &pcie0 {
124 status = "okay";
125 };
126
127 &pcie1 {
128 status = "okay";
129
130 wifi@0,0 {
131 compatible = "qcom,ath10k";
132 reg = <0 0 0 0 0>;
133 };
134 };
135
136 &uart {
137 status = "okay";
138 };
139
140 &usb_phy0 {
141 status = "okay";
142 };
143
144 &usb0 {
145 #address-cells = <1>;
146 #size-cells = <0>;
147 status = "okay";
148 };
149
150 &mdio0 {
151 status = "okay";
152
153 phy0: ethernet-phy@0 {
154 reg = <0>;
155
156 qca,ar8327-initvals = <
157 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
158 0x50 0xc437c437 /* LED Control Register 0 */
159 0x54 0xc337c337 /* LED Control Register 1 */
160 0x58 0x00000000 /* LED Control Register 2 */
161 0x5c 0x03ffff00 /* LED Control Register 3 */
162 0x7c 0x0000007e /* PORT0_STATUS */
163 >;
164 };
165 };
166
167 &eth0 {
168 status = "okay";
169 phy-handle = <&phy0>;
170 pll-data = <0xa6000000 0x00000101 0x00001616>;
171
172 gmac-config {
173 device = <&gmac>;
174 rgmii-enabled = <1>;
175 };
176 };
177
178 &wmac {
179 status = "okay";
180 qca,no-eeprom;
181 };