From patchwork Thu Nov 8 06:54:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1713921 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 B5ECA3FC8F for ; Thu, 8 Nov 2012 06:52:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWLxP-0005MR-HH; Thu, 08 Nov 2012 06:51:19 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWLxK-0005Kr-SZ for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 06:51:16 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD5000KKPO87AP0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 15:51:12 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 89.6E.01231.0665B905; Thu, 08 Nov 2012 15:51:12 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-2c-509b5660e0b2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 09.6E.01231.0665B905; Thu, 08 Nov 2012 15:51:12 +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 <0MD500GFCPKQRE20@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 15:51:12 +0900 (KST) From: Vivek Gautam To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH v2 2/2] ARM: Exynos5250: Enabling ohci-exynos driver Date: Thu, 08 Nov 2012 12:24:25 +0530 Message-id: <1352357665-7435-3-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1352357665-7435-1-git-send-email-gautam.vivek@samsung.com> References: <1352357665-7435-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsWyRsSkSjchbHaAwbJ3yhabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugSvjw6cG5oJTohVb27UaGJ8LdjFyckgImEjseLmeHcIWk7hwbz0b iC0ksJRR4ul/B5ia6Qv7gWq4gOKLGCW+3T/DBuHsYZK40fEBrJtNQFei6e0uRhBbRKBI4uDq 8ywgRcwCjYwSvQ/7mUASwgIuElOubGEGsVkEVCVe7p4Cto5XwF1i8+wnUGcoSLy5/QyohoOD U8BDYt7CMoiL3CXmLPjPDtEqIPFt8iEWkBIJAVmJTQeYITovs0nM3iAKYUtKHFxxg2UCo/AC RoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGIHhd/rfM6kdjCsbLA4xCnAwKvHwakjODhBi TSwrrsw9xCjBwawkwrvMGSjEm5JYWZValB9fVJqTWnyI0QfokInMUqLJ+cDYyCuJNzQ2MTc1 NrU0MjIzNcUhrCTO2+yREiAkkJ5YkpqdmlqQWgQzjomDU6qBUWHS1ST58plxKanBB/06O8t3 pW8rLjk5+aGU9JQVbyw+HWXbfbx18sI/N+Jepaw3VFvy5O75vJMzhBPdZ3i/MA47tOzz9/+B z6qYFzZu2rZZJdL10s/P0XvF9sS+vmgj/lLo/PK5HplllQ+rL+//Ff8j1JazM2piZ2n4vHuM E/VPn6pf6TLZJ1aJpTgj0VCLuag4EQDDO8cKbAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xgG5C2OwAg4YjYhabHl9jdWD02Lyk PoAxqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdo qpJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsIYx48OnBuaCU6IVW9u1Ghif C3YxcnJICJhITF/Yzw5hi0lcuLeerYuRi0NIYBGjxLf7Z6CcPUwSNzo+gFWxCehKNL3dxQhi iwgUSRxcfZ4FpIhZoJFRovdhPxNIQljARWLKlS3MIDaLgKrEy91T2EBsXgF3ic2zn0CtU5B4 c/sZUA0HB6eAh8S8hWUgYSGgkjkL/rNPYORdwMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93 EyM4wJ9J7WBc2WBxiFGAg1GJh1dDcnaAEGtiWXFl7iFGCQ5mJRHeZc5AId6UxMqq1KL8+KLS nNTiQ4w+QEdNZJYSTc4HRl9eSbyhsYm5qbGppYmFiZklDmElcd5mj5QAIYH0xJLU7NTUgtQi mHFMHJxSDYxGXaeTpjA/Pt10aPWaszd390mpK2nOWbThofgmmTvy+uZRHGHndE8onph65bPa qkLzmIiG1yI1ixdX75xYuTNrYf3znjPZc9MzHBat2OohMqf+KxPvuu+Bp7NPLmB94iL1t/9u l2Ultw7fw9otC2dkmCxdE2/3WT0qycd5lfw0Nuv+FxtsfViUWIozEg21mIuKEwGFNctJnQIA AA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121108_015115_224979_837D99BB X-CRM114-Status: GOOD ( 11.30 ) X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 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, kgene.kim@samsung.com, kyungmin.park@samsung.com, linux-usb@vger.kernel.org, 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 833f5cf..5ff3def1 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: + usb@12120000 { + 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 2995445..f18abe0 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -244,6 +244,12 @@ interrupts = <0 71 0>; }; + usb@12120000 { + 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 9a86b99..471ffaf 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -198,6 +198,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 f60994e..6348acb 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -88,6 +88,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "exynos5-mixer", 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), {}, };