From patchwork Tue Jan 17 15:04:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9521303 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 070E86020A for ; Tue, 17 Jan 2017 15:02:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFE722858D for ; Tue, 17 Jan 2017 15:02:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1A46285A5; Tue, 17 Jan 2017 15:02:01 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 77C3A2858D for ; Tue, 17 Jan 2017 15:02:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cTVGp-0008O4-KS; Tue, 17 Jan 2017 15:01:59 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTVGj-0008Lw-Re for linux-arm-kernel@lists.infradead.org; Tue, 17 Jan 2017 15:01:57 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJX0120GJ2IQX80@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 00:01:30 +0900 (KST) Received: from epsmges1p4.samsung.com (unknown [182.195.40.52]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20170117150129epcas2p268048f0b25eea6d80c07101c0ebfc1da~alzcKzkdI1700517005epcas2p2S; Tue, 17 Jan 2017 15:01:29 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 0D.4B.18731.9C13E785; Wed, 18 Jan 2017 00:01:29 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe~alzV-_eEg0861908619epcas1p1G; Tue, 17 Jan 2017 15:01:23 +0000 (GMT) X-AuditID: b6c32a38-f79836d00000492b-64-587e31c94916 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 5B.DB.08931.3C13E785; Wed, 18 Jan 2017 00:01:23 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJX00LE2J1ZQN60@mmp2.samsung.com>; Wed, 18 Jan 2017 00:01:23 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost Date: Tue, 17 Jan 2017 20:34:04 +0530 Message-id: <1484665444-23365-3-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1484665444-23365-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAz2SfUgTcRjH/e223bQW50z7sazGlVTCrd0x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Vy+t9jQd3DhnURBtuPc1nMP3KO1eLt9y3s Fm/ermGy6H/8mtni/PkN7BabHl9jtZhxfh+TxaKtX9gtWvceYbeYtm4dswOXx85Zd9k9Nq3q ZPPYvKTeY0s/kNe3ZRWjx+dNcgFsUW42GamJKalFCql5yfkpmXnptkqhIW66FkoKeYm5qbZK Ebq+IUFKCmWJOaVAnpEBGnBwDnAPVtK3S3DLeHL9CWPBP8GK7YcEGxj/8XUxcnJICJhIPNx9 jgnCFpO4cG89WxcjF4eQwCxGid03WtlBEkICPxklLhyvBrHZBHQlnryfy9zFyMEhIpApcWIf F0g9s8AeRoltF/vZQGqEBUIkFndcA+tlEVCVaDl/hAXE5hXwkNjZ0sYMsUxO4ua5TjCbU8BT YsuKm2wQuzwk1l+YzjiBkXcBI8MqRonUguSC4qT0XMO81HK94sTc4tK8dL3k/NxNjOCwfya1 g/HgLvdDjAIcjEo8vAxSdRFCrIllxZW5hxglOJiVRHhVNIBCvCmJlVWpRfnxRaU5qcWHGE2B DpvILCWanA+MybySeEMTcxNzYwMLc0tLEyMlcd7G2c/ChQTSE0tSs1NTC1KLYPqYODilGhj3 Htvds8aO7RGL0M+LKvz8r1sW3ftbF9r0jfN/wOu9um/FX/M8yAyOV/KeMTNZbZ4Z50411QVl 85Z7xeq+Py0ctozzZdvBCjb5KQkLlEIPRf0KPCMtufxqxJuGStEvv6aFHM1jnrj2VXNw6tED TPHLDvd1eRfGa8ekvPVNjVX6X/qd//4qrlolluKMREMt5qLiRADoLabbkQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe 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: 20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe X-RootMTR: 20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe References: <1484665444-23365-1-git-send-email-pankaj.dubey@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170117_070154_040482_7DBA384A X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pankaj Dubey , krzk@kernel.org, Vivek Gautam , javier@osg.samsung.com, robh+dt@kernel.org, kgene@kernel.org, sanath@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vivek Gautam Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board. Reviewed-by: Javier Martinez Canillas Signed-off-by: Vivek Gautam Signed-off-by: Pankaj Dubey --- arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts index 9cf73cf..8d5abdd 100644 --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts @@ -13,6 +13,7 @@ #include "exynos7.dtsi" #include #include +#include / { model = "Samsung Exynos7 Espresso board based on EXYNOS7"; @@ -33,6 +34,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 GPIO_ACTIVE_HIGH>; + 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 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb3drd_boost_en>; + enable-active-high; + }; + }; &fin_pll { @@ -366,3 +390,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>; + }; +};