mpc85xx: fix address config for ws-ap3825i
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_librerouter_librerouter-v1.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 compatible = "librerouter,librerouter-v1", "qca,qca9558";
11 model = "LibreRouter v1";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_system: system {
24 label = "librerouter-v1:green:system";
25 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
26 default-state = "on";
27 };
28
29 wifi_green {
30 label = "librerouter-v1:green:wlan2g";
31 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0tpt";
33 };
34
35 status_blue {
36 label = "librerouter-v1:blue:status";
37 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "Reset";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
49 };
50 };
51
52 watchdog {
53 compatible = "linux,wdt-gpio";
54 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
55 hw_algo = "toggle";
56 hw_margin_ms = <1000>;
57 always-running;
58 };
59 };
60
61 &pcie0 {
62 status = "okay";
63
64 wifi@0,0 {
65 compatible = "pci168c,0033";
66 reg = <0x0000 0 0 0 0>;
67 };
68 };
69
70 &pcie1 {
71 status = "okay";
72
73 wifi@0,0 {
74 compatible = "pci168c,0033";
75 reg = <0x0000 0 0 0 0>;
76 };
77 };
78
79 &uart {
80 status = "okay";
81 };
82
83 &usb_phy0 {
84 status = "okay";
85 };
86
87 &usb0 {
88 #address-cells = <1>;
89 #size-cells = <0>;
90 status = "okay";
91 };
92
93 &usb_phy1 {
94 status = "okay";
95 };
96
97 &usb1 {
98 #address-cells = <1>;
99 #size-cells = <0>;
100 status = "okay";
101 };
102
103 &spi {
104 status = "okay";
105
106 num-cs = <1>;
107
108 flash@0 {
109 compatible = "jedec,spi-nor";
110 reg = <0>;
111 spi-max-frequency = <25000000>;
112
113 partitions {
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
116 #size-cells = <1>;
117
118 partition@0 {
119 label = "u-boot";
120 reg = <0x000000 0x040000>;
121 read-only;
122 };
123
124 partition@40000 {
125 label = "u-boot-env";
126 reg = <0x040000 0x010000>;
127 };
128
129 partition@50000 {
130 compatible = "denx,uimage";
131 label = "firmware";
132 reg = <0x050000 0x7c0000>;
133 };
134
135 partition@810000 {
136 label = "fw2";
137 reg = <0x810000 0x7d0000>;
138 };
139
140 partition@fd0000 {
141 label = "res";
142 reg = <0xfd0000 0x20000>;
143 };
144
145 art: partition@ff0000 {
146 label = "art";
147 reg = <0xff0000 0x010000>;
148 read-only;
149 };
150 };
151 };
152 };
153
154 &mdio0 {
155 status = "okay";
156
157 phy0: ethernet-phy@0 {
158 reg = <0>;
159 qca,ar8327-initvals = <
160 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
161 0x0c 0x00000080 /* PORT6: SGMII */
162 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
163 0x50 0xcf37cf37 /* LED_CTRL0 */
164 0x54 0xcf37cf37 /* LED_CTRL1 */
165 0x58 0xcf37cf37 /* LED_CTRL2 */
166 0x5c 0x0 /* LED_CTRL3 */
167 0x7c 0x0000007e /* PORT0_STATUS */
168 0x94 0x0000007e /* PORT6 STATUS */
169 >;
170 };
171 };
172
173 &eth0 {
174 status = "okay";
175
176 pll-data = <0xa6000000 0x00000101 0x00001616>;
177 mtd-mac-address = <&art 0x0>;
178
179 phy-handle = <&phy0>;
180 };
181
182 &eth1 {
183 status = "okay";
184
185 phy-mode = "sgmii";
186 pll-data = <0x03000101 0x00000101 0x00001616>;
187 mtd-mac-address = <&art 0x6>;
188
189 fixed-link {
190 speed = <1000>;
191 full-duplex;
192 };
193 };
194
195 &wmac {
196 status = "okay";
197
198 mtd-cal-data = <&art 0x1000>;
199 mtd-mac-address = <&art 0xc>;
200 };