From patchwork Wed Jul 18 13:45:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1211061 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 DFBECDFFFD for ; Wed, 18 Jul 2012 13:44:28 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SrURa-0000h0-G8; Wed, 18 Jul 2012 13:37:34 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SrULZ-0008P7-68 for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2012 13:31:33 +0000 Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7C00I6FYVD56O0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2012 22:31:15 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-ce-5006baa33aff Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8C.B8.19326.3AAB6005; Wed, 18 Jul 2012 22:31:15 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7C00MXCYV9WD70@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2012 22:31:15 +0900 (KST) From: Vivek Gautam To: kgene.kim@samsung.com, l.majewski@samsung.com, kyungmin.park@samsung.com, thomas.abraham@linaro.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, m.szyprowski@samsung.com Subject: [PATCH 7/8] ARM: EXYNOS5: Add XHCI device from device tree Date: Wed, 18 Jul 2012 19:15:27 +0530 Message-id: <1342619128-25013-8-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1342619128-25013-1-git-send-email-gautam.vivek@samsung.com> References: <1342619128-25013-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQd3Fu9gCDH7/47DY9PgaqwOjx+Yl 9QGMUVw2Kak5mWWpRfp2CVwZ3S1bWQv+ilY8XvSdsYFxgVAXIyeHhICJxNxb99ggbDGJC/fW g9lCAtMZJZr213YxcgHZG5gkenbdYwZJsAnoSjS93cUIkhAR+MoocfLrOmYQh1lgKaPE1p2t YO3CAs4S25adB7NZBFQlTuz+DmbzCnhIrFy7nx1inYJE67JDYDangKfE1RkbmSFWe0i8njGV eQIj7wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwV5/JrWDcWWDxSFGAQ5GJR7eJWvY AoRYE8uKK3MPMUpwMCuJ8PpvAwrxpiRWVqUW5ccXleakFh9ilOZgURLnNfb+6i8kkJ5Ykpqd mlqQWgSTZeLglGpgFN+5v3Dhu4K/qdvVO1YeqlrxU4zn96Jf0/7fqdaJDji8y56J9e/c7vvM c18d00/yCLFaPck8dK+08deVn/IUeLyk0kUWGX87EHxJUfzE4ps1M/zmlrdOs9Uyib6bOFH6 HWPjZ72yjTq/2Y0fC8vbHF9Q2usc6hVx7M05uf1zanTfr3dK5bXaqMRSnJFoqMVcVJwIANoP /qz2AQAA X-TM-AS-MML: No X-Spam-Note: CRM114 invocation failed X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-6.9 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.0 T_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: yulgon.kim@samsung.com, av.tikhomirov@samsung.com, prashanth.g@samsung.com, boyko.lee@samsung.com, joshi@samsung.com, a.kesavan@samsung.com, olofj@google.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 This patch adds EHCI device from device tree for exynos5 and adds platform data. Signed-off-by: Abhilash Kesavan Signed-off-by: Vivek Gautam diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt index 45dadca..b2349fe 100644 --- a/Documentation/devicetree/bindings/usb/exynos-usb.txt +++ b/Documentation/devicetree/bindings/usb/exynos-usb.txt @@ -39,3 +39,22 @@ ehci { samsung,vbus-gpio = <&gpx2 6 1 3 3>; }; +XHCI +Required properties: + - compatible: should be "samsung,exynos-xhci" for USB 3.0 + DWC3 controller in host mode. + - reg: physical base address of the controller and length + of memory mapped. + - interrupts: interrupt number to the cpu. + - samsung,vbus-gpio: if present, specifies the GPIO + that needs to be pulled up for the bus to be powered. + +Optional properties: + - samsung,vbus-gpio: if present, specifies the GPIO + that needs to be pulled up for the bus to be powered. + +xhci { + compatible = "samsung,exynos-xhci"; + reg = <0x12000000 0x10000>; + interrupts = <0 72 0>; +}; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 988f52a..bc36584 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -70,6 +70,12 @@ interrupts = <0 71 0>; }; + xhci { + compatible = "samsung,exynos-xhci"; + reg = <0x12000000 0x10000>; + interrupts = <0 72 0>; + }; + rtc { compatible = "samsung,s3c6410-rtc"; reg = <0x101E0000 0x100>; diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index 0cc626e..fc1ed3f 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -10,6 +10,7 @@ */ #include +#include #include #include @@ -34,6 +35,12 @@ static struct s5p_ehci_platdata smdk5250_ehci_pdata = { .phy_exit = s5p_usb_phy_exit, }; +static struct dwc3_exynos_data smdk5250_xhci_pdata = { + .phy_type = S5P_USB_PHY_DRD, + .phy_init = s5p_usb_phy_init, + .phy_exit = s5p_usb_phy_exit, +}; + /* * The following lookup table is used to override device names when devices * are registered from device tree. This is temporarily added to enable @@ -73,6 +80,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "exynos-ohci", &smdk5250_ohci_pdata), OF_DEV_AUXDATA("samsung,exynos-ehci", 0x12110000, "s5p-ehci", &smdk5250_ehci_pdata), + OF_DEV_AUXDATA("samsung,exynos-xhci", 0x12000000, + "exynos-dwc3", &smdk5250_xhci_pdata), {}, };