From: Jisheng Zhang <jszhang@marvell.com>
To: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Russell King <linux@arm.linux.org.uk>,
Pawel Moll <pawel.moll@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Stephen Warren <swarren@wwwdotorg.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Rob Herring <rob.herring@calxeda.com>,
Rob Landley <rob@landley.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v3 8/9] ARM: add Armada 1500-mini and Chromecast device tree files
Date: Thu, 7 Nov 2013 13:48:02 +0800 [thread overview]
Message-ID: <20131107134802.2234bff1@xhacker> (raw)
In-Reply-To: <1383661723-17956-9-git-send-email-sebastian.hesselbarth@gmail.com>
On Tue, 5 Nov 2013 06:28:42 -0800
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> wrote:
> This adds very basic device tree files for the Marvell Armada
> 1500-mini SoC (Berlin BG2CD) and the Google Chromecast. Currently,
> SoC only has nodes for cpu, some clocks, l2 cache controller, local
> timer, apb timers, uart, and interrupt controllers.
> The Google Chromecast is a consumer device comprising the Armada
> 1500-mini SoC above.
>
> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> ---
> Changelog:
> v3:
> - initial patch
>
> Cc: Rob Herring <rob.herring@calxeda.com>
> Cc: Pawel Moll <pawel.moll@arm.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Stephen Warren <swarren@wwwdotorg.org>
> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
> Cc: Rob Landley <rob@landley.net>
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: devicetree@vger.kernel.org
> Cc: linux-doc@vger.kernel.org
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> ---
> arch/arm/boot/dts/Makefile | 3 +-
> arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 29 +++
> arch/arm/boot/dts/berlin2cd.dtsi | 212
> +++++++++++++++++++++ 3 files changed, 243 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/boot/dts/berlin2cd-google-chromecast.dts
> create mode 100644 arch/arm/boot/dts/berlin2cd.dtsi
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index c9c1a6c..dac733f 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -47,7 +47,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
> dtb-$(CONFIG_ARCH_BCM) += bcm11351-brt.dtb \
> bcm28155-ap.dtb
> dtb-$(CONFIG_ARCH_BERLIN) += \
> - berlin2-sony-nsz-gs7.dtb
> + berlin2-sony-nsz-gs7.dtb \
> + berlin2cd-google-chromecast.dtb
> dtb-$(CONFIG_ARCH_DAVINCI) += da850-enbw-cmc.dtb \
> da850-evm.dtb
> dtb-$(CONFIG_ARCH_DOVE) += dove-cm-a510.dtb \
> diff --git a/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
> b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts new file mode 100644
> index 0000000..bcd81ff
> --- /dev/null
> +++ b/arch/arm/boot/dts/berlin2cd-google-chromecast.dts
> @@ -0,0 +1,29 @@
> +/*
> + * Device Tree file for Google Chromecast
> + *
> + * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> + *
> + * This file is licensed under the terms of the GNU General Public
> + * License version 2. This program is licensed "as is" without any
> + * warranty of any kind, whether express or implied.
> + */
> +
> +/dts-v1/;
> +
> +#include "berlin2cd.dtsi"
> +
> +/ {
> + model = "Google Chromecast";
> + compatible = "google,chromecast", "marvell,berlin2cd",
> "marvell,berlin"; +
> + chosen {
> + bootargs = "console=ttyS0,115200 earlyprintk";
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0x00000000 0x20000000>; /* 512 MB */
> + };
> +};
> +
> +&uart0 { status = "okay"; };
> diff --git a/arch/arm/boot/dts/berlin2cd.dtsi
> b/arch/arm/boot/dts/berlin2cd.dtsi new file mode 100644
> index 0000000..40d1bed
> --- /dev/null
> +++ b/arch/arm/boot/dts/berlin2cd.dtsi
> @@ -0,0 +1,212 @@
> +/*
> + * Device Tree Include file for Marvell Armada 1500-mini (Berlin BG2CD) SoC
> + *
> + * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> + *
> + * based on GPL'ed 2.6 kernel sources
> + * (c) Marvell International Ltd.
> + *
> + * This file is licensed under the terms of the GNU General Public
> + * License version 2. This program is licensed "as is" without any
> + * warranty of any kind, whether express or implied.
> + */
> +
> +#include "skeleton.dtsi"
> +#include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +/ {
> + model = "Marvell Armada 1500-mini (BG2CD) SoC";
> + compatible = "marvell,berlin2cd", "marvell,berlin";
> +
> + cpus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + cpu@0 {
> + compatible = "arm,cortex-a9";
> + device_type = "cpu";
> + next-level-cache = <&l2>;
> + reg = <0>;
> + };
> + };
> +
> + clocks {
> + smclk: sysmgr-clock {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <25000000>;
> + };
> +
> + cfgclk: cfg-clock {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <75000000>;
> + };
> +
> + sysclk: system-clock {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <300000000>;
> + };
> + };
> +
> + soc {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + interrupt-parent = <&gic>;
> +
> + ranges = <0 0xf7000000 0x1000000>;
> +
> + l2: l2-cache-controller@ac0000 {
> + compatible = "arm,pl310-cache";
> + reg = <0xac0000 0x1000>;
> + cache-unified;
> + cache-level = <2>;
> + arm,prefetch-ctrl = <0x70000007>;
> + arm,pwr-ctrl = <0x3>;
These two setting depend on the following prefetch and power control support patch.
We have it in our internal tree for a long time.
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-November/209700.html
> + };
> +
> + gic: interrupt-controller@ad1000 {
> + compatible = "arm,cortex-a9-gic";
> + reg = <0xad1000 0x1000>, <0xad0100 0x0100>;
> + interrupt-controller;
> + #interrupt-cells = <3>;
> + };
> +
> + local-timer@ad0600 {
> + compatible = "arm,cortex-a9-twd-timer";
> + reg = <0xad0600 0x20>;
> + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&sysclk>;
> + };
> +
> + apb@e80000 {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + ranges = <0 0xe80000 0x10000>;
> + interrupt-parent = <&aic>;
> +
> + timer0: timer@2c00 {
> + compatible = "snps,dw-apb-timer";
snps,dw-apb-timer-osc?
> + reg = <0x2c00 0x14>;
> + interrupts = <8>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "okay";
> + };
> +
> + timer1: timer@2c14 {
> + compatible = "snps,dw-apb-timer";
ditto for the remaining
> + reg = <0x2c14 0x14>;
> + interrupts = <9>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "okay";
> + };
> +
> + timer2: timer@2c28 {
> + compatible = "snps,dw-apb-timer";
> + reg = <0x2c28 0x14>;
> + interrupts = <10>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "disabled";
> + };
> +
> + timer3: timer@2c3c {
> + compatible = "snps,dw-apb-timer";
> + reg = <0x2c3c 0x14>;
> + interrupts = <11>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "disabled";
> + };
> +
> + timer4: timer@2c50 {
> + compatible = "snps,dw-apb-timer";
> + reg = <0x2c50 0x14>;
> + interrupts = <12>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "disabled";
> + };
> +
> + timer5: timer@2c64 {
> + compatible = "snps,dw-apb-timer";
> + reg = <0x2c64 0x14>;
> + interrupts = <13>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "disabled";
> + };
> +
> + timer6: timer@2c78 {
> + compatible = "snps,dw-apb-timer";
> + reg = <0x2c78 0x14>;
> + interrupts = <14>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "disabled";
> + };
> +
> + timer7: timer@2c8c {
> + compatible = "snps,dw-apb-timer";
> + reg = <0x2c8c 0x14>;
> + interrupts = <15>;
> + clocks = <&cfgclk>;
> + clock-names = "timer";
> + status = "disabled";
> + };
> +
> + aic: interrupt-controller@3000 {
> + compatible = "snps,dw-apb-ictl";
> + reg = <0x3000 0xc00>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + interrupt-parent = <&gic>;
> + interrupts = <GIC_SPI 3
> IRQ_TYPE_LEVEL_HIGH>;
> + };
> + };
> +
> + apb@fc0000 {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + ranges = <0 0xfc0000 0x10000>;
> + interrupt-parent = <&sic>;
> +
> + uart0: serial@9000 {
> + compatible = "snps,dw-apb-uart";
> + reg = <0x9000 0x100>;
> + reg-shift = <2>;
> + reg-io-width = <1>;
> + interrupts = <8>;
> + clocks = <&smclk>;
> + status = "disabled";
> + };
> +
> + uart1: serial@a000 {
> + compatible = "snps,dw-apb-uart";
> + reg = <0xa000 0x100>;
> + reg-shift = <2>;
> + reg-io-width = <1>;
> + interrupts = <9>;
> + clocks = <&smclk>;
> + status = "disabled";
> + };
> +
> + sic: interrupt-controller@e000 {
> + compatible = "snps,dw-apb-ictl";
> + reg = <0xe000 0x400>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + interrupt-parent = <&gic>;
> + interrupts = <GIC_SPI 15
> IRQ_TYPE_LEVEL_HIGH>;
> + };
> + };
> + };
> +};
> --
> 1.7.10.4
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2013-11-07 5:48 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1381235073-17134-1-git-send-email-sebastian.hesselbarth@gmail.com>
2013-10-08 12:24 ` [PATCH 1/8] irqchip: add DesignWare APB ICTL interrupt controller Sebastian Hesselbarth
2013-10-08 13:24 ` Mark Rutland
2013-10-08 15:51 ` Sebastian Hesselbarth
2013-10-11 9:30 ` Jisheng Zhang
2013-10-17 6:37 ` [PATCH v2 " Sebastian Hesselbarth
2013-10-25 21:30 ` Sebastian Hesselbarth
2013-10-08 12:24 ` [PATCH 3/8] ARM: l2x0: add Marvell Tauros3 compatible Sebastian Hesselbarth
2013-10-08 13:41 ` Mark Rutland
2013-10-08 16:05 ` Sebastian Hesselbarth
2013-10-08 16:33 ` Gregory CLEMENT
2013-10-09 8:50 ` Mark Rutland
2013-10-09 9:14 ` Gregory CLEMENT
2013-10-09 19:27 ` Sebastian Hesselbarth
2013-10-11 9:05 ` Lennert Buytenhek
2013-10-17 6:37 ` [PATCH v2 3/8] ARM: l2x0: add Marvell Tauros3 support Sebastian Hesselbarth
2013-10-08 12:24 ` [PATCH 7/8] ARM: add Armada 1500 and Sony NSZ-GS7 device tree files Sebastian Hesselbarth
2013-10-14 23:13 ` Sebastian Hesselbarth
2013-10-14 23:18 ` Sebastian Hesselbarth
2013-10-15 3:06 ` Jisheng Zhang
2013-10-17 6:37 ` [PATCH v2 " Sebastian Hesselbarth
2013-11-05 14:28 ` [PATCH v3 0/9] ARM: Initial support for Marvell Berlin SoCs Sebastian Hesselbarth
2013-11-05 14:28 ` [PATCH v3 1/9] irqchip: add DesignWare APB ICTL interrupt controller Sebastian Hesselbarth
[not found] ` <1383661723-17956-2-git-send-email-sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-11-06 11:34 ` Thomas Gleixner
2013-11-05 14:28 ` [PATCH v3 3/9] ARM: l2x0: add Marvell Tauros3 support Sebastian Hesselbarth
2013-11-05 14:28 ` [PATCH v3 7/9] ARM: add Armada 1500 and Sony NSZ-GS7 device tree files Sebastian Hesselbarth
2013-11-08 16:13 ` Kumar Gala
2013-11-08 16:57 ` Jason Cooper
2013-11-08 18:06 ` Kumar Gala
2013-11-08 18:24 ` Jason Cooper
[not found] ` <20131108182415.GG10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-08 19:14 ` Olof Johansson
2013-11-08 19:17 ` Sebastian Hesselbarth
2013-11-08 19:19 ` Olof Johansson
2013-11-08 19:30 ` Jason Cooper
2013-11-08 20:10 ` Olof Johansson
2013-11-08 20:29 ` Jason Cooper
2013-11-08 19:15 ` Sebastian Hesselbarth
2013-11-05 14:28 ` [PATCH v3 8/9] ARM: add Armada 1500-mini and Chromecast " Sebastian Hesselbarth
2013-11-07 5:48 ` Jisheng Zhang [this message]
2013-11-07 10:12 ` Sebastian Hesselbarth
2013-12-08 14:13 ` [PATCH v4 0/9] ARM: Initial support for Marvell Berlin SoCs Sebastian Hesselbarth
2013-12-08 14:13 ` [PATCH v4 1/9] irqchip: add DesignWare APB ICTL interrupt controller Sebastian Hesselbarth
2013-12-08 14:14 ` [PATCH v4 3/9] ARM: l2x0: add Marvell Tauros3 support Sebastian Hesselbarth
2013-12-08 14:14 ` [PATCH v4 7/9] ARM: add Armada 1500 and Sony NSZ-GS7 device tree files Sebastian Hesselbarth
[not found] ` <1386512047-874-1-git-send-email-sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-12-08 14:14 ` [PATCH v4 8/9] ARM: add Armada 1500-mini and Chromecast " Sebastian Hesselbarth
2013-12-10 1:40 ` [PATCH v4 0/9] ARM: Initial support for Marvell Berlin SoCs Olof Johansson
2013-12-10 1:57 ` Sebastian Hesselbarth
2013-12-10 19:16 ` Olof Johansson
2013-12-10 19:33 ` Arnd Bergmann
[not found] ` <201312102033.00953.arnd-r2nGTMty4D4@public.gmane.org>
2013-12-10 19:38 ` Olof Johansson
2013-12-10 20:02 ` Sebastian Hesselbarth
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=20131107134802.2234bff1@xhacker \
--to=jszhang@marvell.com \
--cc=devicetree@vger.kernel.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=sebastian.hesselbarth@gmail.com \
--cc=swarren@wwwdotorg.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).