Patchwork [U-Boot,V3,5/7] Tegra30: Cardhu: Add DT files

login
register
mail settings
Submitter Tom Warren
Date Dec. 11, 2012, 11:34 p.m.
Message ID <1355268858-7868-6-git-send-email-twarren@nvidia.com>
Download mbox | patch
Permalink /patch/205341/
State Accepted
Delegated to: Tom Warren
Headers show

Comments

Tom Warren - Dec. 11, 2012, 11:34 p.m.
These are stripped down for bringup, They'll be filled out later
to match-up with the kernel DT contents, and/or as devices are
brought up (mmc, usb, spi, etc.).

Signed-off-by: Tom Warren <twarren@nvidia.com>
---
V2: Reduce to the minimum needed to build/boot to cmd prompt
V3: Remove model= from .dtsi, fix memory length in .dts

 arch/arm/dts/tegra30.dtsi           |    5 +++++
 board/nvidia/dts/tegra30-cardhu.dts |   14 ++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/dts/tegra30.dtsi
 create mode 100644 board/nvidia/dts/tegra30-cardhu.dts
Stephen Warren - Dec. 12, 2012, 10:10 p.m.
On 12/11/2012 04:34 PM, Tom Warren wrote:
> These are stripped down for bringup, They'll be filled out later
> to match-up with the kernel DT contents, and/or as devices are
> brought up (mmc, usb, spi, etc.).

> diff --git a/board/nvidia/dts/tegra30-cardhu.dts b/board/nvidia/dts/tegra30-cardhu.dts

> +/memreserve/ 0x1c000000 0x04000000;

We should drop that line. Aside from that,

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tom Warren - Dec. 12, 2012, 11:11 p.m.
Stephen,

On Wed, Dec 12, 2012 at 3:10 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 12/11/2012 04:34 PM, Tom Warren wrote:
>> These are stripped down for bringup, They'll be filled out later
>> to match-up with the kernel DT contents, and/or as devices are
>> brought up (mmc, usb, spi, etc.).
>
>> diff --git a/board/nvidia/dts/tegra30-cardhu.dts b/board/nvidia/dts/tegra30-cardhu.dts
>
>> +/memreserve/ 0x1c000000 0x04000000;
>
> We should drop that line. Aside from that,

I thought I had dropped it, but it must have crept back in. I'll
remove it. Thanks
>
> Reviewed-by: Stephen Warren <swarren@nvidia.com>

Patch

diff --git a/arch/arm/dts/tegra30.dtsi b/arch/arm/dts/tegra30.dtsi
new file mode 100644
index 0000000..f568d44
--- /dev/null
+++ b/arch/arm/dts/tegra30.dtsi
@@ -0,0 +1,5 @@ 
+/include/ "skeleton.dtsi"
+
+/ {
+	compatible = "nvidia,tegra30";
+};
diff --git a/board/nvidia/dts/tegra30-cardhu.dts b/board/nvidia/dts/tegra30-cardhu.dts
new file mode 100644
index 0000000..3012534
--- /dev/null
+++ b/board/nvidia/dts/tegra30-cardhu.dts
@@ -0,0 +1,14 @@ 
+/dts-v1/;
+
+/memreserve/ 0x1c000000 0x04000000;
+/include/ ARCH_CPU_DTS
+
+/ {
+	model = "NVIDIA Cardhu";
+	compatible = "nvidia,cardhu", "nvidia,tegra30";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x40000000>;
+	};
+};