ath79: qca955x: remove redundant phy-mode
[openwrt/openwrt.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 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <25000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 uboot: partition@0 {
77 label = "u-boot";
78 reg = <0x000000 0x030000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x030000 0x010000>;
85 read-only;
86 };
87
88 partition@40000 {
89 compatible = "denx,uimage";
90 label = "firmware";
91 reg = <0x040000 0xf10000>;
92 };
93
94 partition@f50000 {
95 label = "manufacture";
96 reg = <0xf50000 0x040000>;
97 read-only;
98 };
99
100 partition@f90000 {
101 label = "backup";
102 reg = <0xf90000 0x010000>;
103 read-only;
104 };
105
106 partition@fa0000 {
107 label = "storage";
108 reg = <0xfa0000 0x050000>;
109 read-only;
110 };
111
112 art: partition@ff0000 {
113 label = "art";
114 reg = <0xff0000 0x010000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &pcie0 {
122 status = "okay";
123 };
124
125 &pcie1 {
126 status = "okay";
127
128 wifi@0,0 {
129 compatible = "qcom,ath10k";
130 reg = <0 0 0 0 0>;
131 };
132 };
133
134 &uart {
135 status = "okay";
136 };
137
138 &usb_phy0 {
139 status = "okay";
140 };
141
142 &usb0 {
143 #address-cells = <1>;
144 #size-cells = <0>;
145 status = "okay";
146 };
147
148 &mdio0 {
149 status = "okay";
150
151 phy0: ethernet-phy@0 {
152 reg = <0>;
153
154 qca,ar8327-initvals = <
155 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
156 0x50 0xc437c437 /* LED Control Register 0 */
157 0x54 0xc337c337 /* LED Control Register 1 */
158 0x58 0x00000000 /* LED Control Register 2 */
159 0x5c 0x03ffff00 /* LED Control Register 3 */
160 0x7c 0x0000007e /* PORT0_STATUS */
161 >;
162 };
163 };
164
165 &eth0 {
166 status = "okay";
167 phy-handle = <&phy0>;
168 pll-data = <0xa6000000 0x00000101 0x00001616>;
169
170 gmac-config {
171 device = <&gmac>;
172 rgmii-enabled = <1>;
173 };
174 };
175
176 &wmac {
177 status = "okay";
178 qca,no-eeprom;
179 };