All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Ziswiler <marcel@ziswiler.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Philippe Schenker <philippe.schenker@toradex.com>,
	Denys Drozdov <denys.drozdov@toradex.com>,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>,
	Fabio Estevam <festevam@gmail.com>,
	Frank Rowand <frowand.list@gmail.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	NXP Linux Team <linux-imx@nxp.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>,
	Russell King <linux@armlinux.org.uk>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Shawn Guo <shawnguo@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 03/14] ARM: dts: imx6ull-colibri: add phy-supply to fec
Date: Mon, 25 Apr 2022 18:23:45 +0200	[thread overview]
Message-ID: <20220425162356.176665-4-marcel@ziswiler.com> (raw)
In-Reply-To: <20220425162356.176665-1-marcel@ziswiler.com>

From: Philippe Schenker <philippe.schenker@toradex.com>

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 <philippe.schenker@toradex.com>
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---

(no changes since v1)

 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 = <&reg_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 = <&reg_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 = <&ethphy1>;
+	phy-supply = <&reg_eth_phy>;
 	status = "okay";
 
 	mdio {
-- 
2.35.1


WARNING: multiple messages have this Message-ID (diff)
From: Marcel Ziswiler <marcel@ziswiler.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Philippe Schenker <philippe.schenker@toradex.com>,
	Denys Drozdov <denys.drozdov@toradex.com>,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>,
	Fabio Estevam <festevam@gmail.com>,
	Frank Rowand <frowand.list@gmail.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	NXP Linux Team <linux-imx@nxp.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>,
	Russell King <linux@armlinux.org.uk>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Shawn Guo <shawnguo@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 03/14] ARM: dts: imx6ull-colibri: add phy-supply to fec
Date: Mon, 25 Apr 2022 18:23:45 +0200	[thread overview]
Message-ID: <20220425162356.176665-4-marcel@ziswiler.com> (raw)
In-Reply-To: <20220425162356.176665-1-marcel@ziswiler.com>

From: Philippe Schenker <philippe.schenker@toradex.com>

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 <philippe.schenker@toradex.com>
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---

(no changes since v1)

 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 = <&reg_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 = <&reg_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 = <&ethphy1>;
+	phy-supply = <&reg_eth_phy>;
 	status = "okay";
 
 	mdio {
-- 
2.35.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2022-04-25 16:26 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-25 16:23 [PATCH v2 00/14] ARM: dts: imx6ull-colibri: device tree improvements Marcel Ziswiler
2022-04-25 16:23 ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 01/14] ARM: dts: imx6ull-colibri: use pull-down for adc pins Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 02/14] ARM: dts: imx6ull-colibri: change touch i2c parameters Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` Marcel Ziswiler [this message]
2022-04-25 16:23   ` [PATCH v2 03/14] ARM: dts: imx6ull-colibri: add phy-supply to fec Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 04/14] ARM: dts: imx6ull-colibri: add touchscreen device nodes Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 05/14] ARM: dts: imx6ull-colibri: update usdhc1 pixmux and signaling Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 06/14] ARM: dts: imx6ull-colibri: update device trees to support overlays Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 07/14] ARM: dts: imx6ull-colibri: add gpio-line-names Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 08/14] dt-bindings: arm: fsl: add toradex,colibri-imx6ull Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-05-02 23:59   ` Rob Herring
2022-05-02 23:59     ` Rob Herring
2022-05-05  2:42   ` Shawn Guo
2022-05-05  2:42     ` Shawn Guo
2022-04-25 16:23 ` [PATCH v2 09/14] ARM: dts: imx6ull-colibri: add support for toradex iris carrier boards Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 10/14] ARM: dts: imx6ull-colibri: add support for toradex aster " Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 11/14] ARM: dts: imx6ull-colibri: fix nand bch geometry Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 12/14] ARM: dts: imx6ull-colibri: add/update some comments Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 13/14] ARM: dts: imx6ull-colibri: move gpio-keys node to som dtsi Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-04-25 16:23 ` [PATCH v2 14/14] ARM: dts: imx6ull-colibri: improve pinctrl node names Marcel Ziswiler
2022-04-25 16:23   ` Marcel Ziswiler
2022-05-05  2:47 ` [PATCH v2 00/14] ARM: dts: imx6ull-colibri: device tree improvements Shawn Guo
2022-05-05  2:47   ` Shawn Guo
2022-05-05  8:56   ` Marcel Ziswiler
2022-05-05  8:56     ` Marcel Ziswiler
2022-05-06 13:44   ` Marcel Ziswiler
2022-05-06 13:44     ` Marcel Ziswiler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220425162356.176665-4-marcel@ziswiler.com \
    --to=marcel@ziswiler.com \
    --cc=denys.drozdov@toradex.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=frowand.list@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=marcel.ziswiler@toradex.com \
    --cc=philippe.schenker@toradex.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.