From patchwork Thu Dec 13 16:36:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 1875501 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 A2CEDDF23A for ; Thu, 13 Dec 2012 16:33:34 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TjBgH-0004r4-OS; Thu, 13 Dec 2012 16:30:41 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TjBgD-0004pv-Eq for linux-arm-kernel@lists.infradead.org; Thu, 13 Dec 2012 16:30:38 +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:36 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E3.82.01231.CA20AC05; Fri, 14 Dec 2012 01:30:36 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-93-50ca02ac9437 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 53.82.01231.CA20AC05; Fri, 14 Dec 2012 01:30:36 +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:36 +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 2/2] ARM: Exynos5250: Enabling ohci-exynos driver Date: Thu, 13 Dec 2012 22:06:02 +0530 Message-id: <1355416562-25539-3-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+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkSncN06kAg/nTZCw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGqsd/mQvuila0rZ7M1MD4R7CLkYNDQsBE4uX9qi5GTiBTTOLC vfVsXYxcHEICSxkldt08zAqRMJHY2DKHFSIxnVGi/0YTC4Szh0mid14zC0gVm4CuRNPbXYwg tohAkcS++T+YQYqYBRYySrx/eZIZJCEs4CKxs/kZO8hqFgFViZtzwkHCvAIeEi1r77FDbFOQ eHP7GVg5p4CnxPzzG8GuEAKqmXPzPFgNi4CAxLfJh1ggPpCV2HQAbJWEwHU2iWOH1jJBzJGU OLjiBssERuEFjAyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MQJD8PS/Z1I7GFc2WBxiFOBg VOLhLQg/GSDEmlhWXJl7iFGCg1lJhPfGa6AQb0piZVVqUX58UWlOavEhRh+gSyYyS4km5wPj I68k3tDYxNzU2NTSyMjM1BSHsJI4b7NHSoCQQHpiSWp2ampBahHMOCYOTqkGRqWVZdLiq9RP inOuzPb1qun9oM6ywPPU9MarZYniflMeCTfP4eG78CVrm3lQn3/QxbBjN+ufn9L4zDTTcN3T 9LRfYpoX39bv/2uiVmJ8WD/DXubm9Rv7XL0nC+ouc17/ZsvGepUu3ldcYklP/axkBfM+uhra S3n4RD44tM5UKEOpm33xxt8mSizFGYmGWsxFxYkAg9flnm4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xoO4aplMBBn2X+C02Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxqrHf5kL7opWtK2ezNTA +Eewi5GTQ0LARGJjyxxWCFtM4sK99WxdjFwcQgLTGSX6bzSxQDh7mCR65zWzgFSxCehKNL3d xQhiiwgUSeyb/4MZpIhZYCGjxPuXJ5lBEsICLhI7m5+xdzFycLAIqErcnBMOEuYV8JBoWXuP HWKbgsSb28/AyjkFPCXmn98IdoUQUM2cm+fZJzDyLmBkWMUomlqQXFCclJ5rqFecmFtcmpeu l5yfu4kRHOLPpHYwrmywOMQowMGoxMNbEH4yQIg1say4MvcQowQHs5II743XQCHelMTKqtSi /Pii0pzU4kOMPkBHTWSWEk3OB8ZfXkm8obGJuamxqaWJhYmZJQ5hJXHeZo+UACGB9MSS1OzU 1ILUIphxTBycUg2M57WtVO7n7pEMmO3tWuql3OLwLPlCr+2NTM0juVzv57NySTX7/G1rvb85 KKvvd9wEFo4+RRaJ41a/Y+MSIv8wPg3p9d3Q82Wm+0nxuSklZWf9HE4/ffFj/gHXZ7l5P89K 293fkMoqqlumZCnndj4q6aauXlB3ieL+d0mBhW6X2H9JGu1x2K/EUpyRaKjFXFScCADGpwkS ngIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121213_113037_877017_EEEDEE43 X-CRM114-Status: GOOD ( 10.26 ) 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 OHCI device tree node for Exynos5250 along with the device base address. Signed-off-by: Vivek Gautam Acked-by: Jingoo Han --- .../devicetree/bindings/usb/exynos-usb.txt | 15 +++++++++++++++ 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 ++ 4 files changed, 24 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt index e8bbb47..f66fcdd 100644 --- a/Documentation/devicetree/bindings/usb/exynos-usb.txt +++ b/Documentation/devicetree/bindings/usb/exynos-usb.txt @@ -23,3 +23,18 @@ Example: interrupts = <0 71 0>; samsung,vbus-gpio = <&gpx2 6 1 3 3>; }; + +OHCI +Required properties: + - compatible: should be "samsung,exynos4210-ohci" for USB 2.0 + OHCI companion controller in host mode. + - reg: physical base address of the controller and length of memory mapped + region. + - interrupts: interrupt number to the cpu. + +Example: + usb@12120000 { + compatible = "samsung,exynos4210-ohci"; + reg = <0x12120000 0x100>; + interrupts = <0 71 0>; + }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 584bb9a..75510d1 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -305,6 +305,12 @@ interrupts = <0 71 0>; }; + usb@12120000 { + compatible = "samsung,exynos4210-ohci"; + reg = <0x12120000 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 b2c662f..4bf6fd9 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -202,6 +202,7 @@ #define EXYNOS4_PA_OHCI 0x12590000 #define EXYNOS4_PA_HSPHY 0x125B0000 #define EXYNOS5_PA_EHCI 0x12110000 +#define EXYNOS5_PA_OHCI 0x12120000 #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 b3b9af1..07aa586 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -112,6 +112,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "samsung-i2s.2", NULL), OF_DEV_AUXDATA("samsung,exynos4210-ehci", EXYNOS5_PA_EHCI, "s5p-ehci", NULL), + OF_DEV_AUXDATA("samsung,exynos4210-ohci", EXYNOS5_PA_OHCI, + "exynos-ohci", NULL), {}, };