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: 4114331 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 84FC29F1E1 for ; Mon, 5 May 2014 12:31:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5A2D20160 for ; Mon, 5 May 2014 12:31:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF5812010E for ; Mon, 5 May 2014 12:31:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932173AbaEEMbR (ORCPT ); Mon, 5 May 2014 08:31:17 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:45218 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932128AbaEEMbN (ORCPT ); Mon, 5 May 2014 08:31:13 -0400 Received: by mail-pa0-f52.google.com with SMTP id kx10so9434256pab.25 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 Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, arunkk.samsung@gmail.com, Vivek Gautam 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 {