From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: dts: keystone: Add minimal Keystone SOC device tree data
Date: Tue, 11 Jun 2013 10:38:18 +0100 [thread overview]
Message-ID: <20130611093818.GA22334@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1370894123-26846-4-git-send-email-santosh.shilimkar@ti.com>
On Mon, Jun 10, 2013 at 08:55:23PM +0100, Santosh Shilimkar wrote:
> Add minimal device tree data for Keystone2 based SOCs. Patch
> contains mainly ARM related SOC data and nothing about EVM specific
> yet.
>
> Cc: Grant Likely <grant.likely@linaro.org>
> Cc: Olof Johansson <olof@lixom.net>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: arm at kernel.org
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> ---
> I have seen some ongoing #include cleanups from Stephen Warren and cpu_node
> updates from Lorenzo, but since am unaware of the dependencies, dts file is
> aligned with the v3.10rcx ARM dts files. The changes are very trivial so
> I can fix them quickly when they show up in linux-next.
>
> .../devicetree/bindings/arm/keystone/keystone.txt | 9 ++
> arch/arm/boot/dts/keystone.dts | 98 ++++++++++++++++++++
> 2 files changed, 107 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/arm/keystone/keystone.txt
> create mode 100644 arch/arm/boot/dts/keystone.dts
>
> diff --git a/Documentation/devicetree/bindings/arm/keystone/keystone.txt b/Documentation/devicetree/bindings/arm/keystone/keystone.txt
> new file mode 100644
> index 0000000..b496d4c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/keystone/keystone.txt
> @@ -0,0 +1,9 @@
> +TI Kesytone Platforms Device Tree Bindings
> +-----------------------------------------------
> +
> +Boards with Keystone2 based devices (TCI66xxK2H) SOC shall have the
> +following properties.
> +
> +Required properties:
> + - compatible: Every devices present in Keystone SOC should be in
> + the form "ti,keystone-*";
I'm not sure that makes sense. The GIC for example isn't a "ti,keystone-gic",
and the uarts in the soc node don't start with "ti,keystone-" either.
> diff --git a/arch/arm/boot/dts/keystone.dts b/arch/arm/boot/dts/keystone.dts
> new file mode 100644
> index 0000000..9ca7d25
> --- /dev/null
> +++ b/arch/arm/boot/dts/keystone.dts
> @@ -0,0 +1,98 @@
> +/*
> + * Copyright 2013 Texas Instruments, Inc.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +/dts-v1/;
> +/include/ "skeleton.dtsi"
> +
> +/ {
> + model = "Texas Instruments Keystone 2 SoC";
> + compatible = "ti,keystone-evm";
> + #address-cells = <2>;
> + #size-cells = <2>;
> + interrupt-parent = <&gic>;
> +
> + aliases {
> + serial0 = &uart0;
> + };
> +
> + memory {
> + reg = <0x00000000 0x80000000 0x00000000 0x40000000>;
> + };
> +
> + cpus {
> + interrupt-parent = <&gic>;
> +
> + cpu at 0 {
> + compatible = "arm,cortex-a15";
> + };
> +
> + cpu at 1 {
> + compatible = "arm,cortex-a15";
> + };
> +
> + cpu at 2 {
> + compatible = "arm,cortex-a15";
> + };
> +
> + cpu at 3 {
> + compatible = "arm,cortex-a15";
> + };
> + };
It would be nice if these matched up with what's *currently* specified in the
cpu bindings (each cpu has it's reg and device_type set, cpus have the
requisite #address-cells and #size cells as required by ePAPR).
All you should need is:
cpus {
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&gic>;
cpu at 0 {
compatible = "arm,cortex-a15";
device_type = "cpu";
reg = <0>;
};
cpu at 1 {
compatible = "arm,cortex-a15";
device_type = "cpu";
reg = <1>;
};
cpu at 2 {
compatible = "arm,cortex-a15";
device_type = "cpu";
reg = <2>;
};
cpu at 3 {
compatible = "arm,cortex-a15";
device_type = "cpu";
reg = <3>;
};
};
Thanks,
Mark.
next prev parent reply other threads:[~2013-06-11 9:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 19:55 [PATCH 0/3] ARM: Add minimal support for TI Keystone SOCs Santosh Shilimkar
2013-06-10 19:55 ` [PATCH 1/3] ARM: keystone: Add minimal TI Keystone platform support Santosh Shilimkar
2013-06-11 19:27 ` Arnd Bergmann
2013-06-11 20:10 ` Santosh Shilimkar
2013-06-11 20:24 ` Arnd Bergmann
2013-06-11 20:56 ` Santosh Shilimkar
2013-06-12 19:30 ` Santosh Shilimkar
2013-06-10 19:55 ` [PATCH 2/3] ARM: keystone: Enable SMP support on Keystone machines Santosh Shilimkar
2013-06-11 5:16 ` Chander Kashyap
2013-06-11 13:34 ` Santosh Shilimkar
2013-06-11 14:54 ` Santosh Shilimkar
2013-06-10 19:55 ` [PATCH 3/3] ARM: dts: keystone: Add minimal Keystone SOC device tree data Santosh Shilimkar
2013-06-11 9:38 ` Mark Rutland [this message]
2013-06-11 13:40 ` Santosh Shilimkar
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=20130611093818.GA22334@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).