From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Alexandre Mergnat <amergnat@baylibre.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org,
devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org,
Kevin Hilman <khilman@baylibre.com>
Subject: Re: [PATCH v7 08/11] arm64: dts: mediatek: add ethernet support for mt8365-evk
Date: Mon, 15 May 2023 13:47:49 +0200 [thread overview]
Message-ID: <c6ea1360-9ca7-783e-0d0f-f5100fd8d024@collabora.com> (raw)
In-Reply-To: <20230203-evk-board-support-v7-8-98cbdfac656e@baylibre.com>
Il 11/05/23 18:29, Alexandre Mergnat ha scritto:
> - Enable "vibr" and "vsim2" regulators to power the ethernet chip.
>
> Tested-by: Kevin Hilman <khilman@baylibre.com>
> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 57 +++++++++++++++++++++++++++++
> 1 file changed, 57 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
> index 3a472f620ac0..cf81dace466a 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
> @@ -88,6 +88,28 @@ optee_reserved: optee@43200000 {
> };
> };
>
> +ðernet {
> + pinctrl-0 = <ðernet_pins>;
> + pinctrl-names = "default";
> + phy-handle = <ð_phy>;
> + phy-mode = "rmii";
> + /*
> + * Ethernet and HDMI (DSI0) are sharing pins.
> + * Only one can be enabled at a time and require the physical switch
> + * SW2101 to be set on LAN position
> + */
> + status = "disabled";
> +
> + mdio {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + eth_phy: ethernet-phy@0 {
> + reg = <0>;
> + };
> + };
> +};
> +
> &i2c0 {
> clock-frequency = <100000>;
> pinctrl-0 = <&i2c0_pins>;
> @@ -137,12 +159,47 @@ &mt6357_pmic {
> #interrupt-cells = <2>;
> };
>
> +/* Needed by analog switch (multiplexer), HDMI and ethernet */
What part of the ethernet HW needs this regulator?
> +&mt6357_vibr_reg {
> + regulator-always-on;
> +};
> +
> /* Needed by MSDC IP */
> &mt6357_vmc_reg {
> regulator-always-on;
> };
>
> +/* Needed by ethernet */
Same question for this one. If a device needs us to turn on a regulator in
order for it to be powered (read: if the supply is not fixed-on), setting
that supply as always-on is not beneficial for anyone, as eventually in a
power-off sleep/idle/whatever-pm state, this device (whole chip or IP) *will*
leak some amount of power.
If hardware engineers decided to connect a device to a supply that *can be*
shut down entirely there must be a reason, right? :-)
Regards,
Angelo
next prev parent reply other threads:[~2023-05-15 11:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-11 16:29 [PATCH v7 00/11] Improve the MT8365 SoC and EVK board support Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 01/11] arm64: defconfig: enable MT6357 regulator Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 02/11] arm64: defconfig: enable Mediatek PMIC key Alexandre Mergnat
2023-05-15 11:35 ` AngeloGioacchino Del Regno
2023-05-11 16:29 ` [PATCH v7 03/11] arm64: dts: mediatek: add watchdog support for mt8365 SoC Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 04/11] arm64: dts: mediatek: add mt6357 PMIC support for mt8365-evk Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 05/11] arm64: dts: mediatek: add mmc " Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 06/11] arm64: dts: mediatek: set vmc regulator as always on amergnat
2023-05-15 11:44 ` AngeloGioacchino Del Regno
2023-05-22 14:24 ` Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 07/11] arm64: dts: mediatek: add usb controller support for mt8365-evk Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 08/11] arm64: dts: mediatek: add ethernet " Alexandre Mergnat
2023-05-15 11:47 ` AngeloGioacchino Del Regno [this message]
2023-05-22 14:23 ` Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 09/11] arm64: dts: mediatek: add OPP support for mt8365 SoC Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 10/11] arm64: dts: mediatek: add cpufreq support for mt8365-evk Alexandre Mergnat
2023-05-11 16:29 ` [PATCH v7 11/11] arm64: dts: mediatek: Add CPU Idle support amergnat
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=c6ea1360-9ca7-783e-0d0f-f5100fd8d024@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=amergnat@baylibre.com \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=will@kernel.org \
--cc=wim@linux-watchdog.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox