From patchwork Thu Dec 11 12:02:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 5475501 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 0BAD49F2E8 for ; Thu, 11 Dec 2014 12:13:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D44D2010C for ; Thu, 11 Dec 2014 12:13:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43135200F0 for ; Thu, 11 Dec 2014 12:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753766AbaLKMMr (ORCPT ); Thu, 11 Dec 2014 07:12:47 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:42613 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbaLKMMq (ORCPT ); Thu, 11 Dec 2014 07:12:46 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGF00JYV397WO20@mailout2.samsung.com>; Thu, 11 Dec 2014 21:12:43 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id AB.38.11124.B3A89845; Thu, 11 Dec 2014 21:12:43 +0900 (KST) X-AuditID: cbfee68e-f79b46d000002b74-8f-54898a3ba4c1 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 5B.44.09430.B3A89845; Thu, 11 Dec 2014 21:12:43 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NGF0022Q33NTFA0@mmp1.samsung.com>; Thu, 11 Dec 2014 21:12:43 +0900 (KST) From: Vivek Gautam To: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Cc: robh+dt@kernel.org, kishon@ti.com, k.debski@samsung.com, kgene@kernel.org, jg1.han@samsung.com, Vivek Gautam Subject: [PATCH 3/4] arm: dts: exynos5250: Use regulator for USB 2.0 VBUS supply Date: Thu, 11 Dec 2014 17:32:46 +0530 Message-id: <1418299367-2412-4-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 2.2.0 In-reply-to: <1418299367-2412-1-git-send-email-gautam.vivek@samsung.com> References: <1418299367-2412-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsWyRsSkRte6qzPE4P9eBYv5R86xWrRdOchu cXnhJVaLH68vsFn0P37NbHHhaQ+bxeVdc9gsZpzfx2SxaFkrs0Xr3iPsDlwem1Z1snn0bVnF 6HH8xnYmj8+b5AJYorhsUlJzMstSi/TtErgydh7YwFrwQKhiwYbrbA2MU/m7GDk5JARMJHoa 5zFD2GISF+6tZwOxhQSWMko0TXKGqek+dpm9i5ELKL6IUeLJvgssEM4EJome3y1g3WwCuhJN b3cxgtgiAjUSU25dAetgFuhllPj34RwrSEJYIEBiQ9drMJtFQFXi7rd/TCA2r4C7xOSDKxkh 1slJbLn1iB3E5hTwkFjU8xNoGwfQNneJq72aIDMlBFaxS6z5t48ZYo6AxLfJh8BqJARkJTYd gPpGUuLgihssExiFFzAyrGIUTS1ILihOSi8y0itOzC0uzUvXS87P3cQIDP3T/5717WC8ecD6 EKMAB6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rLcL/t55fGmny9p+3nTLYz06vzQfTrQsj8hTaVsnoBbb LnmPUX5Fov6j1WcKSpgkmjdMSFpVoqCbJdHw8dH9vSGCWd+DpRTftu3dy75LiaU4I9FQi7mo OBEA+5s3EMMCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Start using VBUS regulator for USB 2.0 phy, so that we can remove the gpio property from host's node later. Signed-off-by: Vivek Gautam --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 22 ++++++++++++++++++++++ arch/arm/boot/dts/exynos5250-snow.dts | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index a759100..85e74df 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -361,6 +361,17 @@ samsung,audio-codec = <&wm8994>; }; + usb2_vbus_reg: regulator-usb2 { + compatible = "regulator-fixed"; + regulator-name = "P5.0V_USB2"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpx2 6 0>; + pinctrl-names = "default"; + pinctrl-0 = <&usb2_vbus_en>; + enable-active-high; + }; + usb@12110000 { samsung,vbus-gpio = <&gpx2 6 0>; }; @@ -418,4 +429,15 @@ samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; + + usb2_vbus_en: usb2-vbus-en { + samsung,pins = "gpx2-6"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; +}; + +&usb2_phy_gen { + vbus-supply = <&usb2_vbus_reg>; }; diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 60429ad..8085750 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -285,6 +285,17 @@ vbus-supply = <&usb3_vbus_reg>; }; + usb2_vbus_reg: regulator-usb2 { + compatible = "regulator-fixed"; + regulator-name = "P5.0V_USB2"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpx1 1 0>; + pinctrl-names = "default"; + pinctrl-0 = <&usb2_vbus_en>; + enable-active-high; + }; + usb@12110000 { samsung,vbus-gpio = <&gpx1 1 0>; }; @@ -616,6 +627,13 @@ samsung,pin-pud = <0>; samsung,pin-drv = <0>; }; + + usb2_vbus_en: usb2-vbus-en { + samsung,pins = "gpx1-1"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; }; &spi_1 { @@ -628,4 +646,8 @@ dr_mode = "host"; }; +&usb2_phy_gen { + vbus-supply = <&usb2_vbus_reg>; +}; + #include "cros-ec-keyboard.dtsi"