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