ARM: dts: Add devicetree for OrangePi 2G IoT board
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 18 Dec 2018 15:02:32 +0000 (20:32 +0530)
committerOlof Johansson <olof@lixom.net>
Mon, 31 Dec 2018 21:09:44 +0000 (13:09 -0800)
Add initial devicetree support for OrangePi 2G IoT board from Xunlong.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts [new file with mode: 0644]

index b0e966d..a0fdad8 100644 (file)
@@ -806,6 +806,8 @@ dtb-$(CONFIG_ARCH_QCOM) += \
        qcom-msm8974-sony-xperia-castor.dtb \
        qcom-msm8974-sony-xperia-honami.dtb \
        qcom-mdm9615-wp8548-mangoh-green.dtb
+dtb-$(CONFIG_ARCH_RDA) += \
+       rda8810pl-orangepi-2g-iot.dtb
 dtb-$(CONFIG_ARCH_REALVIEW) += \
        arm-realview-pb1176.dtb \
        arm-realview-pb11mp.dtb \
diff --git a/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts
new file mode 100644 (file)
index 0000000..98e3424
--- /dev/null
@@ -0,0 +1,50 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2017 Andreas Färber
+ * Copyright (c) 2018 Manivannan Sadhasivam
+ */
+
+/dts-v1/;
+
+#include "rda8810pl.dtsi"
+
+/ {
+       compatible = "xunlong,orangepi-2g-iot", "rda,8810pl";
+       model = "Orange Pi 2G-IoT";
+
+       aliases {
+               serial0 = &uart1;
+               serial1 = &uart2;
+               serial2 = &uart3;
+       };
+
+       chosen {
+               stdout-path = "serial2:921600n8";
+       };
+
+       memory@80000000 {
+               device_type = "memory";
+               reg = <0x80000000 0x10000000>;
+       };
+
+       uart_clk: uart-clk {
+               compatible = "fixed-clock";
+               clock-frequency = <921600>;
+               #clock-cells = <0>;
+       };
+};
+
+&uart1 {
+       status = "okay";
+       clocks = <&uart_clk>;
+};
+
+&uart2 {
+       status = "okay";
+       clocks = <&uart_clk>;
+};
+
+&uart3 {
+       status = "okay";
+       clocks = <&uart_clk>;
+};