From patchwork Thu Nov 8 08:21:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1714431 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 C8D76DF230 for ; Thu, 8 Nov 2012 08:18:32 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWNIB-0001pI-Sj; Thu, 08 Nov 2012 08:16:52 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWNI8-0001oW-Dv for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 08:16:49 +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 <0MD5000ZTTN07AT0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 17:16:47 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 46.BD.01231.F6A6B905; Thu, 08 Nov 2012 17:16:47 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-4e-509b6a6f2d43 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 85.BD.01231.F6A6B905; Thu, 08 Nov 2012 17:16:47 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.73.134]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD500KO9TLMRZ30@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 17:16:47 +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 13:51:21 +0530 Message-id: <1352362881-14653-1-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: References: DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkWjc/a3aAwaLTYhabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugSvjxIUPTAUnRCtmX29haWB8LtjFyMkhIWAi8f/6CzYIW0ziwr31 QDYXh5DAUkaJ1uW9TF2MHGBFKz7KQcSnM0psOtzIDtIgJLCHSaLtdjaIzSagK9H0dhcjiC0i UCRxcPV5FpAGZoFGRoneh/1MIAlhAReJKVe2MIPYLAKqEj/ez2IFsXkFPCRObloKdYWCxJvb z8BqOAWCJVY/XMMIsSxA4ve0NewQvQIS3yYfYoE4TlZi0wFmkF0SArfZJFov72aFmCMpcXDF DZYJjMILGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgSG4Ol/z6R2MK5ssDjEKMDBqMTD qyE5O0CINbGsuDL3EKMEB7OSCO8yZ6AQb0piZVVqUX58UWlOavEhRh+gSyYyS4km5wPjI68k 3tDYxNzU2NTSyMjM1BSHsJI4b7NHSoCQQHpiSWp2ampBahHMOCYOTqkGRqaSd1V/hbfERzL1 KW2wbOx6qS3ycrW88dY/y9ZWzwq7H8Sv1RXl5LG++8DjHTlTMxnPCs7n37Jxx/UTNllxhzTK FpxZV55wlm+/6J+w6CyTMh/RsuYN0fmvr6WULd7681tvjX6G3arnL0t2y6gmKDAksus0Xc7x bN4Ukl+2fRfXxLzNoaKdSizFGYmGWsxFxYkAvSdgY24CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xoG5+1uwAg3MzuS02Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxokLH5gKTohWzL7ewtLA +Fywi5GDQ0LARGLFR7kuRk4gU0ziwr31bF2MXBxCAtMZJTYdbmQHSQgJ7GGSaLudDWKzCehK NL3dxQhiiwgUSRxcfZ4FpIFZoJFRovdhPxNIQljARWLKlS3MIDaLgKrEj/ezWEFsXgEPiZOb lrJBbFOQeHP7GVgNp0CwxOqHaxghlgVI/J62hn0CI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV5 6XrJ+bmbGMEB/kxqB+PKBotDjAIcjEo8vBqSswOEWBPLiitzDzFKcDArifAucwYK8aYkVlal FuXHF5XmpBYfYvQBumois5Rocj4w+vJK4g2NTcxNjU0tTSxMzCxxCCuJ8zZ7pAQICaQnlqRm p6YWpBbBjGPi4JRqYJS3/cPLOKEm8dIHCe17OcwVO82mBPR8rjSr7C6RmVtj+nD+hdUMrflv zFzFzgVKn12Wfy6Frdwo019rd8FumfSZHIxeXXeKdJZIT8/9su/WDyNDzeovoavb177Xe/5h 69FPSTIBzxUuvK9JSfx9bOUnxldRErcOfPk+w4Nx43xR+80rZ/zcNUGJpTgj0VCLuag4EQCe K2uynQIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121108_031648_754941_26C3B5FF X-CRM114-Status: GOOD ( 11.11 ) 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 89fa624..c03f3dd 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), {}, };