1 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
6 /include/ "fsl/p1020si-pre.dtsi"
9 compatible = "ocedo,panda";
12 led-boot = &system_blue;
13 led-failsafe = &system_blue;
14 led-running = &system_blue;
15 led-upgrade = &system_blue;
19 /* Needed for initramfs */
20 bootargs-override = "console=ttyS0,115200 ubi.mtd=3,2048";
24 device_type = "memory";
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>;
35 compatible = "fsl,p1020-fcm-nand", "fsl,elbc-fcm-nand";
36 reg = <0x1 0x0 0x40000>;
39 compatible = "fixed-partitions";
50 reg = <0xa0000 0x20000>;
55 reg = <0xc0000 0x40000>;
60 reg = <0x100000 0xff00000>;
68 ranges = <0x0 0x0 0xffe00000 0x100000>;
72 compatible = "dallas,ds1339";
77 gpio0: gpio-controller@fc00 {
81 phy0: ethernet-phy@8 {
85 phy1: ethernet-phy@9 {
89 switch0: ethernet-phy@0 {
150 tbi_phy0: tbi-phy@11 {
156 tbi_phy1: tbi-phy@11 {
161 enet0: ethernet@b0000 {
162 phy-connection-type = "rgmii-id";
163 phy-handle = <&switch0>;
171 enet1: ethernet@b1000 {
172 phy-connection-type = "sgmii";
173 phy-handle = <&phy0>;
175 tbi-handle = <&tbi_phy0>;
178 enet2: ethernet@b2000 {
179 phy-connection-type = "sgmii";
180 phy-handle = <&phy1>;
182 tbi-handle = <&tbi_phy1>;
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>;
200 ranges = <0x2000000 0x0 0xa0000000
201 0x2000000 0x0 0xa0000000
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>;
215 ranges = <0x2000000 0x0 0x80000000
216 0x2000000 0x0 0x80000000
226 compatible = "gpio-leds";
229 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
230 label = "panda:green:power";
231 default-state = "on";
235 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
236 label = "panda:yellow:wlan0";
237 linux,default-trigger = "phy0tpt";
241 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
242 label = "panda:red:wlan1";
243 linux,default-trigger = "phy1tpt";
247 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
248 label = "panda:orange:tbd";
251 system_blue: system {
252 gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
253 label = "panda:blue:system";
258 compatible = "gpio-keys";
261 label = "Reset button";
262 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
263 linux,code = <KEY_RESTART>;
267 /include/ "fsl/p1020si-post.dtsi"
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.
277 /delete-property/ pci0;
278 /delete-property/ pci1;