From patchwork Thu Nov 8 08:19:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1714421 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 2A74C3FCDE for ; Thu, 8 Nov 2012 08:16:52 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWNG7-0001Vi-GU; Thu, 08 Nov 2012 08:14:43 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWNG3-0001V2-39 for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 08:14:40 +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 <0MD500HPTTK5RKS0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 17:14:35 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id BD.CC.01231.BE96B905; Thu, 08 Nov 2012 17:14:35 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-35-509b69ebf10f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0D.CC.01231.BE96B905; Thu, 08 Nov 2012 17:14:35 +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 <0MD500KYOTIE7T80@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 17:14:35 +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 1/2] ARM: Exynos5250: Enabling ehci-s5p driver Date: Thu, 08 Nov 2012 13:49:24 +0530 Message-id: <1352362764-14595-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+NgFrrFLMWRmVeSWpSXmKPExsWyRsSkTvd15uwAg49nTSw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfG/AfTmQtWSFd82fGPrYFxv1gXIyeHhICJxN51e1ghbDGJC/fW s3UxcnEICSxllDi94BsbTNGtNdsYIRLTGSW2LjzEDpIQEtjDJLHtUR6IzSagK9H0dhcjiC0i UCRxcPV5FpAGZoFGRoneh/1MIAlhAUeJp39ngjWzCKhK3Hm8BSjOwcEr4CGx8ToHxDIFiTe3 nzGD2JwCwRLn/15hBSkREgiQePqaGaJTQOLb5EMsIGEJAVmJTQeYQTZJCFxnk2jcfpoJYoyk xMEVN1gmMAovYGRYxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iREYgKf/PZPawbiyweIQowAH oxIPr4bk7AAh1sSy4srcQ4wSHMxKIrzLnIFCvCmJlVWpRfnxRaU5qcWHGH2ALpnILCWanA+M jrySeENjE3NTY1NLIyMzU1McwkrivM0eKQFCAumJJanZqakFqUUw45g4OKUaGDeyv+Wdr7B4 2VfBGcodrCUPZ+UzV6TtP9KS/IGdP+soc0quuBPfkVe3Ig5xXDz9sUdzQ8qxnzsO9kznKrtT aj4pppJn9eojc2de9X+61OjMjh2Hv4h5sCe4n87oWca+Wvb5XOmyuX+EK5MVc1/+KXlSflFz Zsw/rdOb1tQ95Jb6yhu09+PPBR1KLMUZiYZazEXFiQDH6k8WbQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeLIzCtJLcpLzFFi42I5/e+xoO7rzNkBBjduq1tsenyN1YHRY/OS +gDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwhrGjPkPpjMXrJCu+LLjH1sD 436xLkZODgkBE4lba7YxQthiEhfurWfrYuTiEBKYziixdeEhdpCEkMAeJoltj/JAbDYBXYmm t7vAGkQEiiQOrj7PAtLALNDIKNH7sJ8JJCEs4Cjx9O9MsGYWAVWJO4+3AMU5OHgFPCQ2XueA WKYg8eb2M2YQm1MgWOL83yusICVCAgEST18zT2DkXcDIsIpRNLUguaA4KT3XUK84Mbe4NC9d Lzk/dxMjOLyfSe1gXNlgcYhRgINRiYdXQ3J2gBBrYllxZe4hRgkOZiUR3mXOQCHelMTKqtSi /Pii0pzU4kOMPkA3TWSWEk3OB8ZeXkm8obGJuamxqaWJhYmZJQ5hJXHeZo+UACGB9MSS1OzU 1ILUIphxTBycUg2MrE7l0jEpvGWXO62U9ngoH1e83SvmztP811/c6qpqZcgavqPrVK+eqO5W EXdx21Gb9qBo4TvmBY4vch5JHm/x2dIudHx/1Le5vZ/vLw6ckss/deXBV28SDz/X3bdq1+5K MVV2zlBB6YeZD47e37zvTUrA38/vPrZ9ka279VpP5/1bd8ffxZzCSizFGYmGWsxFxYkAIJur +ZwCAAA= X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121108_031439_434148_81489DED X-CRM114-Status: GOOD ( 13.58 ) 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 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 --- .../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..833f5cf --- /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,exynos-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,exynos-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 405009c..7c8064f 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -193,4 +193,8 @@ hdmi { hpd-gpio = <&gpx3 7 0xf 1 3>; }; + + 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 cf6a02d..2995445 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -238,6 +238,12 @@ #size-cells = <0>; }; + usb@12110000 { + compatible = "samsung,exynos-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 ef4958b..9a86b99 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -197,6 +197,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 ed37273..89fa624 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -86,6 +86,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "exynos5-hdmi", NULL), OF_DEV_AUXDATA("samsung,exynos5-mixer", 0x14450000, "exynos5-mixer", NULL), + OF_DEV_AUXDATA("samsung,exynos-ehci", EXYNOS5_PA_EHCI, + "s5p-ehci", NULL), {}, };