From patchwork Thu Dec 13 16:36:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1875491 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 E629BDF23A for ; Thu, 13 Dec 2012 16:33: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 1TjBft-0004mI-U2; Thu, 13 Dec 2012 16:30:18 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TjBfr-0004lb-DN for linux-arm-kernel@lists.infradead.org; Thu, 13 Dec 2012 16:30: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 <0MEZ00MBL9UB3T00@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 14 Dec 2012 01:30:13 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 29.62.01231.5920AC05; Fri, 14 Dec 2012 01:30:13 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-e5-50ca0295171d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E6.62.01231.4920AC05; Fri, 14 Dec 2012 01:30:13 +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 <0MEZ006WR9T3Y8D0@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 14 Dec 2012 01:30:12 +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 v3 1/2] ARM: Exynos5250: Enabling ehci-s5p driver Date: Thu, 13 Dec 2012 22:06:01 +0530 Message-id: <1355416562-25539-2-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1355416562-25539-1-git-send-email-gautam.vivek@samsung.com> References: <1355416562-25539-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsWyRsSkRncq06kAgxvnRCw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGzemvmQvuSFc8mzmXsYHxk1gXIyeHhICJxJ7ZU1kgbDGJC/fW s4HYQgJLGSXePFaDqenffIi1i5ELKD6dUWL/gaNQzh4miV/7F7GCVLEJ6Eo0vd3FCGKLCBRJ 7Jv/gxmkiFlgIaPE+5cnmUESwgKOEl8mtIA1sAioSrzsagVr4BXwkOhqfwJ1hoLEm9vPwOo5 BTwl5p/fyApxkofEnJvn2SF6BSS+TT4EVM8BVC8rsekA2C4JgctsEpu+rmGEmCMpcXDFDZYJ jMILGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgQG4el/z6R2MK5ssDjEKMDBqMTDWxB+ MkCINbGsuDL3EKMEB7OSCO+N10Ah3pTEyqrUovz4otKc1OJDjD5Al0xklhJNzgdGSF5JvKGx ibmpsamlkZGZqSkOYSVx3maPlAAhgfTEktTs1NSC1CKYcUwcnFINjLnOS3ZfzKl7wdJitVzv MfuKPKfJr62EvyXWWmgf1DzJyjxpnZyPkeTag04Cvrq5ade+342PPKT80NHo9pnbQudu37Ne fHltxZQPGdeCz7ildXncyPrnsfuVZ/ZRrsRJzl3Kvgf3P4/S51v6au7iEs2JjzpXue/yPMK4 ZHbIiqMX3Wx2lnLKzVRiKc5INNRiLipOBAAzWFKwbwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+xoO5UplMBBpN3sVlsenyN1YHRY/OS +gDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwhrGjJvTXzMX3JGueDZzLmMD 4yexLkZODgkBE4n+zYdYIWwxiQv31rN1MXJxCAlMZ5TYf+AoK4Szh0ni1/5FYFVsAroSTW93 MYLYIgJFEvvm/2AGKWIWWMgo8f7lSWaQhLCAo8SXCS1gDSwCqhIvu1rBGngFPCS62p+wQKxT kHhz+xlYPaeAp8T88xvB6oWAaubcPM8+gZF3ASPDKkbR1ILkguKk9FxDveLE3OLSvHS95Pzc TYzgIH8mtYNxZYPFIUYBDkYlHt6C8JMBQqyJZcWVuYcYJTiYlUR4b7wGCvGmJFZWpRblxxeV 5qQWH2L0AbpqIrOUaHI+MALzSuINjU3MTY1NLU0sTMwscQgrifM2e6QECAmkJ5akZqemFqQW wYxj4uCUamC0Xvi6+maXaZwN+4zPXQ+iubzObUvm/fIjZdXTLYe9t3ibePBxqDGuD5u2mrnz bYqppMi1dw1O7dw90gXnkqz/3+hzOs49104g/VhT79mi1WXGnUUSnUk5H/okmY6YVvGq/OE6 3PJ69YfyYxs1P9+++GdnY0p0mIng9R85DuJyjO6XDU7tzFNiKc5INNRiLipOBABTeu2rnwIA AA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121213_113015_769509_3747E41C X-CRM114-Status: GOOD ( 13.02 ) 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.25 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: kgene.kim@samsung.com, jg1.han@samsung.com, linux-kernel@vger.kernel.org, grant.likely@secretlab.ca, 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 EHCI device tree node for Exynos5250 along with the device base adress and gpio line for vbus. Signed-off-by: Vivek Gautam Acked-by: Jingoo Han Acked-by: Grant Likely --- .../devicetree/bindings/usb/exynos-usb.txt | 25 ++++++++++++++++++++ arch/arm/boot/dts/exynos5250-smdk5250.dts | 4 +++ 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 + 5 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/exynos-usb.txt diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt new file mode 100644 index 0000000..e8bbb47 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/exynos-usb.txt @@ -0,0 +1,25 @@ +Samsung Exynos SoC USB controller + +The USB devices interface with USB controllers on Exynos SOCs. +The device node has following properties. + +EHCI +Required properties: + - compatible: should be "samsung,exynos4210-ehci" for USB 2.0 + EHCI controller in host mode. + - reg: physical base address of the controller and length of memory mapped + region. + - interrupts: interrupt number to the cpu. + +Optional properties: + - samsung,vbus-gpio: if present, specifies the GPIO that + needs to be pulled up for the bus to be powered. + +Example: + + usb@12110000 { + compatible = "samsung,exynos4210-ehci"; + reg = <0x12110000 0x100>; + interrupts = <0 71 0>; + samsung,vbus-gpio = <&gpx2 6 1 3 3>; + }; diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 711b55f..f990086 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -218,4 +218,8 @@ i2s_2: i2s@12D70000 { status = "disabled"; }; + + usb@12110000 { + samsung,vbus-gpio = <&gpx2 6 1 3 3>; + }; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 581e57a..584bb9a 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -299,6 +299,12 @@ rx-dma-channel = <&pdma0 11>; /* preliminary */ }; + usb@12110000 { + compatible = "samsung,exynos4210-ehci"; + reg = <0x12110000 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 cbb2852..b2c662f 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -201,6 +201,7 @@ #define EXYNOS4_PA_EHCI 0x12580000 #define EXYNOS4_PA_OHCI 0x12590000 #define EXYNOS4_PA_HSPHY 0x125B0000 +#define EXYNOS5_PA_EHCI 0x12110000 #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 462e5ac..b3b9af1 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -110,6 +110,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "samsung-i2s.1", NULL), OF_DEV_AUXDATA("samsung,samsung-i2s", 0x12D70000, "samsung-i2s.2", NULL), + OF_DEV_AUXDATA("samsung,exynos4210-ehci", EXYNOS5_PA_EHCI, + "s5p-ehci", NULL), {}, };