From patchwork Thu Nov 8 06:54: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: 1713911 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 915FF3FC8F for ; Thu, 8 Nov 2012 06:52:03 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWLwb-000597-8L; Thu, 08 Nov 2012 06:50:29 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWLwY-00058S-BB for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 06:50:27 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD500J4CPMEYYC0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2012 15:50:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6D.0E.01231.1365B905; Thu, 08 Nov 2012 15:50:25 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-d3-509b5631ab25 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EC.0E.01231.0365B905; Thu, 08 Nov 2012 15:50:24 +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:50:24 +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 12:24:24 +0530 Message-id: <1352357665-7435-2-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+NgFrrBLMWRmVeSWpSXmKPExsWyRsSkVtcwbHaAwaHT7BabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugSvjwTXZgpXSFQ+u/mdpYNwv1sXIwSEhYCIxtT21i5ETyBSTuHBv PVsXIxeHkMBSRon9Bw4ywdR8uS0KEV/EKNHWtZodwtnDJPGvvZ0ZpJtNQFei6e0uRhBbRKBI 4uDq8ywgRcwCjYwSvQ/7mUASwgKOEk//zmQHsVkEVCX6Z5wD28Ar4C7xbS07xBUKEm9uP2MG CXMKeEjMW1gGEhYCqpiz4D9Up4DEt8mHWCBuk5XYdIAZZJOEwHU2iQMH9rNBjJGUOLjiBssE RuEFjAyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MQKD7/S/Z1I7GFc2WBxiFOBgVOLh1ZCc HSDEmlhWXJl7iFGCg1lJhHeZM1CINyWxsiq1KD++qDQntfgQow/QJROZpUST84GRkVcSb2hs Ym5qbGppZGRmaopDWEmct9kjJUBIID2xJDU7NbUgtQhmHBMHp1QDY+O5rX+bo4Pr5n74K8Ao sy5Xwn5va6/smSdNVkab1fO+7bzZ/WZewYJmm6KF/r0OvcVfdr3vWhK3Q2DTVYt/Db65TbG1 57141Ja+2p913unOlMWF9+c/rYmWDlz395f/tPTD643Zs8X45Pb+j3r6SMev9cu38o9bvuSy BXxqKe4R27nlwtKry5RYijMSDbWYi4oTAc6XZ1trAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeLIzCtJLcpLzFFi42I5/e+xgK5B2OwAg8Yr5habHl9jdWD02Lyk PoAxqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdo qpJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsIYx48E12YKV0hUPrv5naWDc L9bFyMEhIWAi8eW2aBcjJ5ApJnHh3nq2LkYuDiGBRYwSbV2r2SGcPUwS/9rbmUGq2AR0JZre 7mIEsUUEiiQOrj7PAlLELNDIKNH7sJ8JJCEs4Cjx9O9MdhCbRUBVon/GOSaQbbwC7hLf1rJD bFOQeHP7GTNImFPAQ2LewjKQsBBQxZwF/9knMPIuYGRYxSiaWpBcUJyUnmuoV5yYW1yal66X nJ+7iREc3M+kdjCubLA4xCjAwajEw6shOTtAiDWxrLgy9xCjBAezkgjvMmegEG9KYmVValF+ fFFpTmrxIUYfoJsmMkuJJucDIy+vJN7Q2MTc1NjU0sTCxMwSh7CSOG+zR0qAkEB6Yklqdmpq QWoRzDgmDk6pBsamJpcJ1baFfb0f//ttiA1P0riSPLWg+I/PfNZDKdeq7HrN+p5LO93bWbyD s3177M9V5vOulRyUM8o+c/1e9LGQSzf29JXWHW/dEv+xLTqAJWDnv12tV/7vulSvYhTevWV2 XC6rTaK2/4Gf6znWBTfp5/b3lnxqswn9f0NJ78PUCy2vL+ts7FFiKc5INNRiLipOBADyVL8B mwIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121108_015026_691430_8D8A3161 X-CRM114-Status: GOOD ( 13.28 ) 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.33 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..f60994e 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), {}, };