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: 4114341 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 51B74BFF02 for ; Mon, 5 May 2014 12:31:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7D9F720171 for ; Mon, 5 May 2014 12:31:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A50F620160 for ; Mon, 5 May 2014 12:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932138AbaEEMbI (ORCPT ); Mon, 5 May 2014 08:31:08 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33851 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932128AbaEEMbG (ORCPT ); Mon, 5 May 2014 08:31:06 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj1so9430872pad.15 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 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 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 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=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";