From patchwork Fri Oct 5 10:10:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1552251 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 AFCB5DF24C for ; Fri, 5 Oct 2012 10:07: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 1TK4mc-0005Yo-Rj; Fri, 05 Oct 2012 10:05:27 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TK4mR-0005XK-Gq for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 10:05:16 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBF00DBP00BN010@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 19:05:07 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 81.B4.03860.2D0BE605; Fri, 05 Oct 2012 19:05:06 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-b1-506eb0d2073d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 21.B4.03860.2D0BE605; Fri, 05 Oct 2012 19:05:06 +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 <0MBF00HBA008FE50@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 19:05:06 +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 1/2] ARM: Exynos5250: Enabling ehci-s5p driver Date: Fri, 05 Oct 2012 15:40:17 +0530 Message-id: <1349431818-15639-2-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1349431818-15639-1-git-send-email-gautam.vivek@samsung.com> References: <1349431818-15639-1-git-send-email-gautam.vivek@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsWyRsSkWvfShrwAg/3frS02Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfG++832QveSVXMWjqJrYGxR6yLkZNDQsBE4sTJa+wQtpjEhXvr 2boYuTiEBJYySmzdPpkVpuhP+3FGiMQiRomX6/5BOXuYJFZvnsEEUsUmoCvR9HYXI4gtIlAk sW/+D2YQm1kgTeL23vMsILawgJ3Enis7wdaxCKhK7F10FczmFfCQuNvymgVim4LEm9vPwHo5 BTwl2l61g9lCQDWHDp9nhOgVkPg2+RBQPQdQvazEpgPMIPdICFxmk/iweSfUO5ISB1fcYJnA KLyAkWEVo2hqQXJBcVJ6rpFecWJucWleul5yfu4mRmAQnv73THoH46oGi0OMAhyMSjy8As9y A4RYE8uKK3MPMUpwMCuJ8FrPzgsQ4k1JrKxKLcqPLyrNSS0+xOgDdMlEZinR5HxghOSVxBsa m5ibGptaGhmZmZriEFYS5232SAkQEkhPLEnNTk0tSC2CGcfEwSnVwGi/dptnlmLRsn2qZ/bO P7mLzYeB43nBoTaHcPtXtfpbl255qznBwfB4tGJNQWH41QuTTryRe5e5sUf0j2/s8oPntjQE lG2IemR/8K2SytbNQWevJRVnfeq8dXtR87ppZ3xV/izW+sPfpnXyyxL5DwfZYvyjc39PbCx7 2PA1cNbO22K/bMJe8k5QYinOSDTUYi4qTgQASLS7NG8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xgO6lDXkBBtO6DCw2Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxvvvN9kL3klVzFo6ia2B sUesi5GTQ0LAROJP+3FGCFtM4sK99WxdjFwcQgKLGCVervvHCOHsYZJYvXkGE0gVm4CuRNPb XWAdIgJFEvvm/2AGsZkF0iRu7z3PAmILC9hJ7Lmykx3EZhFQldi76CqYzSvgIXG35TULxDYF iTe3n4H1cgp4SrS9agezhYBqDh0+zziBkXcBI8MqRtHUguSC4qT0XCO94sTc4tK8dL3k/NxN jOAQfya9g3FVg8UhRgEORiUeXoFnuQFCrIllxZW5hxglOJiVRHitZ+cFCPGmJFZWpRblxxeV 5qQWH2L0AbpqIrOUaHI+MP7ySuINjU3MTY1NLU0sTMwscQgrifM2e6QECAmkJ5akZqemFqQW wYxj4uCUamBkZn6gIG+l+/S3/nu/pKk+t1Xt5b+4HH+ikOl71lle9NJpHQseX3vXOZqys3Pq btgcPNL25P5Crbxrxg8nTjhblee5sOY4t5T7BZ86hVdmr77+9K1ZL3pxpUVy0AWj8/zns8Te bb144L9wrsOZ9Kqntb1pr/ztjC5lHbbaLaNrWRJ0ctUx+VdKLMUZiYZazEXFiQCyU0alngIA AA== X-CFilter-Loop: Reflected X-Spam-Note: CRM114 invocation failed X-Spam-Score: -9.0 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.0 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 -2.1 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, kyungmin.park@samsung.com, kgene.kim@samsung.com, 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..56e35c7 --- /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: + + ehci { + 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 a352df4..089576b 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -166,4 +166,8 @@ spi_2: spi@12d40000 { status = "disabled"; }; + + ehci { + 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 dddfd6e..73ea844 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -218,6 +218,12 @@ #size-cells = <0>; }; + ehci { + 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 8480849..825fe40 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -195,6 +195,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 fee9dcd..6d950d7b 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -72,6 +72,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "exynos-gsc.2", NULL), OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC3, "exynos-gsc.3", NULL), + OF_DEV_AUXDATA("samsung,exynos-ehci", EXYNOS5_PA_EHCI, + "s5p-ehci", NULL), {}, };