From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Baatz Subject: [PATCH 0/3] ARM: Kirkwood: Add DT support for (eSATA) Sheevaplug Date: Mon, 22 Apr 2013 21:54:57 +0200 Message-ID: <1366660500-26835-1-git-send-email-gmbnomis@gmail.com> Return-path: Received: from mail-we0-f175.google.com ([74.125.82.175]:49806 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754961Ab3DVTzS (ORCPT ); Mon, 22 Apr 2013 15:55:18 -0400 Received: by mail-we0-f175.google.com with SMTP id t11so6958103wey.20 for ; Mon, 22 Apr 2013 12:55:16 -0700 (PDT) Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Cc: jason@lakedaemon.net, andrew@lunn.ch, cjb@laptop.org, thomas.petazzoni@free-electrons.com These patches add DT support for the Sheevaplugs by Globalscale Technologies. There exists two versions, one with an eSATA port and one without. Surprisingly, the conversion was not straight forward. In the eSATA version (board revision 1.3), the CD and WP pins are connected to GPIO lines, but I could not get this to work. Apparently, I am not the only one ([1]). I found that the pins are reversed on my hardware and use different active low/active high settings. Thus, the first patch adds support for the GPIO active low/high flag in DT to the mvsdio driver. With that, everything except the Gigabit Ethernet can be described in the DTS. I have split the DTS and the board support files into two patches. This way, we can drop the last patch once we can describe everything in the DTS or we can squash them together if we don't want to wait. I could only test on an eSATA Sheevaplug. I found patches with different LEDs for the Sheevaplug. Thus, I would highly appreciate if someone with the hardware could give this a spin on a non-eSATA version. Some additional testing of the change detect and write protect behaviour for sdio can't hurt either. I hope that there aren't board revisions with different CD/WP pins out there. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-August/062567.html Simon Baatz (3): mmc: mvsdio: Support inverted CD and WP GPIO lines ARM: Kirkwood: Add dts files for Sheevaplug and eSATA Sheevaplug ARM: Kirkwood: Add DT support for Sheevaplug and Sheevaplug eSATA arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/kirkwood-mplcec4.dts | 2 +- arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi | 97 +++++++++++++++++++++ arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts | 40 +++++++++ arch/arm/boot/dts/kirkwood-sheevaplug.dts | 43 +++++++++ arch/arm/mach-kirkwood/Kconfig | 7 ++ arch/arm/mach-kirkwood/Makefile | 1 + arch/arm/mach-kirkwood/board-dt.c | 4 + arch/arm/mach-kirkwood/board-sheevaplug.c | 27 ++++++ arch/arm/mach-kirkwood/common.h | 5 ++ drivers/mmc/host/mvsdio.c | 14 ++- 11 files changed, 239 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi create mode 100644 arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts create mode 100644 arch/arm/boot/dts/kirkwood-sheevaplug.dts create mode 100644 arch/arm/mach-kirkwood/board-sheevaplug.c -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: gmbnomis@gmail.com (Simon Baatz) Date: Mon, 22 Apr 2013 21:54:57 +0200 Subject: [PATCH 0/3] ARM: Kirkwood: Add DT support for (eSATA) Sheevaplug Message-ID: <1366660500-26835-1-git-send-email-gmbnomis@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org These patches add DT support for the Sheevaplugs by Globalscale Technologies. There exists two versions, one with an eSATA port and one without. Surprisingly, the conversion was not straight forward. In the eSATA version (board revision 1.3), the CD and WP pins are connected to GPIO lines, but I could not get this to work. Apparently, I am not the only one ([1]). I found that the pins are reversed on my hardware and use different active low/active high settings. Thus, the first patch adds support for the GPIO active low/high flag in DT to the mvsdio driver. With that, everything except the Gigabit Ethernet can be described in the DTS. I have split the DTS and the board support files into two patches. This way, we can drop the last patch once we can describe everything in the DTS or we can squash them together if we don't want to wait. I could only test on an eSATA Sheevaplug. I found patches with different LEDs for the Sheevaplug. Thus, I would highly appreciate if someone with the hardware could give this a spin on a non-eSATA version. Some additional testing of the change detect and write protect behaviour for sdio can't hurt either. I hope that there aren't board revisions with different CD/WP pins out there. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-August/062567.html Simon Baatz (3): mmc: mvsdio: Support inverted CD and WP GPIO lines ARM: Kirkwood: Add dts files for Sheevaplug and eSATA Sheevaplug ARM: Kirkwood: Add DT support for Sheevaplug and Sheevaplug eSATA arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/kirkwood-mplcec4.dts | 2 +- arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi | 97 +++++++++++++++++++++ arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts | 40 +++++++++ arch/arm/boot/dts/kirkwood-sheevaplug.dts | 43 +++++++++ arch/arm/mach-kirkwood/Kconfig | 7 ++ arch/arm/mach-kirkwood/Makefile | 1 + arch/arm/mach-kirkwood/board-dt.c | 4 + arch/arm/mach-kirkwood/board-sheevaplug.c | 27 ++++++ arch/arm/mach-kirkwood/common.h | 5 ++ drivers/mmc/host/mvsdio.c | 14 ++- 11 files changed, 239 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi create mode 100644 arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts create mode 100644 arch/arm/boot/dts/kirkwood-sheevaplug.dts create mode 100644 arch/arm/mach-kirkwood/board-sheevaplug.c -- 1.7.9.5