From patchwork Mon May 5 12:30:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 4114421 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 610F0BFF02 for ; Mon, 5 May 2014 12:35:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92F8620218 for ; Mon, 5 May 2014 12:35:03 +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 A5BB5201F5 for ; Mon, 5 May 2014 12:35:02 +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 1WhI3T-0000Rq-ET; Mon, 05 May 2014 12:31:35 +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 1WhI3P-0000Kh-31 for linux-arm-kernel@lists.infradead.org; Mon, 05 May 2014 12:31:31 +0000 Received: by mail-pa0-f44.google.com with SMTP id ld10so4175893pab.17 for ; Mon, 05 May 2014 05:31:12 -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:in-reply-to:references; bh=lkove+btGXlUH2KvoLYP3tZ4b7tTtl6uqBy25G6ot/Q=; b=QcZj/fQQ5dunqzwHHAb/08H1gidOt2i/vCHF0FFR/lomtsUt12VRuFc7A9ox0unXt6 RXWQooZB52Do3ok2XtZvxGZkQl7Zg9gLhx+EFXp8YjSpBuCFF00s/gTO0sOl+DTI6GBK OUSkGw8SO7Oy7Qh3vXf7BacRDlQmOzGSxpCN4V33LIf9ZeOrG0Pr4Htuw/SLybAkYNh4 JLmDT9OyS9FIdas+94L9ZoIca8Rq5uPfHDh6WBDkpcZBYrSqGmKivN0+FLl00jqp7a2s dX0HL9qo76LSXW2ot4ZmBxqfi9ygjADNdVd+1Qz5SYQ6z9JgA9usaY+CQacIdLhX8MNn XIUQ== X-Received: by 10.66.218.36 with SMTP id pd4mr72081407pac.141.1399293072800; Mon, 05 May 2014 05:31:12 -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.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 05:31:12 -0700 (PDT) From: Vivek Gautam To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: Enable USB 3503 hub on exynos5420-peach-pit Date: Mon, 5 May 2014 18:00:56 +0530 Message-Id: <1399293056-17143-2-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1399293056-17143-1-git-send-email-gautam.vivek@samsung.com> References: <1399293056-17143-1-git-send-email-gautam.vivek@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140505_053131_197908_D84F2F21 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. 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=unavailable 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 exynos5420-peach-pit 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 with following patch: [PATCH v4 2/2] ARM: dts: Add peach-pit board support http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg29950.html arch/arm/boot/dts/exynos5420-peach-pit.dts | 14 ++++++++++++++ arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index fae33dd..24c1e87 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -58,6 +58,20 @@ pinctrl-0 = <&pwm0_out>; pinctrl-names = "default"; }; + + 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 = <&gpx2 4 1>; + pinctrl-0 = <&usb_hub_reset>; + pinctrl-names = "default"; + }; + }; }; &pinctrl_0 { diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index e62c8eb..8add143 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -66,6 +66,13 @@ samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; + + usb_hub_reset: usb-hub-reset { + samsung,pins = "gpx2-4"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; }; pinctrl@13410000 {