From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@lunn.ch (Andrew Lunn) Date: Tue, 18 Dec 2012 17:28:04 +0100 Subject: [PATCH 12/18] arm: kirkwood: dreamplug: use Device Tree to probe SDIO In-Reply-To: <1355841243-3254-13-git-send-email-thomas.petazzoni@free-electrons.com> References: <1355841243-3254-1-git-send-email-thomas.petazzoni@free-electrons.com> <1355841243-3254-13-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <20121218162804.GJ3392@lunn.ch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Dec 18, 2012 at 03:33:57PM +0100, Thomas Petazzoni wrote: > Now that the mvsdio driver has a Device Tree binding, and the SDIO > controller is declared in kirkwood.dtsi, migrate the dreamplug board > to use the Device Tree to probe the SDIO controller. Hi Thomas It would be nice to add pinctrl to this. The likely pins are defined in kirkwood-6281.dtsi. dreamplug does not define hogs for these pins, so its relying on grub setting them up and nothing changing them. Maybe Jason can do this? > Signed-off-by: Thomas Petazzoni > Cc: Jason Cooper > --- > arch/arm/boot/dts/kirkwood-dreamplug.dts | 5 +++++ > arch/arm/mach-kirkwood/board-dreamplug.c | 5 ----- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/arm/boot/dts/kirkwood-dreamplug.dts b/arch/arm/boot/dts/kirkwood-dreamplug.dts > index f2d386c..0fceb76 100644 > --- a/arch/arm/boot/dts/kirkwood-dreamplug.dts > +++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts > @@ -74,6 +74,11 @@ > status = "okay"; > nr-ports = <1>; > }; > + > + mvsdio at 90000 { > + status = "okay"; > + /* No CD or WP GPIOs */ > + }; > }; > > gpio-leds { > diff --git a/arch/arm/mach-kirkwood/board-dreamplug.c b/arch/arm/mach-kirkwood/board-dreamplug.c > index 08248e2..b712b7f 100644 > --- a/arch/arm/mach-kirkwood/board-dreamplug.c > +++ b/arch/arm/mach-kirkwood/board-dreamplug.c There is probably a header file which can be removed as well. Thanks Andrew > @@ -26,10 +26,6 @@ static struct mv643xx_eth_platform_data dreamplug_ge01_data = { > .phy_addr = MV643XX_ETH_PHY_ADDR(1), > }; > > -static struct mvsdio_platform_data dreamplug_mvsdio_data = { > - /* unfortunately the CD signal has not been connected */ > -}; > - > void __init dreamplug_init(void) > { > /* > @@ -37,5 +33,4 @@ void __init dreamplug_init(void) > */ > kirkwood_ge00_init(&dreamplug_ge00_data); > kirkwood_ge01_init(&dreamplug_ge01_data); > - kirkwood_sdio_init(&dreamplug_mvsdio_data); > } > -- > 1.7.9.5 >