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