From patchwork Thu Apr 14 08:50:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12813137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E888AC433F5 for ; Thu, 14 Apr 2022 08:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xi2WrEeShpWVP4xa2964C4xrBHh8xRth/9rjYJpjiGI=; b=uXdOzL4+QWo65I UU94VF38xXU3WwoJ2hfu2vd/HAAsdJ6hw6FcAVpteVqHVwRbk3J50e8ZuZ8M7nzfcGjN5V0Vi8/lO 6sAbL8WzemqbB8LS3r511oQDJ8HnAbH+TXhmUZBFgOXptNGqa+gJ96wsFCh+3Lb9X93Sn4/zuH20d Z2ICiASp+b2SOlun8wfUidV5Poc3zQNlcASsfIY/xsakInKE2ugpX3UmqIGcWCb2cD7zpLIYyf8ac EtmzWMoXsMq8nIzOmCktiuhuOjTkagCTJ8rHXLkxO9Hy58w221jCYA8sga6ACG06AAmG25XXK3nA+ ZbAOguQaLQLUxwZujquw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nevE5-004eh9-Qj; Thu, 14 Apr 2022 08:53:17 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nevCa-004dwX-JA for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 08:51:46 +0000 Received: from toolbox.toradex.int ([31.10.206.124]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N5mzf-1o25E042rz-017H8J; Thu, 14 Apr 2022 10:51:32 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Philippe Schenker , Denys Drozdov , Marcel Ziswiler , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 04/14] ARM: dts: imx6ull-colibri: add phy-supply to fec Date: Thu, 14 Apr 2022 10:50:56 +0200 Message-Id: <20220414085106.18621-5-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414085106.18621-1-marcel@ziswiler.com> References: <20220414085106.18621-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:PbT02YFtJ+vwl/W84GYuhBhNFhO4lR6ScQtLgXPSJRN9ofOjaHK Aor4kPAGhl7vSNTOzEtDrmVoVT0ldq5rw9p0Wjc/ZWZjuqJ43k8l5cxZbRo4D8pa9EWgi2/ 0hE4hrXK+/Twk/lcjyexf4r+EnxZ78AQZmsQ4TPa/8jex5Gnb4EatzmOz+MomasXFN3QqCA mW/JAmYrWH1W38ZFhBrcA== X-UI-Out-Filterresults: notjunk:1;V03:K0:xLiVqhQHKoA=:HZXUik53/ueD6KZs9UZy/f FheHxh02hd1ZxfjLNQVjfnZQYrlOlGbRjtBI3SYPluZNu1Gaq6QplGVYiAoIySxvj1lHfM58V IfS9tT2Hw9gYqiUi9Xqvrf4uFZ2Xtya2HbLCYvSZFAhGr6AEICepCo+JfV+QhxRgc6hovH5HZ 0QuRiabIIh0Y4/hR92TvZUXvDUh0OmzHvNRLBHiUe8vnujqomw9TBmIwXaW0SjUbAfY1qpskv WuEsRFzLUZGyaKcVBcp99hr8jp+WcHuTkfmmKQMe7Cb67Jo3apprhgkMYQLGY+KMVVhNckPsX uHFi67B1nFFC7RUMscuamSNMgUZHwIQqkbJxvwgIZ7CCLnpSQ6oiFQ9MK7OsUKt7fGL/U10vC m0jvSEAu6eP4Z2Iscse1TBtvEQ3RQWqjVDe3ZaZ/M2fMbYAq4BGFQjtNjfFVZTxBgaogoFJly 4HrvAwR6ydMmwFPt8sxkb83QGVuiKfhOhB8XnoVEeTRJkHZt/cKt+lwPZP/m+8mSpBF1gBUKL PtuwOMu51qAQgAkZAA+W+H88p5oq3KN3UvHmf61Lnzb45kEGPiKmSbgijejjrHn9kIDMEjtfk y3p0GbzGEFZeqf9osLljPl36IhwAbYQMC2zRwdllws0BryhUUGyi5Xe6uu/UZ4MUQc6TBeXKC H/GFOnb3WjPC3XUzxY0yPN1+27YEI1edB+fOelQ35wsgQro7bvT3P4y1BzDlfP0ggBOM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_015144_779246_221B97ED X-CRM114-Status: GOOD ( 10.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Philippe Schenker This adds the proper phy-supply to the FEC. This supply is actually switched by a clock that is now properly stated. This has the advantage to add a delay for that particular regulator which is needed. Signed-off-by: Philippe Schenker Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index bea00cfaa820..e619da3b00b3 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -47,6 +47,18 @@ reg_sd1_vmmc: regulator-sd1-vmmc { states = <1800000 0x1 3300000 0x0>; vin-supply = <®_module_3v3>; }; + + reg_eth_phy: regulator-eth-phy { + compatible = "regulator-fixed-clock"; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "+V3.3_ETH"; + regulator-type = "voltage"; + vin-supply = <®_module_3v3>; + clocks = <&clks IMX6UL_CLK_ENET2_REF_125M>; + startup-delay-us = <150000>; + }; }; &adc1 { @@ -81,6 +93,7 @@ &fec2 { pinctrl-1 = <&pinctrl_enet2_sleep>; phy-mode = "rmii"; phy-handle = <ðphy1>; + phy-supply = <®_eth_phy>; status = "okay"; mdio {