mips: dts: Add support for Cisco SG220-26 switch
authorBert Vermeulen <bert@biot.com>
Tue, 19 Jan 2021 09:21:09 +0000 (10:21 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 4 Feb 2021 20:54:20 +0000 (21:54 +0100)
Signed-off-by: Bert Vermeulen <bert@biot.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/realtek/Makefile [new file with mode: 0644]
arch/mips/boot/dts/realtek/cisco_sg220-26.dts [new file with mode: 0644]

diff --git a/arch/mips/boot/dts/realtek/Makefile b/arch/mips/boot/dts/realtek/Makefile
new file mode 100644 (file)
index 0000000..fba4e93
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-y  += cisco_sg220-26.dtb
diff --git a/arch/mips/boot/dts/realtek/cisco_sg220-26.dts b/arch/mips/boot/dts/realtek/cisco_sg220-26.dts
new file mode 100644 (file)
index 0000000..1cdbb09
--- /dev/null
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
+
+/dts-v1/;
+
+#include "rtl83xx.dtsi"
+#include "rtl838x.dtsi"
+
+/ {
+       model = "Cisco SG220-26";
+       compatible = "cisco,sg220-26", "realtek,rtl8382-soc";
+
+       chosen {
+               stdout-path = "serial0:9600n8";
+               bootargs = "earlycon console=ttyS0,9600";
+       };
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+};
+
+&uart0 {
+       status = "okay";
+};