[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120314072839.GH18320@game.jcrosoft.org>
Date: Wed, 14 Mar 2012 08:28:39 +0100
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com>
To: Dong Aisheng <b29396@...escale.com>
Cc: devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
linux-mmc@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
vinod.koul@...ux.intel.com, s.hauer@...gutronix.de,
rob.herring@...xeda.com, rdunlap@...otime.net,
kernel@...gutronix.de, cjb@...top.org
Subject: Re: [PATCH v1 3/5] ARM: imx28evk: add mmc dt support
On 16:47 Tue 13 Mar , Dong Aisheng wrote:
> From: Dong Aisheng <dong.aisheng@...aro.org>
>
> Signed-off-by: Dong Aisheng <dong.aisheng@...aro.org>
> ---
> arch/arm/boot/dts/imx28-evk.dts | 14 ++++++++++++++
> arch/arm/boot/dts/imx28.dtsi | 33 +++++++++++++++++++++++++++++++++
> arch/arm/mach-mxs/imx28-dt.c | 2 ++
> 3 files changed, 49 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts
> index 9758dc4..61350ab 100644
> --- a/arch/arm/boot/dts/imx28-evk.dts
> +++ b/arch/arm/boot/dts/imx28-evk.dts
> @@ -21,6 +21,20 @@
> reg = <0x40000000 0x08000000>;
> };
>
> + apb@...00000 {
> + apbh@...00000 {
> + mmc1: ssp@...10000 {
> + slot-8bit;
> + status = "okay";
> + };
> +
> + mmc2: ssp@...12000 {
> + slot-8bit;
> + status = "okay";
> + };
> + };
> + };
> +
> ahb@...80000 {
> fec@...f0000 {
> phy-mode = "rmii";
> diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
> index acf0dab..71c7bfb 100644
> --- a/arch/arm/boot/dts/imx28.dtsi
> +++ b/arch/arm/boot/dts/imx28.dtsi
> @@ -46,6 +46,39 @@
> #interrupt-cells = <1>;
> reg = <0x80000000 0x2000>;
> };
> +
> + ssp@...10000 {
> + compatible = "fsl,imx28-mmc";
> + reg = <0x80010000 2000>;
> + /* <irq_err irq_dma> */
> + interrupts = <96 82>;
> + dma_channel = <0>;
> + status = "disabled";
> + };
> +
> + ssp@...12000 {
> + compatible = "fsl,imx28-mmc";
> + reg = <0x80012000 2000>;
> + interrupts = <97 83>;
> + dma_channel = <1>;
> + status = "disabled";
> + };
> +
> + ssp@...14000 {
> + compatible = "fsl,imx28-mmc";
> + reg = <0x80014000 2000>;
> + interrupts = <98 84>;
> + dma_channel = <2>;
> + status = "disabled";
> + };
> +
> + ssp@...16000 {
> + compatible = "fsl,imx28-mmc";
> + reg = <0x80016000 2000>;
> + interrupts = <99 85>;
> + dma_channel = <3>;
> + status = "disabled";
> + };
> };
>
> apbx@...40000 {
> diff --git a/arch/arm/mach-mxs/imx28-dt.c b/arch/arm/mach-mxs/imx28-dt.c
> index 78d1129..429b88e 100644
> --- a/arch/arm/mach-mxs/imx28-dt.c
> +++ b/arch/arm/mach-mxs/imx28-dt.c
> @@ -23,6 +23,8 @@ static const struct of_dev_auxdata imx28_auxdata_lookup[] __initconst = {
> OF_DEV_AUXDATA("arm,pl011", MX28_DUART_BASE_ADDR, "duart", NULL),
> OF_DEV_AUXDATA("fsl,imx28-fec", MX28_ENET_MAC0_BASE_ADDR, "imx28-fec.0", NULL),
> OF_DEV_AUXDATA("fsl,imx28-fec", MX28_ENET_MAC1_BASE_ADDR, "imx28-fec.1", NULL),
> + OF_DEV_AUXDATA("fsl,imx28-mmc", MX28_SSP0_BASE_ADDR, "mxs-mmc.0", NULL),
> + OF_DEV_AUXDATA("fsl,imx28-mmc", MX28_SSP1_BASE_ADDR, "mxs-mmc.1", NULL),
do we really need to continue to add OF_DEV_AUXDATA
instead add a clkdev entry
IIRC OF_DEV_AUXDATA was a temporary solution, we need to stop to use it more
and more
Best Reards,
J.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists