From patchwork Tue Jan 17 10:32:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9520447 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9256060244 for ; Tue, 17 Jan 2017 10:29:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FBD328528 for ; Tue, 17 Jan 2017 10:29:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 744BB2852A; Tue, 17 Jan 2017 10:29:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19B8428528 for ; Tue, 17 Jan 2017 10:29:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751129AbdAQK3r (ORCPT ); Tue, 17 Jan 2017 05:29:47 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:56722 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdAQK3q (ORCPT ); Tue, 17 Jan 2017 05:29:46 -0500 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJX02O5L6HJO5E0@mailout3.samsung.com>; Tue, 17 Jan 2017 19:29:43 +0900 (KST) Received: from epsmges1p2.samsung.com (unknown [182.195.40.47]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20170117102942epcas2p2d3bb8bf296dc826a7153b6457b0bc3d6~aiGJF01L-2715827158epcas2p20; Tue, 17 Jan 2017 10:29:42 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id FB.E2.15578.612FD785; Tue, 17 Jan 2017 19:29:42 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170117102941epcas1p3a33a312bedd013edb0997b16786dede6~aiGH6ssZI2959029590epcas1p3o; Tue, 17 Jan 2017 10:29:41 +0000 (GMT) X-AuditID: b6c32a36-f79d86d000003cda-03-587df216110e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id FB.73.08931.512FD785; Tue, 17 Jan 2017 19:29:41 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJX003KP6H54C00@mmp1.samsung.com>; Tue, 17 Jan 2017 19:29:41 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: krzk@kernel.org, kgene@kernel.org, robh+dt@kernel.org, sanath@samsung.com, javier@osg.samsung.com, gautamvivek1987@gmail.com, Pankaj Dubey Subject: [PATCH 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost Date: Tue, 17 Jan 2017 16:02:23 +0530 Message-id: <1484649143-19423-3-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1484649143-19423-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSaUwTQRTHnW7bXZCStSi+gBKyiYliWrtNgVXEI6JWJVpjTIhHYAMjEGkL 3Y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op9oIg97DChbzj5xjtXj7fQu7 xZu3a5gs+h+/ZrY4f34Du8Wmx9dYLWac38dksWjrF3aL1r1H2C2mrVvH7MDlsXPWXXaPTas6 2Tw2L6n32NIP5PVtWcXo8XmTXABblJtNRmpiSmqRQmpecn5KZl66rVJoiJuuhZJCXmJuqq1S hK5vSJCSQlliTimQZ2SABhycA9yDlfTtEtwyfkzazVrwga/i05WPrA2MS3i6GDk5JARMJD5u us0CYYtJXLi3nq2LkYtDSGApo8S/5p8sEM5PRonbfXvAqtgEdCWevJ/L3MXIwSEikClxYh8X SA2zwFpGiaeXHrOD1AgL+EtMnrKCCcRmEVCV+L+hixnE5hXwkFj/5jkjxDY5iZvnOsHinAKe EueunACzhYBqvn47yDaBkXcBI8MqRonUguSC4qT0XMO81HK94sTc4tK8dL3k/NxNjODQfya1 g/HgLvdDjAIcjEo8vAUBtRFCrIllxZW5hxglOJiVRHjvvwIK8aYkVlalFuXHF5XmpBYfYjQF Omwis5Rocj4wLvNK4g1NzE3MjQ0szC0tTYyUxHkbZz8LFxJITyxJzU5NLUgtgulj4uCUamBM 2iD9gOGhgYOOnIt9xoQ3E22fWj6VfhW4wWiljLWvkqFKQsCHGdsfS+bMq3e4e+PdxJ1xx8u3 tLJLCjbzzxHwM5DJX7aAc+Nd05d8sn8EK1I8/4svT/553mhbiaXrzLjtOxv1Jnz/uXDdxAk7 Jv3aE7FE3aNO9E3ihXuxiotOzp218pnS/yAWJZbijERDLeai4kQAQsjIipMCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170117102941epcas1p3a33a312bedd013edb0997b16786dede6 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7YyQ7Lm07KaIG1NTSVItVHVybiBLZXkgU29sdXRpb25zGw==?= =?UTF-8?B?7IK87ISx7KCE7J6QGy4vQ2hpZWYgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?UEFOS0FKIEtVTUFSIERVQkVZG1NTSVItVHVybiBLZXkgU29s?= =?UTF-8?B?dXRpb25zG1NhbXN1bmcgRWxlY3Ryb25pY3MbLi9DaGllZiBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG1NXQUhRG0MxMElEMDdJRDAxMDk5Nw==?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170117102941epcas1p3a33a312bedd013edb0997b16786dede6 X-RootMTR: 20170117102941epcas1p3a33a312bedd013edb0997b16786dede6 References: <1484649143-19423-1-git-send-email-pankaj.dubey@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board. Signed-off-by: Pankaj Dubey Signed-off-by: Vivek Gautam Reviewed-by: Javier Martinez Canillas --- arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts index 9cf73cf..68f3a51 100644 --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts @@ -33,6 +33,29 @@ device_type = "memory"; reg = <0x0 0x40000000 0x0 0xC0000000>; }; + + usb30_vbus_reg: regulator-usb30 { + compatible = "regulator-fixed"; + regulator-name = "VBUS_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gph1 1 0>; + pinctrl-names = "default"; + pinctrl-0 = <&usb30_vbus_en>; + enable-active-high; + }; + + usb3drd_boost_5v: regulator-usb3drd-boost { + compatible = "regulator-fixed"; + regulator-name = "VUSB_VBUS_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpf4 1 0>; + pinctrl-names = "default"; + pinctrl-0 = <&usb3drd_boost_en>; + enable-active-high; + }; + }; &fin_pll { @@ -366,3 +389,24 @@ vqmmc-supply = <&ldo2_reg>; disable-wp; }; + +&usbdrd_phy { + vbus-supply = <&usb30_vbus_reg>; + vbus-boost-supply = <&usb3drd_boost_5v>; +}; + +&pinctrl_bus1 { + usb30_vbus_en: usb30-vbus-en { + samsung,pins = "gph1-1"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + + usb3drd_boost_en: usb3drd-boost-en { + samsung,pins = "gpf4-1"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; +};