Skip to contentSkip to conversation

arm64: dts: Initial RTD1293/RTD1296 and DS418j/DS418 support

PATCH In review Andreas Färber 2 participants 8 messages Oct 16, 2017 – Oct 23, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: Initial RTD1293/RTD1296 and DS418j/DS418 support

Hello,

This series adds Device Trees for the Realtek RTD1293 and RTD1296 SoCs and Synology DiskStation DS418j and DS418 NAS devices.

To avoid too much duplication, a shared rtd129x.dtsi is introduced.

More details at:
https://en.opensuse.org/HCL:DS418j
https://en.opensuse.org/HCL:DS418

Latest experimental patches at:
https://github.com/afaerber/linux/commits/rtd1295-next

Have a lot of fun!

Cheers,
Andreas

Cc info at synology.com
Cc devicetree at vger.kernel.org

Andreas F?rber (5):
arm64: dts: realtek: Factor out common RTD129x parts
dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j
arm64: dts: realtek: Add RTD1293 and Synology DS418j
dt-bindings: arm: realtek: Document RTD1296 and Synology DS418
arm64: dts: realtek: Add RTD1296 and Synology DS418

 Documentation/devicetree/bindings/arm/realtek.txt | 34 +++++++++++
 arch/arm64/boot/dts/realtek/Makefile              |  4 ++
 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts    | 31 ++++++++++
 arch/arm64/boot/dts/realtek/rtd1293.dtsi          | 56 +++++++++++++++++
 arch/arm64/boot/dts/realtek/rtd1295.dtsi          | 65 ++------------------
 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts     | 31 ++++++++++
 arch/arm64/boot/dts/realtek/rtd1296.dtsi          | 74 +++++++++++++++++++++++
 arch/arm64/boot/dts/realtek/rtd129x.dtsi          | 72 ++++++++++++++++++++++
 8 files changed, 306 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1293.dtsi
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
 create mode 100644 arch/arm64/boot/dts/realtek/rtd129x.dtsi
Signature · 1 line
2.13.6
#1 lore raw

PATCH 1/5 arm64: dts: realtek: Factor out common RTD129x parts

Prepares for RTD1293 and RTD1296.

---
 arch/arm64/boot/dts/realtek/rtd1295.dtsi | 65 ++--------------------------
 arch/arm64/boot/dts/realtek/rtd129x.dtsi | 72 ++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm64/boot/dts/realtek/rtd129x.dtsi
arch/arm64/boot/dts/realtek/rtd1295.dtsi +4 -61
index c8b7bb642a9a..8d9ac05d17dc 100644
@@ -6,19 +6,10 @@
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
 
-/memreserve/	0x0000000000000000 0x0000000000030000;
-/memreserve/	0x000000000001f000 0x0000000000001000;
-/memreserve/	0x0000000000030000 0x00000000000d0000;
-/memreserve/	0x0000000001b00000 0x00000000004be000;
-/memreserve/	0x0000000001ffe000 0x0000000000004000;
-
-#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include "rtd129x.dtsi"
 
 / {
 	compatible = "realtek,rtd1295";
-	interrupt-parent = <&gic>;
-	#address-cells = <1>;
-	#size-cells = <1>;
 
 	cpus {
 		#address-cells = <2>;
@@ -68,12 +59,6 @@
 		};
 	};
 
-	arm-pmu {
-		compatible = "arm,cortex-a53-pmu";
-		interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
-		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
-	};
-
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts = <GIC_PPI 13
@@ -85,50 +70,8 @@
 			     <GIC_PPI 10
 			(GIC_CPU_MASK_RAW(0xf) | IRQ_TYPE_LEVEL_LOW)>;
 	};
+};
 
-	soc {
-		compatible = "simple-bus";
-		#address-cells = <1>;
-		#size-cells = <1>;
-		/* Exclude up to 2 GiB of RAM */
-		ranges = <0x80000000 0x80000000 0x80000000>;
-
-		uart0: serial at 98007800 {
-			compatible = "snps,dw-apb-uart";
-			reg = <0x98007800 0x400>;
-			reg-shift = <2>;
-			reg-io-width = <4>;
-			clock-frequency = <27000000>;
-			status = "disabled";
-		};
-
-		uart1: serial at 9801b200 {
-			compatible = "snps,dw-apb-uart";
-			reg = <0x9801b200 0x100>;
-			reg-shift = <2>;
-			reg-io-width = <4>;
-			clock-frequency = <432000000>;
-			status = "disabled";
-		};
-
-		uart2: serial at 9801b400 {
-			compatible = "snps,dw-apb-uart";
-			reg = <0x9801b400 0x100>;
-			reg-shift = <2>;
-			reg-io-width = <4>;
-			clock-frequency = <432000000>;
-			status = "disabled";
-		};
-
-		gic: interrupt-controller at ff011000 {
-			compatible = "arm,gic-400";
-			reg = <0xff011000 0x1000>,
-			      <0xff012000 0x2000>,
-			      <0xff014000 0x2000>,
-			      <0xff016000 0x2000>;
-			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
-			interrupt-controller;
-			#interrupt-cells = <3>;
-		};
-	};
+&arm_pmu {
+	interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
 };
arch/arm64/boot/dts/realtek/rtd129x.dtsi new file +72 -0

72 lines not on this page · raw message

Signature · 1 line
2.13.6
#2 lore raw

PATCH 2/5 dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j

In reply to Andreas Färber

Define compatible strings for Realtek RTD1293 SoC and Synology DiskStation DS418j NAS.

Cc info at synology.com
---
 Documentation/devicetree/bindings/arm/realtek.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/arm/realtek.txt +17 -0
index 297c15eb81e2..500e771614c4 100644
@@ -2,6 +2,23 @@ Realtek platforms device tree bindings
 --------------------------------------
 
 
+RTD1293 SoC
+===========
+
+Required root node properties:
+
+ - compatible :  must contain "realtek,rtd1293"
+
+
+Root node property compatible must contain, depending on board:
+
+ - Synology DiskStation DS418j: "synology,ds418j"
+
+Example:
+
+    compatible = "synology,ds418j", "realtek,rtd1293";
+
+
 RTD1295 SoC
 ===========
 
Signature · 1 line
2.13.6
#4 lore raw

PATCH 3/5 arm64: dts: realtek: Add RTD1293 and Synology DS418j

In reply to Andreas Färber

Add Device Trees for RTD1293 SoC and Synology DiskStation DS481j NAS.

Cc info at synology.com
---
 arch/arm64/boot/dts/realtek/Makefile           |  2 +
 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts | 31 ++++++++++++++
 arch/arm64/boot/dts/realtek/rtd1293.dtsi       | 56 ++++++++++++++++++++++++++
 3 files changed, 89 insertions(+)
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1293.dtsi
arch/arm64/boot/dts/realtek/Makefile +2 -0
index f43d0209ded7..25c795272507 100644
@@ -1,3 +1,5 @@
+dtb-$(CONFIG_ARCH_REALTEK) += rtd1293-ds418j.dtb
+
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb
 
arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts new file +31 -0
new file mode 100644
index 000000000000..0f17bbb5aabb
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2017 Andreas F?rber
+ *
+ * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+ */
+
+/dts-v1/;
+
+#include "rtd1293.dtsi"
+
+/ {
+	compatible = "synology,ds418j", "realtek,rtd1293";
+	model = "Synology DiskStation DS418j";
+
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x0 0x40000000>;
+	};
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/realtek/rtd1293.dtsi new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.13.6
#5 lore raw

PATCH 4/5 dt-bindings: arm: realtek: Document RTD1296 and Synology DS418

In reply to Andreas Färber

Define compatible strings for Realtek RTD1296 SoC and Synology DiskStation DS418 NAS.

Cc info at synology.com
---
 Documentation/devicetree/bindings/arm/realtek.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/arm/realtek.txt +17 -0
index 500e771614c4..d977aa0a0f46 100644
@@ -36,3 +36,20 @@ Root node property compatible must contain, depending on board:
 Example:
 
     compatible = "zidoo,x9s", "realtek,rtd1295";
+
+
+RTD1296 SoC
+===========
+
+Required root node properties:
+
+ - compatible :  must contain "realtek,rtd1296"
+
+
+Root node property compatible must contain, depending on board:
+
+ - Synology DiskStation DS418: "synology,ds418"
+
+Example:
+
+    compatible = "synology,ds418", "realtek,rtd1296";
Signature · 1 line
2.13.6
#7 lore raw

PATCH 5/5 arm64: dts: realtek: Add RTD1296 and Synology DS418

In reply to Andreas Färber

Add Device Trees for RTD1296 SoC and Synology DiskStation DS418.

Cc info at synology.com
---
 arch/arm64/boot/dts/realtek/Makefile          |  2 +
 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts | 31 +++++++++++
 arch/arm64/boot/dts/realtek/rtd1296.dtsi      | 74 +++++++++++++++++++++++++++
 3 files changed, 107 insertions(+)
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296-ds418.dts
 create mode 100644 arch/arm64/boot/dts/realtek/rtd1296.dtsi
arch/arm64/boot/dts/realtek/Makefile +2 -0
index 25c795272507..cf93f4db7a69 100644
@@ -3,6 +3,8 @@ dtb-$(CONFIG_ARCH_REALTEK) += rtd1293-ds418j.dtb
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-probox2-ava.dtb
 dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb
 
+dtb-$(CONFIG_ARCH_REALTEK) += rtd1296-ds418.dtb
+
 always		:= $(dtb-y)
 subdir-y	:= $(dts-dirs)
 clean-files	:= *.dtb
arch/arm64/boot/dts/realtek/rtd1296-ds418.dts new file +31 -0
new file mode 100644
index 000000000000..015ef06e1933
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2017 Andreas F?rber
+ *
+ * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+ */
+
+/dts-v1/;
+
+#include "rtd1293.dtsi"
+
+/ {
+	compatible = "synology,ds418", "realtek,rtd1296";
+	model = "Synology DiskStation DS418";
+
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x0 0x80000000>;
+	};
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/realtek/rtd1296.dtsi new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
2.13.6
maintainer Acked-by on v1 2/5
#3 lore raw

Re: [PATCH 2/5] dt-bindings: arm: realtek: Document RTD1293 and Synology DS418j

In reply to Andreas Färber
Quoted 8 lines · Andreas F?rber

Define compatible strings for Realtek RTD1293 SoC and Synology DiskStation DS418j NAS.

Cc info at synology.com
---
 Documentation/devicetree/bindings/arm/realtek.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
maintainer Acked-by on v1 4/5
#6 lore raw

Re: [PATCH 4/5] dt-bindings: arm: realtek: Document RTD1296 and Synology DS418

In reply to Andreas Färber
Quoted 8 lines · Andreas F?rber

Define compatible strings for Realtek RTD1296 SoC and Synology DiskStation DS418 NAS.

Cc info at synology.com
---
 Documentation/devicetree/bindings/arm/realtek.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)