mpc85xx: Drop pci aliases to avoid domain changes
[openwrt/openwrt.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / panda.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5
6 /include/ "fsl/p1020si-pre.dtsi"
7 / {
8 model = "OCEDO Panda";
9 compatible = "ocedo,panda";
10
11 aliases {
12 led-boot = &system_blue;
13 led-failsafe = &system_blue;
14 led-running = &system_blue;
15 led-upgrade = &system_blue;
16 };
17
18 chosen {
19 /* Needed for initramfs */
20 bootargs-override = "console=ttyS0,115200 ubi.mtd=3,2048";
21 };
22
23 memory {
24 device_type = "memory";
25 };
26
27 lbc: localbus@ffe05000 {
28 reg = <0 0xffe05000 0 0x1000>;
29 ranges = <0x0 0x0 0x0 0xec000000 0x04000000
30 0x1 0x0 0x0 0xff800000 0x00040000
31 0x2 0x0 0x0 0xffa00000 0x00020000
32 0x3 0x0 0x0 0xffb00000 0x00020000>;
33
34 nand@1,0 {
35 compatible = "fsl,p1020-fcm-nand", "fsl,elbc-fcm-nand";
36 reg = <0x1 0x0 0x40000>;
37
38 partitions {
39 compatible = "fixed-partitions";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partition@0 {
44 reg = <0x0 0xa0000>;
45 label = "uboot";
46 read-only;
47 };
48
49 partition@a0000 {
50 reg = <0xa0000 0x20000>;
51 label = "uboot-env0";
52 };
53
54 partition@c0000 {
55 reg = <0xc0000 0x40000>;
56 label = "uboot-env1";
57 };
58
59 partition@100000 {
60 reg = <0x100000 0xff00000>;
61 label = "ubi";
62 };
63 };
64 };
65 };
66
67 soc: soc@ffe00000 {
68 ranges = <0x0 0x0 0xffe00000 0x100000>;
69
70 i2c@3000 {
71 rtc@68 {
72 compatible = "dallas,ds1339";
73 reg = <0x68>;
74 };
75 };
76
77 gpio0: gpio-controller@fc00 {
78 };
79
80 mdio@24000 {
81 phy0: ethernet-phy@8 {
82 reg = <0x8>;
83 };
84
85 phy1: ethernet-phy@9 {
86 reg = <0x9>;
87 };
88
89 switch0: ethernet-phy@0 {
90 reg = <0x0>;
91
92 ports {
93 #address-cells = <1>;
94 #size-cells = <0>;
95
96 port@0 {
97 reg = <0>;
98 label = "lan1";
99 };
100
101 port@1 {
102 reg = <1>;
103 label = "lan2";
104 };
105
106 port@2 {
107 reg = <2>;
108 label = "lan3";
109 };
110
111 port@3 {
112 reg = <3>;
113 label = "lan4";
114 };
115
116 port@4 {
117 reg = <4>;
118 label = "lan5";
119 };
120
121 port@5 {
122 reg = <5>;
123 label = "lan6";
124 };
125
126 port@6 {
127 reg = <6>;
128 label = "lan7";
129 };
130
131 port@7 {
132 reg = <7>;
133 label = "lan8";
134 };
135
136 port@8 {
137 reg = <8>;
138 label = "cpu";
139
140 fixed-link {
141 speed = <1000>;
142 full-duplex;
143 };
144 };
145 };
146 };
147 };
148
149 mdio@25000 {
150 tbi_phy0: tbi-phy@11 {
151 reg = <0x11>;
152 };
153 };
154
155 mdio@26000 {
156 tbi_phy1: tbi-phy@11 {
157 reg = <0x11>;
158 };
159 };
160
161 enet0: ethernet@b0000 {
162 phy-connection-type = "rgmii-id";
163 phy-handle = <&switch0>;
164
165 fixed-link {
166 speed = <1000>;
167 full-duplex;
168 };
169 };
170
171 enet1: ethernet@b1000 {
172 phy-connection-type = "sgmii";
173 phy-handle = <&phy0>;
174
175 tbi-handle = <&tbi_phy0>;
176 };
177
178 enet2: ethernet@b2000 {
179 phy-connection-type = "sgmii";
180 phy-handle = <&phy1>;
181
182 tbi-handle = <&tbi_phy1>;
183 };
184
185 usb@22000 {
186 phy_type = "ulpi";
187 dr_mode = "host";
188 };
189
190 usb@23000 {
191 status = "disabled";
192 };
193 };
194
195 pci0: pcie@ffe09000 {
196 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
197 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
198 reg = <0 0xffe09000 0 0x1000>;
199 pcie@0 {
200 ranges = <0x2000000 0x0 0xa0000000
201 0x2000000 0x0 0xa0000000
202 0x0 0x20000000
203
204 0x1000000 0x0 0x0
205 0x1000000 0x0 0x0
206 0x0 0x100000>;
207 };
208 };
209
210 pci1: pcie@ffe0a000 {
211 reg = <0 0xffe0a000 0 0x1000>;
212 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
213 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
214 pcie@0 {
215 ranges = <0x2000000 0x0 0x80000000
216 0x2000000 0x0 0x80000000
217 0x0 0x20000000
218
219 0x1000000 0x0 0x0
220 0x1000000 0x0 0x0
221 0x0 0x100000>;
222 };
223 };
224
225 leds {
226 compatible = "gpio-leds";
227
228 power {
229 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
230 label = "panda:green:power";
231 default-state = "on";
232 };
233
234 wlan0 {
235 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
236 label = "panda:yellow:wlan0";
237 linux,default-trigger = "phy0tpt";
238 };
239
240 wlan1 {
241 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
242 label = "panda:red:wlan1";
243 linux,default-trigger = "phy1tpt";
244 };
245
246 tbd_orange {
247 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
248 label = "panda:orange:tbd";
249 };
250
251 system_blue: system {
252 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
253 label = "panda:blue:system";
254 };
255 };
256
257 buttons {
258 compatible = "gpio-keys";
259
260 reset {
261 label = "Reset button";
262 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
263 linux,code = <KEY_RESTART>;
264 };
265 };
266 };
267 /include/ "fsl/p1020si-post.dtsi"
268
269 /*
270 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
271 * aliases to determine PCI domain numbers, drop aliases so as not to
272 * change the sysfs path of our wireless netdevs.
273 */
274
275 / {
276 aliases {
277 /delete-property/ pci0;
278 /delete-property/ pci1;
279 };
280 };
281