MIPS: mscc: Add ocelot PCB123 device tree
authorAlexandre Belloni <[email protected]>
Tue, 20 Mar 2018 13:07:59 +0000 (14:07 +0100)
committerJames Hogan <[email protected]>
Wed, 21 Mar 2018 23:33:00 +0000 (23:33 +0000)
Add a device tree for the Microsemi Ocelot PCB123 evaluation board.

Signed-off-by: Alexandre Belloni <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Allan Nielsen <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/18856/
Signed-off-by: James Hogan <[email protected]>
arch/mips/boot/dts/mscc/Makefile
arch/mips/boot/dts/mscc/ocelot_pcb123.dts [new file with mode: 0644]

index dd08e63a10ba64b577ad2e5cc956e890aa225283..c51164537c02cc34bc0a2156ae9323e49b8ed92b 100644 (file)
@@ -1 +1,3 @@
+dtb-$(CONFIG_LEGACY_BOARD_OCELOT)      += ocelot_pcb123.dtb
+
 obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
diff --git a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts b/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
new file mode 100644 (file)
index 0000000..29d6414
--- /dev/null
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/* Copyright (c) 2017 Microsemi Corporation */
+
+/dts-v1/;
+
+#include "ocelot.dtsi"
+
+/ {
+       compatible = "mscc,ocelot-pcb123", "mscc,ocelot";
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x0e000000>;
+       };
+};
+
+&uart0 {
+       status = "okay";
+};
+
+&uart2 {
+       status = "okay";
+};