From patchwork Mon Sep 17 14:04:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Christophe PLAGNIOL-VILLARD X-Patchwork-Id: 184420 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 267122C0087 for ; Tue, 18 Sep 2012 00:10:50 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TDbya-0003u7-DD; Mon, 17 Sep 2012 14:07:04 +0000 Received: from 14.mo5.mail-out.ovh.net ([188.165.51.82] helo=mo5.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TDbyV-0003sx-RL for linux-arm-kernel@lists.infradead.org; Mon, 17 Sep 2012 14:07:01 +0000 Received: from mail404.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 7C75BFFB0D6 for ; Mon, 17 Sep 2012 16:12:41 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 17 Sep 2012 16:08:05 +0200 Received: from ns32433.ovh.net (HELO localhost) (plagnioj%jcrosoft.com@213.251.161.87) by ns0.ovh.net with SMTP; 17 Sep 2012 16:08:05 +0200 Date: Mon, 17 Sep 2012 16:04:23 +0200 From: Jean-Christophe PLAGNIOL-VILLARD To: Linus Walleij , linux-arm-kernel@lists.infradead.org X-Ovh-Mailout: 178.32.228.5 (mo5.mail-out.ovh.net) Subject: [PATCH 00/16 v2] ARM: at91: add pinctrl support Message-ID: <20120917140423.GA17667@game.jcrosoft.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Ovh-Tracer-Id: 3370099897135770589 X-Ovh-Remote: 213.251.161.87 (ns32433.ovh.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehtddrjedtucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfhrhhomheplfgvrghnqdevhhhrihhsthhophhhvgcurffntefipffkqffnqdggkffnnfettfffuceophhlrghgnhhiohhjsehjtghrohhsohhfthdrtghomheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfjughrpeffhfhsvffukfggtggufgesthdttfdttdervd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehtddrjedtucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfhrhhomheplfgvrghnqdevhhhrihhsthhophhhvgcurffntefipffkqffnqdggkffnnfettfffuceophhlrghgnhhiohhjsehjtghrohhsohhfthdrtghomheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfjughrpeffhfhsvffukfggtggufgesthdttfdttdervd X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [188.165.51.82 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Nicolas Ferre X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi, This patch series introduce the pinctrl on AT91 on all the DT Soc. THe pinctrl is limited to only the DT. Old code still use the custom at91 pin mux api. v2: - switch to relaxed readl/writel - fix comment - update Documentation The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0: Linux 3.6-rc3 (2012-08-22 13:29:06 -0700) are available in the git repository at: git://github.com/at91linux/linux-at91.git tags/pinctrl for you to fetch changes up to b4476c3ac112071f629744a405c913b8fca64991: MTD: atmel_nand: add pinctrl consumer support (2012-09-17 18:00:43 +0800) ---------------------------------------------------------------- ARM: at91: add pinctrl support On DT switch from custom pin mux to pinctrl switch the gpio driver to pinctrl too as on at91 the same API do both GPIO and pin mux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD ---------------------------------------------------------------- Jean-Christophe PLAGNIOL-VILLARD (16): ARM: at91: fix missing #interrupt-cells on gpio-controller arm: at91: use macro to declare soc boot data ARM: at91: gpio: implement request at91: regroup gpio and pinctrl under the same ranges arm: at91: at91sam9x5: fix gpio number per bank ARM: at91: add dummies pinctrl for non dt platform ARM: at91: add pinctrl support arm: at91: dt: at91sam9 add pinctrl support arm: at91: dt: at91sam9 add serial pinctrl support tty: atmel_serial: add pinctrl support arm: at91: dt: sam9m10g45ek: use rts/cts pinctrl group for uart1 arm: at91: dt: sam9263ek: use rts/cts pinctrl group for uart0 arm: at91: dt: sam9g20ek: use rts/cts/dtr/dsr/dcd/ri pinctrl group for uart0 MTD: atmel nand: fix gpio missing request arm: at91: dt: at91sam9 add nand pinctrl support MTD: atmel_nand: add pinctrl consumer support Documentation/devicetree/bindings/gpio/gpio_atmel.txt | 5 + Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt | 136 ++++++++++++ arch/arm/Kconfig | 2 + arch/arm/boot/dts/at91sam9260.dtsi | 184 ++++++++++++++-- arch/arm/boot/dts/at91sam9263.dtsi | 168 +++++++++++---- arch/arm/boot/dts/at91sam9263ek.dts | 1 + arch/arm/boot/dts/at91sam9g15.dtsi | 28 +++ arch/arm/boot/dts/at91sam9g15ek.dts | 16 ++ arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 6 + arch/arm/boot/dts/at91sam9g25.dtsi | 28 +++ arch/arm/boot/dts/at91sam9g25ek.dts | 37 +--- arch/arm/boot/dts/at91sam9g35.dtsi | 28 +++ arch/arm/boot/dts/at91sam9g35ek.dts | 16 ++ arch/arm/boot/dts/at91sam9g45.dtsi | 184 ++++++++++++---- arch/arm/boot/dts/at91sam9m10g45ek.dts | 1 + arch/arm/boot/dts/at91sam9n12.dtsi | 176 +++++++++++++--- arch/arm/boot/dts/at91sam9x25.dtsi | 28 +++ arch/arm/boot/dts/at91sam9x25ek.dts | 16 ++ arch/arm/boot/dts/at91sam9x35.dtsi | 28 +++ arch/arm/boot/dts/at91sam9x35ek.dts | 16 ++ arch/arm/boot/dts/at91sam9x5.dtsi | 174 ++++++++++++--- arch/arm/boot/dts/at91sam9x5ek.dtsi | 47 +++++ arch/arm/configs/at91_dt_defconfig | 1 + arch/arm/mach-at91/Makefile.boot | 4 + arch/arm/mach-at91/at91rm9200.c | 4 +- arch/arm/mach-at91/at91sam9260.c | 7 +- arch/arm/mach-at91/at91sam9261.c | 4 +- arch/arm/mach-at91/at91sam9263.c | 9 +- arch/arm/mach-at91/at91sam9g45.c | 10 +- arch/arm/mach-at91/at91sam9n12.c | 15 +- arch/arm/mach-at91/at91sam9rl.c | 4 +- arch/arm/mach-at91/at91sam9x5.c | 19 +- arch/arm/mach-at91/board-dt.c | 2 - arch/arm/mach-at91/gpio.c | 190 +++-------------- arch/arm/mach-at91/setup.c | 6 +- arch/arm/mach-at91/soc.h | 12 +- drivers/mtd/nand/atmel_nand.c | 59 +++++- drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-at91.c | 1490 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/tty/serial/atmel_serial.c | 8 + 41 files changed, 2781 insertions(+), 398 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt create mode 100644 arch/arm/boot/dts/at91sam9g15.dtsi create mode 100644 arch/arm/boot/dts/at91sam9g15ek.dts create mode 100644 arch/arm/boot/dts/at91sam9g25.dtsi create mode 100644 arch/arm/boot/dts/at91sam9g35.dtsi create mode 100644 arch/arm/boot/dts/at91sam9g35ek.dts create mode 100644 arch/arm/boot/dts/at91sam9x25.dtsi create mode 100644 arch/arm/boot/dts/at91sam9x25ek.dts create mode 100644 arch/arm/boot/dts/at91sam9x35.dtsi create mode 100644 arch/arm/boot/dts/at91sam9x35ek.dts create mode 100644 arch/arm/boot/dts/at91sam9x5ek.dtsi create mode 100644 drivers/pinctrl/pinctrl-at91.c Best Regards, J. Acked-by: Nicolas Ferre