tegra: Use a U-Boot-specific .dtsi file
authorSimon Glass <sjg@chromium.org>
Sat, 26 Nov 2016 03:16:00 +0000 (20:16 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 19 Dec 2016 19:09:55 +0000 (08:09 +1300)
With the new device-tree rules it is possible to put device-tree changes
needed by U-Boot into their own file. As an example of this approach, move
Tegra over to use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/tegra124-nyan-big-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/tegra124-nyan-big.dts
arch/arm/dts/tegra20-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/tegra20.dtsi

diff --git a/arch/arm/dts/tegra124-nyan-big-u-boot.dtsi b/arch/arm/dts/tegra124-nyan-big-u-boot.dtsi
new file mode 100644 (file)
index 0000000..fff1d78
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2016 Google, Inc
+ * Written by Simon Glass <sjg@chromium.org>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/ {
+       host1x@50000000 {
+               u-boot,dm-pre-reloc;
+               dc@54200000 {
+                       u-boot,dm-pre-reloc;
+               };
+       };
+};
index 3758395c6f7633c3bc0ad0820ad5000218aefb62..62f89d0f1a866ce6890ae8d3646e843008099c38 100644 (file)
@@ -27,9 +27,7 @@
        };
 
        host1x@50000000 {
-               u-boot,dm-pre-reloc;
                dc@54200000 {
-                       u-boot,dm-pre-reloc;
                        display-timings {
                                timing@0 {
                                        clock-frequency = <69500000>;
diff --git a/arch/arm/dts/tegra20-u-boot.dtsi b/arch/arm/dts/tegra20-u-boot.dtsi
new file mode 100644 (file)
index 0000000..9b9835d
--- /dev/null
@@ -0,0 +1,8 @@
+/ {
+       host1x@50000000 {
+               u-boot,dm-pre-reloc;
+               dc@54200000 {
+                       u-boot,dm-pre-reloc;
+               };
+       };
+};
index 84bb1b0215c8cf83ebc88b033027c055251379c5..e21ee258b3788cfdc77a0b22eb711706428bc127 100644 (file)
@@ -10,7 +10,6 @@
        interrupt-parent = <&lic>;
 
        host1x@50000000 {
-               u-boot,dm-pre-reloc;
                compatible = "nvidia,tegra20-host1x", "simple-bus";
                reg = <0x50000000 0x00024000>;
                interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, /* syncpt */
@@ -78,7 +77,6 @@
                };
 
                dc@54200000 {
-                       u-boot,dm-pre-reloc;
                        compatible = "nvidia,tegra20-dc";
                        reg = <0x54200000 0x00040000>;
                        interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;