From patchwork Wed Jan 18 06:32:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9522803 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 D77C36043A for ; Wed, 18 Jan 2017 06:32:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C635F285AE for ; Wed, 18 Jan 2017 06:32:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8CB2285B6; Wed, 18 Jan 2017 06:32:07 +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 3DC31285AE for ; Wed, 18 Jan 2017 06:32:07 +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 1cTjmw-00071Z-Vc; Wed, 18 Jan 2017 06:32:06 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTjlQ-0005rD-LB for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 06:30:34 +0000 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 <0OJY032YZQ2A7Q50@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 15:30:10 +0900 (KST) Received: from epsmges5p4.samsung.com (unknown [182.195.40.63]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20170118063010epcas2p147545e00cd79c84f033721eba0558fc7~ayeR7TP3o2978629786epcas2p1Y; Wed, 18 Jan 2017 06:30:10 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p4.samsung.com (EPCPMTA) with SMTP id 95.86.22880.27B0F785; Wed, 18 Jan 2017 15:30:10 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20170118063009epcas5p27f555398c9f3f44d733e04a585e74139~ayeRjPwl72544825448epcas5p2R; Wed, 18 Jan 2017 06:30:09 +0000 (GMT) X-AuditID: b6c32a58-f79946d000005960-50-587f0b728ea8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 4B.35.26370.17B0F785; Wed, 18 Jan 2017 15:30:09 +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 <0OJY00JTQQ20M3B0@mmp2.samsung.com>; Wed, 18 Jan 2017 15:30:09 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost Date: Wed, 18 Jan 2017 12:02:53 +0530 Message-id: <1484721173-30474-3-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1484721173-30474-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7bCmpm4Rd32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jQd1C7voIgyenzSzmHznHavH2+xZ2 izdv1zBZ9D9+zWxx/vwGdotNj6+xWsw4v4/JYtHWL+wWrXuPsFtMW7eO2YHLY+esu+wem1Z1 snlsXlLvsaUfyOvbsorR4/MmuQC2KDebjNTElNQihdS85PyUzLx0W6XQEDddCyWFvMTcVFul CF3fkCAlhbLEnFIgz8gADTg4B7gHK+nbJbhlfFr3lKXgs1DF2u89LA2Mn/m7GDk5JARMJO7t /cwGYYtJXLi3Hsjm4hASmMUo0X5wLSuE85NR4syrhWBVbAK6Ek/ez2XuYuTgEBHIlDixjwuk hllgD6PEtov9YDXCAiESvy/vALNZBFQl7h75xAhSzyvgIfHulS3EMjmJm+c6mUFsTgFPiceb P4KVCwGVXLn7imkCI+8CRoZVjBKpBckFxUnpuUZ5qeV6xYm5xaV56XrJ+bmbGMGB/0x6B+Ph Xe6HGAU4GJV4eANE6yKEWBPLiitzDzFKcDArifBasNZHCPGmJFZWpRblxxeV5qQWH2I0Bbpr IrOUaHI+MCrzSuINTcxNzI0NLMwtLU2MlMR5G2c/CxcSSE8sSc1OTS1ILYLpY+LglGpgjFmv ZmJ15Onmf64m+iYTeY0eHDBkj5U5dNclWP73+gpJTXun9xbiuYUt0y2dNx7a8PDV59WLT5+x 7NRJ31l4uH7lVkO+k4J1vzurc79k2nQXbe0oNbz9oyL2xmfWG8+2i5+7xrqk7cD7v+XClesW rwsuUWZUmHlzZbLbzPWH76Qu5q6KUl/KrcRSnJFoqMVcVJwIAOqB93SSAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170118063009epcas5p27f555398c9f3f44d733e04a585e74139 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 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: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170118063009epcas5p27f555398c9f3f44d733e04a585e74139 X-RootMTR: 20170118063009epcas5p27f555398c9f3f44d733e04a585e74139 References: <1484721173-30474-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_223032_851303_F7FF9BD4 X-CRM114-Status: UNSURE ( 9.10 ) 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. Signed-off-by: Vivek Gautam Signed-off-by: Pankaj Dubey Reviewed-by: Javier Martinez Canillas Reviewed-by: Alim Akhtar --- 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 1b2db9f0..e4705fd 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"; @@ -32,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 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 { @@ -365,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 = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + usb3drd_boost_en: usb3drd-boost-en { + samsung,pins = "gpf4-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +};