]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: dts: rk3399-puma: refactor and rename (default) DDR3-1600 DTS
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 6 Jun 2017 18:44:45 +0000 (20:44 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 8 Jun 2017 03:30:48 +0000 (21:30 -0600)
To better support different RAM timings (DDR3-1333 and DDR3-1866 are
assembly options for the RK3399-Q7), this refactors the DTS support
and renames the default DTS variant from rk3399-puma to
rk3399-puma-ddr1600:
- changes the rk3399-puma DTS into a board-specific DTSI by removing
  the inclusion of the DRAM timings
- adds a new rk3399-puma-ddr1600.dts, which includes the (new) common
  board DTSI and the DDR3-1600 timing DTSI
- wires this up from arch/arm/dts/Makefile and configs/puma-rk3399_defconfig

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/Makefile
arch/arm/dts/rk3399-puma-ddr1600.dts [new file with mode: 0644]
arch/arm/dts/rk3399-puma.dtsi [moved from arch/arm/dts/rk3399-puma.dts with 99% similarity]
configs/puma-rk3399_defconfig

index 4d8a56aea8477eeed6b733d311548416a45f68b1..221c0a7210c6d97d735e2079f523327d1a1f9d3e 100644 (file)
@@ -46,7 +46,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
        rk3368-px5-evb.dtb \
        rk3399-evb.dtb \
        rk3399-firefly.dtb \
-       rk3399-puma.dtb \
+       rk3399-puma-ddr1600.dtb \
        rv1108-evb.dtb
 dtb-$(CONFIG_ARCH_MESON) += \
        meson-gxbb-odroidc2.dtb
diff --git a/arch/arm/dts/rk3399-puma-ddr1600.dts b/arch/arm/dts/rk3399-puma-ddr1600.dts
new file mode 100644 (file)
index 0000000..31aaf70
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
+ *
+ * SPDX-License-Identifier:     GPL-2.0+       X11
+ */
+
+/dts-v1/;
+
+#include "rk3399-puma.dtsi"
+#include "rk3399-sdram-ddr3-1600.dtsi"
+
similarity index 99%
rename from arch/arm/dts/rk3399-puma.dts
rename to arch/arm/dts/rk3399-puma.dtsi
index fca14d30013d1eb71df719e279f0e87de7eae4b0..1aad6c508e41f5b25898a2452068f4b3c4d1aa72 100644 (file)
@@ -4,11 +4,8 @@
  * SPDX-License-Identifier:     GPL-2.0+       X11
  */
 
-/dts-v1/;
-
 #include <dt-bindings/pwm/pwm.h>
 #include "rk3399.dtsi"
-#include "rk3399-sdram-ddr3-1600.dtsi"
 
 / {
        model = "Theobroma Systems RK3399-Q7 SoM";
index 001686fa6d2989b327f484c760a9f5b3bc9ea9ef..af528fbbe2a82b02721351d0c0ea13d70f9ddc20 100644 (file)
@@ -8,7 +8,7 @@ CONFIG_TARGET_PUMA_RK3399=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x80000
-CONFIG_DEFAULT_DEVICE_TREE="rk3399-puma"
+CONFIG_DEFAULT_DEVICE_TREE="rk3399-puma-ddr1600"
 CONFIG_DEBUG_UART=y
 CONFIG_FIT=y
 CONFIG_SPL_LOAD_FIT=y