From patchwork Fri Sep 28 14:28:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1519961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D68FBDF283 for ; Fri, 28 Sep 2012 14:39:21 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1THbgH-0007Qg-RP; Fri, 28 Sep 2012 14:36:42 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1THba5-0003iR-MY for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 14:30:22 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MB200ISDDKYMT10@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 23:30:16 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-06-5065b47866ff Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 7D.9D.03860.874B5605; Fri, 28 Sep 2012 23:30:16 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MB200E7BDK3XB70@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 23:30:16 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 15/16] ARM: dts: exynos4210: Add platform-specific descriptions for pin controllers Date: Fri, 28 Sep 2012 16:28:46 +0200 Message-id: <1348842527-22460-16-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1348842527-22460-1-git-send-email-t.figa@samsung.com> References: <1348842527-22460-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAd2KLakBBocXy1psenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6MnS8fMhW8Tq/o3zOVuYFxk38XIyeHhICJRMfFGawQtpjEhXvr 2boYuTiEBBYxSnQvfQrlbGaSaJ41gR2kik1ATeJzwyM2EFtEQENiStdjsDizwGQmiWML0kFs YYFMiQdHpjOD2CwCqhJTnh9lAbF5BZwllizezQKxTV7i6f0+oDkcHJxA8bXzNEDCQgJOEv1/ GlgmMPIuYGRYxSiaWpBcUJyUnmukV5yYW1yal66XnJ+7iRHs8WfSOxhXNVgcYhTgYFTi4b0x PyVAiDWxrLgy9xCjBAezkghvRnFqgBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeZg+gaoH0xJLU 7NTUgtQimCwTB6dUA2PjbRZJsT0Fjx3t5346bVNR8uLv6mtTr/ZoGgt+EbkwT2s+35yUHwe4 4moF/n2cJuTU+Ur4o9a0GWXX/21rC70pv52dfzHjlAdb7KMurZsUd2t6ze1OvmuRcXsf7Dzq 84h12aWsnQ+KtnY07PK28wl6FWEdJFHyJ6IwdeY07hkiS32/rYwov+avxFKckWioxVxUnAgA 4LlU8PQBAAA= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.8 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, swarren@wwwdotorg.org, devicetree-discuss@lists.ozlabs.org, tomasz.figa@gmail.com, t.figa@samsung.com, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.org, linus.walleij@linaro.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The patch "pinctrl: samsung: Parse pin banks from DT" introduced platform-specific data parsing from DT. This patch adds all necessary nodes and properties to exynos4210 device tree sources. Signed-off-by: Tomasz Figa --- arch/arm/boot/dts/exynos4210-pinctrl-banks.dtsi | 459 ++++++++++++++++++++++++ arch/arm/boot/dts/exynos4210-pinctrl.dtsi | 2 + arch/arm/boot/dts/exynos4210.dtsi | 25 +- 3 files changed, 474 insertions(+), 12 deletions(-) create mode 100644 arch/arm/boot/dts/exynos4210-pinctrl-banks.dtsi diff --git a/arch/arm/boot/dts/exynos4210-pinctrl-banks.dtsi b/arch/arm/boot/dts/exynos4210-pinctrl-banks.dtsi new file mode 100644 index 0000000..457d28a --- /dev/null +++ b/arch/arm/boot/dts/exynos4210-pinctrl-banks.dtsi @@ -0,0 +1,459 @@ +/* + * Samsung's Exynos4210 SoC pinctrl banks device tree source + * + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * Samsung's Exynos4210 SoC pin banks are listed as device tree nodes + * in this file. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/ { + pinctrl-bank-types { + bank_off: bank-off { + samsung,reg-names = "func", "dat", "pud", + "drv", "conpdn", "pudpdn"; + samsung,reg-params = <0x00 4>, <0x04 1>, <0x08 2>, + <0x0C 2>, <0x10 2>, <0x14 2>; + }; + + bank_alive: bank-alive { + samsung,reg-names = "func", "dat", "pud", + "drv"; + samsung,reg-params = <0x00 4>, <0x04 1>, <0x08 2>, + <0x0C 2>; + }; + }; + + pinctrl@11400000 { + gpa0: gpa0 { + gpio-controller; + samsung,pctl-offset = <0x000>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x00>; + #interrupt-cells = <2>; + }; + + gpa1: gpa1 { + gpio-controller; + samsung,pctl-offset = <0x020>; + samsung,pin-count = <6>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x04>; + #interrupt-cells = <2>; + }; + + gpb: gpb { + gpio-controller; + samsung,pctl-offset = <0x040>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x08>; + #interrupt-cells = <2>; + }; + + gpc0: gpc0 { + gpio-controller; + samsung,pctl-offset = <0x060>; + samsung,pin-count = <5>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x0C>; + #interrupt-cells = <2>; + }; + + gpc1: gpc1 { + gpio-controller; + samsung,pctl-offset = <0x080>; + samsung,pin-count = <5>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x10>; + #interrupt-cells = <2>; + }; + + gpd0: gpd0 { + gpio-controller; + samsung,pctl-offset = <0x0A0>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x14>; + #interrupt-cells = <2>; + }; + + gpd1: gpd1 { + gpio-controller; + samsung,pctl-offset = <0x0C0>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x18>; + #interrupt-cells = <2>; + }; + + gpe0: gpe0 { + gpio-controller; + samsung,pctl-offset = <0x0E0>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x1C>; + #interrupt-cells = <2>; + }; + + gpe1: gpe1 { + gpio-controller; + samsung,pctl-offset = <0x100>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x20>; + #interrupt-cells = <2>; + }; + + gpe2: gpe2 { + gpio-controller; + samsung,pctl-offset = <0x120>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x24>; + #interrupt-cells = <2>; + }; + + gpe3: gpe3 { + gpio-controller; + samsung,pctl-offset = <0x140>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x28>; + #interrupt-cells = <2>; + }; + + gpe4: gpe4 { + gpio-controller; + samsung,pctl-offset = <0x160>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x2C>; + #interrupt-cells = <2>; + }; + + gpf0: gpf0 { + gpio-controller; + samsung,pctl-offset = <0x180>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x30>; + #interrupt-cells = <2>; + }; + + gpf1: gpf1 { + gpio-controller; + samsung,pctl-offset = <0x1A0>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x34>; + #interrupt-cells = <2>; + }; + + gpf2: gpf2 { + gpio-controller; + samsung,pctl-offset = <0x1C0>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x38>; + #interrupt-cells = <2>; + }; + + gpf3: gpf3 { + gpio-controller; + samsung,pctl-offset = <0x1E0>; + samsung,pin-count = <6>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x3C>; + #interrupt-cells = <2>; + }; + }; + + pinctrl@11000000 { + gpj0: gpj0 { + gpio-controller; + samsung,pctl-offset = <0x000>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x00>; + #interrupt-cells = <2>; + }; + + gpj1: gpj1 { + gpio-controller; + samsung,pctl-offset = <0x020>; + samsung,pin-count = <5>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x04>; + #interrupt-cells = <2>; + }; + + gpk0: gpk0 { + gpio-controller; + samsung,pctl-offset = <0x040>; + samsung,pin-count = <7>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x08>; + #interrupt-cells = <2>; + }; + + gpk1: gpk1 { + gpio-controller; + samsung,pctl-offset = <0x060>; + samsung,pin-count = <7>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x0C>; + #interrupt-cells = <2>; + }; + + gpk2: gpk2 { + gpio-controller; + samsung,pctl-offset = <0x080>; + samsung,pin-count = <7>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x10>; + #interrupt-cells = <2>; + }; + + gpk3: gpk3 { + gpio-controller; + samsung,pctl-offset = <0x0A0>; + samsung,pin-count = <7>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x14>; + #interrupt-cells = <2>; + }; + + gpl0: gpl0 { + gpio-controller; + samsung,pctl-offset = <0x0C0>; + samsung,pin-count = <7>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x18>; + #interrupt-cells = <2>; + }; + + gpl1: gpl1 { + gpio-controller; + samsung,pctl-offset = <0x0E0>; + samsung,pin-count = <2>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x1C>; + #interrupt-cells = <2>; + }; + + gpl2: gpl2 { + gpio-controller; + samsung,pctl-offset = <0x100>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,eint-offset = <0x20>; + #interrupt-cells = <2>; + }; + + gpy0: gpy0 { + gpio-controller; + samsung,pctl-offset = <0x120>; + samsung,pin-count = <6>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpy1: gpy1 { + gpio-controller; + samsung,pctl-offset = <0x140>; + samsung,pin-count = <4>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpy2: gpy2 { + gpio-controller; + samsung,pctl-offset = <0x160>; + samsung,pin-count = <6>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpy3: gpy3 { + gpio-controller; + samsung,pctl-offset = <0x180>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpy4: gpy4 { + gpio-controller; + samsung,pctl-offset = <0x1A0>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpy5: gpy5 { + gpio-controller; + samsung,pctl-offset = <0x1C0>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpy6: gpy6 { + gpio-controller; + samsung,pctl-offset = <0x1E0>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + + gpx0: gpx0 { + gpio-controller; + samsung,pctl-offset = <0xC00>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_alive>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,wkup-eint; + interrupt-parent = <&gic>; + interrupts = <0 16 0>, <0 17 0>, <0 18 0>, <0 19 0>, + <0 20 0>, <0 21 0>, <0 22 0>, <0 23 0>; + samsung,eint-offset = <0x00>; + #interrupt-cells = <2>; + }; + + gpx1: gpx1 { + gpio-controller; + samsung,pctl-offset = <0xC20>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_alive>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,wkup-eint; + interrupt-parent = <&gic>; + interrupts = <0 24 0>, <0 25 0>, <0 26 0>, <0 27 0>, + <0 28 0>, <0 29 0>, <0 30 0>, <0 31 0>; + samsung,eint-offset = <0x04>; + #interrupt-cells = <2>; + }; + + gpx2: gpx2 { + gpio-controller; + samsung,pctl-offset = <0xC40>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_alive>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,wkup-eint; + samsung,eint-offset = <0x08>; + #interrupt-cells = <2>; + }; + + gpx3: gpx3 { + gpio-controller; + samsung,pctl-offset = <0xC60>; + samsung,pin-count = <8>; + samsung,bank-type = <&bank_alive>; + #gpio-cells = <2>; + + interrupt-controller; + samsung,wkup-eint; + samsung,eint-offset = <0x0C>; + #interrupt-cells = <2>; + }; + }; + + pinctrl@03860000 { + gpz: gpz { + gpio-controller; + samsung,pctl-offset = <0x000>; + samsung,pin-count = <7>; + samsung,bank-type = <&bank_off>; + #gpio-cells = <2>; + }; + }; +}; diff --git a/arch/arm/boot/dts/exynos4210-pinctrl.dtsi b/arch/arm/boot/dts/exynos4210-pinctrl.dtsi index b12cf27..94846d5 100644 --- a/arch/arm/boot/dts/exynos4210-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos4210-pinctrl.dtsi @@ -14,6 +14,8 @@ * published by the Free Software Foundation. */ +/include/ "exynos4210-pinctrl-banks.dtsi" + / { pinctrl@11400000 { uart0_data: uart0-data { diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index ecbc707..f2f6ef5 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -58,27 +58,28 @@ compatible = "samsung,pinctrl-exynos4210"; reg = <0x11400000 0x1000>; interrupts = <0 47 0>; - interrupt-controller; - #interrupt-cells = <2>; + samsung,geint-con = <0x700>; + samsung,geint-mask = <0x900>; + samsung,geint-pend = <0xA00>; + samsung,svc = <0xB08>; }; pinctrl_1: pinctrl@11000000 { compatible = "samsung,pinctrl-exynos4210"; reg = <0x11000000 0x1000>; interrupts = <0 46 0>; - interrupt-controller; - #interrupt-cells = <2>; + samsung,geint-con = <0x700>; + samsung,geint-mask = <0x900>; + samsung,geint-pend = <0xA00>; + samsung,svc = <0xB08>; - wakup_eint: wakeup-interrupt-controller { + wakeup-interrupt-controller { compatible = "samsung,exynos4210-wakeup-eint"; interrupt-parent = <&gic>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = <0 16 0>, <0 17 0>, <0 18 0>, <0 19 0>, - <0 20 0>, <0 21 0>, <0 22 0>, <0 23 0>, - <0 24 0>, <0 25 0>, <0 26 0>, <0 27 0>, - <0 28 0>, <0 29 0>, <0 30 0>, <0 31 0>, - <0 32 0>; + interrupts = <0 32 0>; + samsung,weint-con = <0xE00>; + samsung,weint-mask = <0xF00>; + samsung,weint-pend = <0xF40>; }; };