From patchwork Mon May 5 12:30:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 4114351 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D9DD6BFF02 for ; Mon, 5 May 2014 12:33:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B8B820398 for ; Mon, 5 May 2014 12:33:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 135C320218 for ; Mon, 5 May 2014 12:33:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WhI3M-0000PR-UP; Mon, 05 May 2014 12:31:28 +0000 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WhI3K-0000FB-AY for linux-arm-kernel@lists.infradead.org; Mon, 05 May 2014 12:31:26 +0000 Received: by mail-pa0-f44.google.com with SMTP id ld10so4318341pab.3 for ; Mon, 05 May 2014 05:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=+Xu/+/9bhHGWaNgRJe2SibRNfshiqG227NNDluAvsrI=; b=DGreUASQGXiIWfF3TDWWGgsD5jq7Pp3MwYHXxzPuG9Z0ontCWa5Mn4L6BlmnS61iWv 04KNlkNZ6Oo3XqIssXRM2M7Z+HvZwHO8dEzPiV2WS6oDwIecNsd1O/6E/w3F8/FkPbV1 +L1XOVR5NwgmdGKDSsPjeghWLEahYwrMH5Fj396ELAFD64x3v7yQGYKTe8xQIcxpQpok G1mveAL6FSdGBBGnDZAXeo5Cf9LdmkPGc2GlzI35jrlFjQnK3bUFinqLFpeX0gnU+1tl i+7ugNKewuiLq29NqragSKYqUZgdh088SVHFQIblkpyztgx9utf+qjFl4UNJFykJisWd 0I2Q== X-Received: by 10.66.146.170 with SMTP id td10mr71751001pab.105.1399293065412; Mon, 05 May 2014 05:31:05 -0700 (PDT) Received: from vivek-linuxpc.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ck10sm69966289pac.0.2014.05.05.05.31.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 05:31:04 -0700 (PDT) From: Vivek Gautam To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: Enable USB 3503 hub on exynos5250-snow Date: Mon, 5 May 2014 18:00:55 +0530 Message-Id: <1399293056-17143-1-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140505_053126_381123_06B0DCB9 X-CRM114-Status: GOOD ( 10.17 ) X-Spam-Score: 0.2 (/) Cc: devicetree@vger.kernel.org, kgene.kim@samsung.com, arunkk.samsung@gmail.com, linux-kernel@vger.kernel.org, Vivek Gautam , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The exynos5250-snow has a SMSC USB3503 connected in hardware only mode like a PHY. Enable support for it, and add necessary 'reset-gpio' for it. This is in correspondance to similar patch by Mark Brown 7c1b0ec ARM: dts: Enable USB hub on Arndale Signed-off-by: Vivek Gautam --- Based on 'for-next' branch of kgene's linux-samsung tree. arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5250-snow.dts | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi index 9a49e68..bd8c8f1 100644 --- a/arch/arm/boot/dts/exynos5250-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5250-pinctrl.dtsi @@ -706,6 +706,13 @@ samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; + + usb_hub_reset: usb-hub-reset { + samsung,pins = "gpe1-0"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; }; pinctrl@10d10000 { diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 1ce1088..2e48f27 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -200,6 +200,20 @@ samsung,vbus-gpio = <&gpx1 1 0>; }; + usb_hub_bus { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + // SMSC USB3503 connected in hardware only mode as a PHY + usb_hub { + compatible = "smsc,usb3503a"; + reset-gpios = <&gpe1 0 1>; + pinctrl-0 = <&usb_hub_reset>; + pinctrl-names = "default"; + }; + }; + fixed-rate-clocks { xxti { compatible = "samsung,clock-xxti";