From patchwork Fri Oct 5 10:10:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1552261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id B536F3FCFC for ; Fri, 5 Oct 2012 10:07:22 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TK4mk-0005Zq-Et; Fri, 05 Oct 2012 10:05:34 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TK4mR-0005XP-CS for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 10:05:16 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBF009470096210@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 19:05:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FE.CE.03783.5D0BE605; Fri, 05 Oct 2012 19:05:09 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-2a-506eb0d5cb1d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id AE.CE.03783.5D0BE605; Fri, 05 Oct 2012 19:05:09 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.73.134]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBF00HBA008FE50@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 19:05:08 +0900 (KST) From: Vivek Gautam To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH 2/2] ARM: Exynos5250: Enabling ohci-exynos driver Date: Fri, 05 Oct 2012 15:40:18 +0530 Message-id: <1349431818-15639-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1349431818-15639-1-git-send-email-gautam.vivek@samsung.com> References: <1349431818-15639-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkTvfqhrwAg+P9ghabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugSvj/t025oJe0YrpE+8xNzCuF+xi5OSQEDCReHjoCAuELSZx4d56 ti5GLg4hgaWMEtevT2eBKdpwfC8rRGIRo8TKzq9MEM4eJolvGy8wgVSxCehKNL3dxQhiiwgU Seyb/4MZxGYWSJO4vfc82CRhAUeJk69Ws3cxcnCwCKhKrAbZxsnBK+AhcXppMxvEMgWJN7ef gbVyCnhKtL1qB7OFgGoOHT4PNp5FQEDi2+RDLCBjJARkJTYdYAY5R0LgOpvEg99zGCHmSEoc XHGDZQKj8AJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYgSF4+t8zqR2MKxssDjEKcDAq 8fAmPMwNEGJNLCuuzD3EKMHBrCTCaz07L0CINyWxsiq1KD++qDQntfgQow/QJROZpUST84Hx kVcSb2hsYm5qbGppZGRmaopDWEmct9kjJUBIID2xJDU7NbUgtQhmHBMHp1QDo8KLRL4LCeWv /95+x6jPmrr/yYIV0+YU7zTTstDfv/D86ZjgiDfi6ZkK1UXuqrOrd37yY2OX2/L2ZleFoL2E Wu6pHUsW/9WJFtrz1WLpRqb1qxgk9MTTJXxaz63/t1zMP9dPLOrKgSqrpdt2il3iXebwOLNI /aG1SrClyjsf409P7vpuPJ2SpMRSnJFoqMVcVJwIAFSkbOJuAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xgO7VDXkBBudWcVpsenyN1YHRY/OS +gDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwhrGjPt325gLekUrpk+8x9zA uF6wi5GTQ0LARGLD8b2sELaYxIV769m6GLk4hAQWMUqs7PzKBOHsYZL4tvECE0gVm4CuRNPb XYwgtohAkcS++T+YQWxmgTSJ23vPs4DYwgKOEidfrWbvYuTgYBFQlVgNMpSTg1fAQ+L00mY2 iGUKEm9uPwNr5RTwlGh71Q5mCwHVHDp8nnECI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ +bmbGMEB/kxqB+PKBotDjAIcjEo8vAkPcwOEWBPLiitzDzFKcDArifBaz84LEOJNSaysSi3K jy8qzUktPsToA3TURGYp0eR8YPTllcQbGpuYmxqbWppYmJhZ4hBWEudt9kgJEBJITyxJzU5N LUgtghnHxMEp1cBY+el70bksPuWmPb5ZZ+MDfvVdXK+Z+tcsXdVvQbhSzgVx0WrFpv35347O qvwecE8zI/bHpYTuspA5qk0LNI6aP+BiqM7uCxI/t/+H3OyjJpaxL6Y8yg4yt5n38DRXDLft qqaJz48G6swQuhWpd8/A5lFAzNktb4q8Yn9EpqiVXl7V5PVMTECJpTgj0VCLuag4EQCeWsek nQIAAA== X-CFilter-Loop: Reflected X-Spam-Note: CRM114 invocation failed X-Spam-Score: -9.0 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.1 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: jg1.han@samsung.com, kyungmin.park@samsung.com, kgene.kim@samsung.com, thomas.abraham@linaro.org 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 Adding OHCI device tree node for Exynos5250 along with the device base address. Signed-off-by: Vivek Gautam Acked-by: Jingoo Han --- .../devicetree/bindings/usb/exynos-usb.txt | 15 +++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/include/mach/map.h | 1 + arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 4 files changed, 24 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt index 56e35c7..bff10a8 100644 --- a/Documentation/devicetree/bindings/usb/exynos-usb.txt +++ b/Documentation/devicetree/bindings/usb/exynos-usb.txt @@ -23,3 +23,18 @@ Example: interrupts = <0 71 0>; samsung,vbus-gpio = <&gpx2 6 1 3 3>; }; + +OHCI +Required properties: + - compatible: should be "samsung,exynos-ohci" for USB 2.0 + OHCI companion controller in host mode. + - reg: physical base address of the controller and length of memory mapped + region. + - interrupts: interrupt number to the cpu. + +Example: + ohci { + compatible = "samsung,exynos-ohci"; + reg = <0x12120000 0x100>; + interrupts = <0 71 0>; + }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 73ea844..bcdfbe2 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -224,6 +224,12 @@ interrupts = <0 71 0>; }; + ohci { + compatible = "samsung,exynos-ohci"; + reg = <0x12120000 0x100>; + interrupts = <0 71 0>; + }; + amba { #address-cells = <1>; #size-cells = <1>; diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 825fe40..cfede1f 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -196,6 +196,7 @@ #define EXYNOS4_PA_OHCI 0x12590000 #define EXYNOS4_PA_HSPHY 0x125B0000 #define EXYNOS5_PA_EHCI 0x12110000 +#define EXYNOS5_PA_OHCI 0x12120000 #define EXYNOS4_PA_MFC 0x13400000 #define EXYNOS4_PA_UART 0x13800000 diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index 6d950d7b..e6c2144 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -74,6 +74,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "exynos-gsc.3", NULL), OF_DEV_AUXDATA("samsung,exynos-ehci", EXYNOS5_PA_EHCI, "s5p-ehci", NULL), + OF_DEV_AUXDATA("samsung,exynos-ohci", EXYNOS5_PA_OHCI, + "exynos-ohci", NULL), {}, };