From: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org,
bones-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH 1/2] ARM: Tegra: dt: Split out separate Tegra SoC DT
Date: Fri, 29 Apr 2011 22:12:30 -0600 [thread overview]
Message-ID: <1304136751-11629-1-git-send-email-swarren@nvidia.com> (raw)
tegra250.dts describes everything within the Tegra SoC, but leaves all
optional devices disabled.
tegra-harmony.dts is now the configuration of the SoC for the board,
i.e. it enables the optional devices that are required for the board,
and provides any required platform data for those devics.
The prevents every Tegra board having to repeat all the basic internal
SoC wiring.
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
arch/arm/boot/dts/tegra-harmony.dts | 90 ++------------------------------
arch/arm/boot/dts/tegra250.dts | 99 +++++++++++++++++++++++++++++++++++
2 files changed, 104 insertions(+), 85 deletions(-)
create mode 100644 arch/arm/boot/dts/tegra250.dts
diff --git a/arch/arm/boot/dts/tegra-harmony.dts b/arch/arm/boot/dts/tegra-harmony.dts
index a22c1bb..63f3ca0 100644
--- a/arch/arm/boot/dts/tegra-harmony.dts
+++ b/arch/arm/boot/dts/tegra-harmony.dts
@@ -1,12 +1,9 @@
-
/dts-v1/;
+/include/ "tegra250.dts"
/ {
- model = "nVidia Harmony";
+ model = "NVIDIA Harmony";
compatible = "nvidia,harmony", "nvidia,tegra250";
- #address-cells = <1>;
- #size-cells = <1>;
- interrupt-parent = <&intc>;
chosen {
bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootdelay=2";
@@ -18,97 +15,20 @@
0x20000000 0x20000000 >;
};
- amba {
- compatible = "simple-bus";
- #address-cells = <1>;
- #size-cells = <1>;
- ranges;
-
- intc: intc {
- compatible = "nvidia,tegra250-gic", "arm,gic";
- interrupt-controller;
- #interrupt-cells = <1>;
- reg = < 0x50041000 0x1000
- 0x50040100 0x100 >;
- };
- };
-
- gpio: gpio@6000d000 {
- compatible = "nvidia,tegra250-gpio";
- reg = < 0x6000d000 0x1000 >;
- interrupts = < 64 65 66 67 87 119 121 >;
- #gpio-cells = <2>;
- gpio-controller;
- };
-
- serial@70006000 {
- compatible = "nvidia,tegra250-uart";
- reg = <0x70006000 0x40>;
- reg-shift = <2>;
- interrupts = < 68 >;
- status = "disabled";
- };
-
- serial@70006040 {
- compatible = "nvidia,tegra250-uart";
- reg = <0x70006040 0x40>;
- reg-shift = <2>;
- interrupts = < 69 >;
- status = "disabled";
- };
-
- serial@70006200 {
- compatible = "nvidia,tegra250-uart";
- reg = <0x70006200 0x100>;
- reg-shift = <2>;
- interrupts = < 78 >;
- status = "disabled";
- };
-
serial@70006300 {
- compatible = "nvidia,tegra250-uart";
- reg = <0x70006300 0x100>;
- reg-shift = <2>;
- interrupts = < 122 >;
-
+ status = "ok";
clock-frequency = < 216000000 >;
};
- serial@70006400 {
- compatible = "nvidia,tegra250-uart";
- reg = <0x70006400 0x100>;
- reg-shift = <2>;
- interrupts = < 123 >;
- status = "disabled";
- };
-
- sdhci@c8000000 {
- compatible = "nvidia,tegra250-sdhci";
- reg = <0xc8000000 0x200>;
- interrupts = < 46 >;
- status = "disabled";
- };
-
sdhci@c8000200 {
- compatible = "nvidia,tegra250-sdhci";
- reg = <0xc8000200 0x200>;
- interrupts = < 47 >;
+ status = "ok";
gpios = <&gpio 69 0>, /* cd, gpio PI5 */
<&gpio 57 0>, /* wp, gpio PH1 */
<&gpio 155 0>; /* power, gpio PT3 */
};
- sdhci@c8000400 {
- compatible = "nvidia,tegra250-sdhci";
- reg = <0xc8000400 0x200>;
- interrupts = < 51 >;
- status = "disabled";
- };
-
sdhci@c8000600 {
- compatible = "nvidia,tegra250-sdhci";
- reg = <0xc8000600 0x200>;
- interrupts = < 63 >;
+ status = "ok";
gpios = <&gpio 58 0>, /* cd, gpio PH2 */
<&gpio 59 0>, /* wp, gpio PH3 */
<&gpio 70 0>; /* power, gpio PI6 */
diff --git a/arch/arm/boot/dts/tegra250.dts b/arch/arm/boot/dts/tegra250.dts
new file mode 100644
index 0000000..b60d18d
--- /dev/null
+++ b/arch/arm/boot/dts/tegra250.dts
@@ -0,0 +1,99 @@
+/ {
+ model = "NVIDIA Tegra 250";
+ compatible = "nvidia,tegra250";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&intc>;
+
+ amba {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ intc: intc {
+ compatible = "nvidia,tegra250-gic", "arm,gic";
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ reg = < 0x50041000 0x1000
+ 0x50040100 0x100 >;
+ };
+ };
+
+ gpio: gpio@6000d000 {
+ compatible = "nvidia,tegra250-gpio";
+ reg = < 0x6000d000 0x1000 >;
+ interrupts = < 64 65 66 67 87 119 121 >;
+ #gpio-cells = <2>;
+ gpio-controller;
+ };
+
+ serial@70006000 {
+ compatible = "nvidia,tegra250-uart";
+ reg = <0x70006000 0x40>;
+ reg-shift = <2>;
+ interrupts = < 68 >;
+ status = "disabled";
+ };
+
+ serial@70006040 {
+ compatible = "nvidia,tegra250-uart";
+ reg = <0x70006040 0x40>;
+ reg-shift = <2>;
+ interrupts = < 69 >;
+ status = "disabled";
+ };
+
+ serial@70006200 {
+ compatible = "nvidia,tegra250-uart";
+ reg = <0x70006200 0x100>;
+ reg-shift = <2>;
+ interrupts = < 78 >;
+ status = "disabled";
+ };
+
+ serial@70006300 {
+ compatible = "nvidia,tegra250-uart";
+ reg = <0x70006300 0x100>;
+ reg-shift = <2>;
+ interrupts = < 122 >;
+ status = "disabled";
+ };
+
+ serial@70006400 {
+ compatible = "nvidia,tegra250-uart";
+ reg = <0x70006400 0x100>;
+ reg-shift = <2>;
+ interrupts = < 123 >;
+ status = "disabled";
+ };
+
+ sdhci@c8000000 {
+ compatible = "nvidia,tegra250-sdhci";
+ reg = <0xc8000000 0x200>;
+ interrupts = < 46 >;
+ status = "disabled";
+ };
+
+ sdhci@c8000200 {
+ compatible = "nvidia,tegra250-sdhci";
+ reg = <0xc8000200 0x200>;
+ interrupts = < 47 >;
+ status = "disabled";
+ };
+
+ sdhci@c8000400 {
+ compatible = "nvidia,tegra250-sdhci";
+ reg = <0xc8000400 0x200>;
+ interrupts = < 51 >;
+ status = "disabled";
+ };
+
+ sdhci@c8000600 {
+ compatible = "nvidia,tegra250-sdhci";
+ reg = <0xc8000600 0x200>;
+ interrupts = < 63 >;
+ status = "disabled";
+ };
+};
+
--
1.7.1
next reply other threads:[~2011-04-30 4:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-30 4:12 Stephen Warren [this message]
[not found] ` <1304136751-11629-1-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-04-30 4:12 ` [PATCH 2/2] ARM: Tegra: Seaboard: Add devicetree support Stephen Warren
[not found] ` <1304136751-11629-2-git-send-email-swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-05-01 14:38 ` Olof Johansson
[not found] ` <20110501143825.GB19918-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
2011-05-01 14:46 ` Grant Likely
[not found] ` <BANLkTimOJFxQGmPHMb2KPKQikL2sWZoQKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-01 14:57 ` Olof Johansson
2011-05-01 14:55 ` [PATCH 1/2] ARM: Tegra: dt: Split out separate Tegra SoC DT Olof Johansson
[not found] ` <20110501145546.GC19918-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
2011-05-02 18:00 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF0497F1B198-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-05-02 20:15 ` Grant Likely
[not found] ` <BANLkTikC9bAWiGsLP48djMB-jTR767JeNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-12 16:40 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04986AA33D-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-05-12 23:01 ` Grant Likely
[not found] ` <BANLkTimHcXOZa61yC5F=TDoiaUk4cA3=4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-13 19:28 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF04986AA65C-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-05-13 22:56 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304136751-11629-1-git-send-email-swarren@nvidia.com \
--to=swarren-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=bones-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).