From: Grant Likely <grant.likely@secretlab.ca>
To: Mingkai Hu <Mingkai.hu@freescale.com>
Cc: kumar.gala@freescale.com, david-b@pacbell.net,
linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org,
spi-devel-general@lists.sourceforge.net,
tie-fei.zang@freescale.com
Subject: Re: [PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification
Date: Tue, 12 Oct 2010 21:41:55 -0600 [thread overview]
Message-ID: <20101013034155.GD7254@angua.secretlab.ca> (raw)
In-Reply-To: <1286878714-13090-5-git-send-email-Mingkai.hu@freescale.com>
On Tue, Oct 12, 2010 at 06:18:33PM +0800, Mingkai Hu wrote:
> Also modifiy the document of cell-index in SPI controller. Add the
> SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board.
>
> Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Applied, thanks.
g.
> ---
> v4:
> - Updated to latest kernel base(Linux 2.6.36-rc7).
>
> Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 ++++++++++-
> arch/powerpc/boot/dts/mpc8536ds.dts | 52 ++++++++++++++++++++++++
> arch/powerpc/boot/dts/p4080ds.dts | 11 ++---
> 3 files changed, 79 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentation/powerpc/dts-bindings/fsl/spi.txt
> index 80510c0..777abd7 100644
> --- a/Documentation/powerpc/dts-bindings/fsl/spi.txt
> +++ b/Documentation/powerpc/dts-bindings/fsl/spi.txt
> @@ -1,7 +1,9 @@
> * SPI (Serial Peripheral Interface)
>
> Required properties:
> -- cell-index : SPI controller index.
> +- cell-index : QE SPI subblock index.
> + 0: QE subblock SPI1
> + 1: QE subblock SPI2
> - compatible : should be "fsl,spi".
> - mode : the SPI operation mode, it can be "cpu" or "cpu-qe".
> - reg : Offset and length of the register set for the device
> @@ -29,3 +31,23 @@ Example:
> gpios = <&gpio 18 1 // device reg=<0>
> &gpio 19 1>; // device reg=<1>
> };
> +
> +
> +* eSPI (Enhanced Serial Peripheral Interface)
> +
> +Required properties:
> +- compatible : should be "fsl,mpc8536-espi".
> +- reg : Offset and length of the register set for the device.
> +- interrupts : should contain eSPI interrupt, the device has one interrupt.
> +- fsl,espi-num-chipselects : the number of the chipselect signals.
> +
> +Example:
> + spi@110000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "fsl,mpc8536-espi";
> + reg = <0x110000 0x1000>;
> + interrupts = <53 0x2>;
> + interrupt-parent = <&mpic>;
> + fsl,espi-num-chipselects = <4>;
> + };
> diff --git a/arch/powerpc/boot/dts/mpc8536ds.dts b/arch/powerpc/boot/dts/mpc8536ds.dts
> index 815cebb..a75c10e 100644
> --- a/arch/powerpc/boot/dts/mpc8536ds.dts
> +++ b/arch/powerpc/boot/dts/mpc8536ds.dts
> @@ -108,6 +108,58 @@
> };
> };
>
> + spi@7000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "fsl,mpc8536-espi";
> + reg = <0x7000 0x1000>;
> + interrupts = <59 0x2>;
> + interrupt-parent = <&mpic>;
> + fsl,espi-num-chipselects = <4>;
> +
> + flash@0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spansion,s25sl12801";
> + reg = <0>;
> + spi-max-frequency = <40000000>;
> + partition@u-boot {
> + label = "u-boot";
> + reg = <0x00000000 0x00100000>;
> + read-only;
> + };
> + partition@kernel {
> + label = "kernel";
> + reg = <0x00100000 0x00500000>;
> + read-only;
> + };
> + partition@dtb {
> + label = "dtb";
> + reg = <0x00600000 0x00100000>;
> + read-only;
> + };
> + partition@fs {
> + label = "file system";
> + reg = <0x00700000 0x00900000>;
> + };
> + };
> + flash@1 {
> + compatible = "spansion,s25sl12801";
> + reg = <1>;
> + spi-max-frequency = <40000000>;
> + };
> + flash@2 {
> + compatible = "spansion,s25sl12801";
> + reg = <2>;
> + spi-max-frequency = <40000000>;
> + };
> + flash@3 {
> + compatible = "spansion,s25sl12801";
> + reg = <3>;
> + spi-max-frequency = <40000000>;
> + };
> + };
> +
> dma@21300 {
> #address-cells = <1>;
> #size-cells = <1>;
> diff --git a/arch/powerpc/boot/dts/p4080ds.dts b/arch/powerpc/boot/dts/p4080ds.dts
> index 2f0de24..5b7fc29 100644
> --- a/arch/powerpc/boot/dts/p4080ds.dts
> +++ b/arch/powerpc/boot/dts/p4080ds.dts
> @@ -236,22 +236,19 @@
> };
>
> spi@110000 {
> - cell-index = <0>;
> #address-cells = <1>;
> #size-cells = <0>;
> - compatible = "fsl,espi";
> + compatible = "fsl,p4080-espi", "fsl,mpc8536-espi";
> reg = <0x110000 0x1000>;
> interrupts = <53 0x2>;
> interrupt-parent = <&mpic>;
> - espi,num-ss-bits = <4>;
> - mode = "cpu";
> + fsl,espi-num-chipselects = <4>;
>
> - fsl_m25p80@0 {
> + flash@0 {
> #address-cells = <1>;
> #size-cells = <1>;
> - compatible = "fsl,espi-flash";
> + compatible = "spansion,s25sl12801";
> reg = <0>;
> - linux,modalias = "fsl_m25p80";
> spi-max-frequency = <40000000>; /* input clock */
> partition@u-boot {
> label = "u-boot";
> --
> 1.6.4
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Mingkai Hu <Mingkai.hu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: kumar.gala-KZfg59tc24xl57MIdRCFDg@public.gmane.org,
david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org,
linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
tie-fei.zang-KZfg59tc24xl57MIdRCFDg@public.gmane.org
Subject: Re: [PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification
Date: Tue, 12 Oct 2010 21:41:55 -0600 [thread overview]
Message-ID: <20101013034155.GD7254@angua.secretlab.ca> (raw)
In-Reply-To: <1286878714-13090-5-git-send-email-Mingkai.hu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
On Tue, Oct 12, 2010 at 06:18:33PM +0800, Mingkai Hu wrote:
> Also modifiy the document of cell-index in SPI controller. Add the
> SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board.
>
> Signed-off-by: Mingkai Hu <Mingkai.hu-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Applied, thanks.
g.
> ---
> v4:
> - Updated to latest kernel base(Linux 2.6.36-rc7).
>
> Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 ++++++++++-
> arch/powerpc/boot/dts/mpc8536ds.dts | 52 ++++++++++++++++++++++++
> arch/powerpc/boot/dts/p4080ds.dts | 11 ++---
> 3 files changed, 79 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentation/powerpc/dts-bindings/fsl/spi.txt
> index 80510c0..777abd7 100644
> --- a/Documentation/powerpc/dts-bindings/fsl/spi.txt
> +++ b/Documentation/powerpc/dts-bindings/fsl/spi.txt
> @@ -1,7 +1,9 @@
> * SPI (Serial Peripheral Interface)
>
> Required properties:
> -- cell-index : SPI controller index.
> +- cell-index : QE SPI subblock index.
> + 0: QE subblock SPI1
> + 1: QE subblock SPI2
> - compatible : should be "fsl,spi".
> - mode : the SPI operation mode, it can be "cpu" or "cpu-qe".
> - reg : Offset and length of the register set for the device
> @@ -29,3 +31,23 @@ Example:
> gpios = <&gpio 18 1 // device reg=<0>
> &gpio 19 1>; // device reg=<1>
> };
> +
> +
> +* eSPI (Enhanced Serial Peripheral Interface)
> +
> +Required properties:
> +- compatible : should be "fsl,mpc8536-espi".
> +- reg : Offset and length of the register set for the device.
> +- interrupts : should contain eSPI interrupt, the device has one interrupt.
> +- fsl,espi-num-chipselects : the number of the chipselect signals.
> +
> +Example:
> + spi@110000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "fsl,mpc8536-espi";
> + reg = <0x110000 0x1000>;
> + interrupts = <53 0x2>;
> + interrupt-parent = <&mpic>;
> + fsl,espi-num-chipselects = <4>;
> + };
> diff --git a/arch/powerpc/boot/dts/mpc8536ds.dts b/arch/powerpc/boot/dts/mpc8536ds.dts
> index 815cebb..a75c10e 100644
> --- a/arch/powerpc/boot/dts/mpc8536ds.dts
> +++ b/arch/powerpc/boot/dts/mpc8536ds.dts
> @@ -108,6 +108,58 @@
> };
> };
>
> + spi@7000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "fsl,mpc8536-espi";
> + reg = <0x7000 0x1000>;
> + interrupts = <59 0x2>;
> + interrupt-parent = <&mpic>;
> + fsl,espi-num-chipselects = <4>;
> +
> + flash@0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spansion,s25sl12801";
> + reg = <0>;
> + spi-max-frequency = <40000000>;
> + partition@u-boot {
> + label = "u-boot";
> + reg = <0x00000000 0x00100000>;
> + read-only;
> + };
> + partition@kernel {
> + label = "kernel";
> + reg = <0x00100000 0x00500000>;
> + read-only;
> + };
> + partition@dtb {
> + label = "dtb";
> + reg = <0x00600000 0x00100000>;
> + read-only;
> + };
> + partition@fs {
> + label = "file system";
> + reg = <0x00700000 0x00900000>;
> + };
> + };
> + flash@1 {
> + compatible = "spansion,s25sl12801";
> + reg = <1>;
> + spi-max-frequency = <40000000>;
> + };
> + flash@2 {
> + compatible = "spansion,s25sl12801";
> + reg = <2>;
> + spi-max-frequency = <40000000>;
> + };
> + flash@3 {
> + compatible = "spansion,s25sl12801";
> + reg = <3>;
> + spi-max-frequency = <40000000>;
> + };
> + };
> +
> dma@21300 {
> #address-cells = <1>;
> #size-cells = <1>;
> diff --git a/arch/powerpc/boot/dts/p4080ds.dts b/arch/powerpc/boot/dts/p4080ds.dts
> index 2f0de24..5b7fc29 100644
> --- a/arch/powerpc/boot/dts/p4080ds.dts
> +++ b/arch/powerpc/boot/dts/p4080ds.dts
> @@ -236,22 +236,19 @@
> };
>
> spi@110000 {
> - cell-index = <0>;
> #address-cells = <1>;
> #size-cells = <0>;
> - compatible = "fsl,espi";
> + compatible = "fsl,p4080-espi", "fsl,mpc8536-espi";
> reg = <0x110000 0x1000>;
> interrupts = <53 0x2>;
> interrupt-parent = <&mpic>;
> - espi,num-ss-bits = <4>;
> - mode = "cpu";
> + fsl,espi-num-chipselects = <4>;
>
> - fsl_m25p80@0 {
> + flash@0 {
> #address-cells = <1>;
> #size-cells = <1>;
> - compatible = "fsl,espi-flash";
> + compatible = "spansion,s25sl12801";
> reg = <0>;
> - linux,modalias = "fsl_m25p80";
> spi-max-frequency = <40000000>; /* input clock */
> partition@u-boot {
> label = "u-boot";
> --
> 1.6.4
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
WARNING: multiple messages have this Message-ID (diff)
From: Grant Likely <grant.likely@secretlab.ca>
To: Mingkai Hu <Mingkai.hu@freescale.com>
Cc: kumar.gala@freescale.com, david-b@pacbell.net,
linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org,
spi-devel-general@lists.sourceforge.net
Subject: Re: [PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification
Date: Tue, 12 Oct 2010 21:41:55 -0600 [thread overview]
Message-ID: <20101013034155.GD7254@angua.secretlab.ca> (raw)
In-Reply-To: <1286878714-13090-5-git-send-email-Mingkai.hu@freescale.com>
On Tue, Oct 12, 2010 at 06:18:33PM +0800, Mingkai Hu wrote:
> Also modifiy the document of cell-index in SPI controller. Add the
> SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board.
>
> Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Applied, thanks.
g.
> ---
> v4:
> - Updated to latest kernel base(Linux 2.6.36-rc7).
>
> Documentation/powerpc/dts-bindings/fsl/spi.txt | 24 ++++++++++-
> arch/powerpc/boot/dts/mpc8536ds.dts | 52 ++++++++++++++++++++++++
> arch/powerpc/boot/dts/p4080ds.dts | 11 ++---
> 3 files changed, 79 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/powerpc/dts-bindings/fsl/spi.txt b/Documentation/powerpc/dts-bindings/fsl/spi.txt
> index 80510c0..777abd7 100644
> --- a/Documentation/powerpc/dts-bindings/fsl/spi.txt
> +++ b/Documentation/powerpc/dts-bindings/fsl/spi.txt
> @@ -1,7 +1,9 @@
> * SPI (Serial Peripheral Interface)
>
> Required properties:
> -- cell-index : SPI controller index.
> +- cell-index : QE SPI subblock index.
> + 0: QE subblock SPI1
> + 1: QE subblock SPI2
> - compatible : should be "fsl,spi".
> - mode : the SPI operation mode, it can be "cpu" or "cpu-qe".
> - reg : Offset and length of the register set for the device
> @@ -29,3 +31,23 @@ Example:
> gpios = <&gpio 18 1 // device reg=<0>
> &gpio 19 1>; // device reg=<1>
> };
> +
> +
> +* eSPI (Enhanced Serial Peripheral Interface)
> +
> +Required properties:
> +- compatible : should be "fsl,mpc8536-espi".
> +- reg : Offset and length of the register set for the device.
> +- interrupts : should contain eSPI interrupt, the device has one interrupt.
> +- fsl,espi-num-chipselects : the number of the chipselect signals.
> +
> +Example:
> + spi@110000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "fsl,mpc8536-espi";
> + reg = <0x110000 0x1000>;
> + interrupts = <53 0x2>;
> + interrupt-parent = <&mpic>;
> + fsl,espi-num-chipselects = <4>;
> + };
> diff --git a/arch/powerpc/boot/dts/mpc8536ds.dts b/arch/powerpc/boot/dts/mpc8536ds.dts
> index 815cebb..a75c10e 100644
> --- a/arch/powerpc/boot/dts/mpc8536ds.dts
> +++ b/arch/powerpc/boot/dts/mpc8536ds.dts
> @@ -108,6 +108,58 @@
> };
> };
>
> + spi@7000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "fsl,mpc8536-espi";
> + reg = <0x7000 0x1000>;
> + interrupts = <59 0x2>;
> + interrupt-parent = <&mpic>;
> + fsl,espi-num-chipselects = <4>;
> +
> + flash@0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spansion,s25sl12801";
> + reg = <0>;
> + spi-max-frequency = <40000000>;
> + partition@u-boot {
> + label = "u-boot";
> + reg = <0x00000000 0x00100000>;
> + read-only;
> + };
> + partition@kernel {
> + label = "kernel";
> + reg = <0x00100000 0x00500000>;
> + read-only;
> + };
> + partition@dtb {
> + label = "dtb";
> + reg = <0x00600000 0x00100000>;
> + read-only;
> + };
> + partition@fs {
> + label = "file system";
> + reg = <0x00700000 0x00900000>;
> + };
> + };
> + flash@1 {
> + compatible = "spansion,s25sl12801";
> + reg = <1>;
> + spi-max-frequency = <40000000>;
> + };
> + flash@2 {
> + compatible = "spansion,s25sl12801";
> + reg = <2>;
> + spi-max-frequency = <40000000>;
> + };
> + flash@3 {
> + compatible = "spansion,s25sl12801";
> + reg = <3>;
> + spi-max-frequency = <40000000>;
> + };
> + };
> +
> dma@21300 {
> #address-cells = <1>;
> #size-cells = <1>;
> diff --git a/arch/powerpc/boot/dts/p4080ds.dts b/arch/powerpc/boot/dts/p4080ds.dts
> index 2f0de24..5b7fc29 100644
> --- a/arch/powerpc/boot/dts/p4080ds.dts
> +++ b/arch/powerpc/boot/dts/p4080ds.dts
> @@ -236,22 +236,19 @@
> };
>
> spi@110000 {
> - cell-index = <0>;
> #address-cells = <1>;
> #size-cells = <0>;
> - compatible = "fsl,espi";
> + compatible = "fsl,p4080-espi", "fsl,mpc8536-espi";
> reg = <0x110000 0x1000>;
> interrupts = <53 0x2>;
> interrupt-parent = <&mpic>;
> - espi,num-ss-bits = <4>;
> - mode = "cpu";
> + fsl,espi-num-chipselects = <4>;
>
> - fsl_m25p80@0 {
> + flash@0 {
> #address-cells = <1>;
> #size-cells = <1>;
> - compatible = "fsl,espi-flash";
> + compatible = "spansion,s25sl12801";
> reg = <0>;
> - linux,modalias = "fsl_m25p80";
> spi-max-frequency = <40000000>; /* input clock */
> partition@u-boot {
> label = "u-boot";
> --
> 1.6.4
>
>
next prev parent reply other threads:[~2010-10-13 3:42 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-12 10:18 [PATCH v4 0/5] refactor spi_mpc8xxx.c and add eSPI controller support Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` [PATCH v4 1/5] spi/mpc8xxx: rename spi_mpc8xxx.c to spi_fsl_spi.c Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` [PATCH v4 2/5] spi/mpc8xxx: refactor the common code for SPI/eSPI controller Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` [PATCH v4 3/5] eSPI: add eSPI controller support Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` [PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` [PATCH v4 5/5] mtd: m25p80: add support to parse the partitions by OF node Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-12 10:18 ` Mingkai Hu
2010-10-13 3:44 ` Grant Likely
2010-10-13 3:44 ` Grant Likely
2010-10-16 19:17 ` Artem Bityutskiy
2010-10-16 19:17 ` Artem Bityutskiy
2010-10-16 19:17 ` Artem Bityutskiy
2010-10-17 1:05 ` Grant Likely
2010-10-17 1:05 ` Grant Likely
2010-10-17 1:05 ` Grant Likely
2010-10-17 7:44 ` Artem Bityutskiy
2010-10-17 7:44 ` Artem Bityutskiy
2010-10-17 7:44 ` Artem Bityutskiy
2010-10-22 6:01 ` Kumar Gala
2010-10-22 6:01 ` Kumar Gala
2010-10-22 7:39 ` Grant Likely
2010-10-13 3:41 ` Grant Likely [this message]
2010-10-13 3:41 ` [PATCH v4 4/5] powerpc/of: add eSPI controller dts bindings and DTS modification Grant Likely
2010-10-13 3:41 ` Grant Likely
2010-10-13 3:41 ` [PATCH v4 3/5] eSPI: add eSPI controller support Grant Likely
2010-10-13 3:41 ` Grant Likely
2010-10-13 3:41 ` Grant Likely
2010-10-13 3:41 ` [PATCH v4 2/5] spi/mpc8xxx: refactor the common code for SPI/eSPI controller Grant Likely
2010-10-13 3:41 ` Grant Likely
2010-10-13 3:41 ` Grant Likely
2010-10-13 3:40 ` [PATCH v4 1/5] spi/mpc8xxx: rename spi_mpc8xxx.c to spi_fsl_spi.c Grant Likely
2010-10-13 3:40 ` 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=20101013034155.GD7254@angua.secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=Mingkai.hu@freescale.com \
--cc=david-b@pacbell.net \
--cc=kumar.gala@freescale.com \
--cc=linux-mtd@lists.infradead.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=tie-fei.zang@freescale.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.