From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Alexandre Mergnat <amergnat@baylibre.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
macpaul.Lin@mediatek.com
Cc: vsatoes@baylibre.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH] arm64: dts: mediatek: add mmc2 support for mt8365-evk
Date: Tue, 14 Jan 2025 11:38:22 +0100 [thread overview]
Message-ID: <91ac34bf-e184-486d-9af7-f9ddaf8f26ed@collabora.com> (raw)
In-Reply-To: <20250109-mmc2-support-v1-1-9b9d1b1ae35d@baylibre.com>
Il 10/01/25 12:10, Alexandre Mergnat ha scritto:
> Adds support for the MMC2 interface on the MT8365 EVK board.
> It introduces a fixed regulator for the MMC2 VDD33 supply and configures
> the MMC2 node with a 4-bit bus width, high-speed capabilities, UHS
> modes, and appropriate power supplies. Enabled SDIO IRQ, wakeup source,
> and kept power during suspend for wireless chip functionality.
>
> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 85 +++++++++++++++++++++++++++++
> 1 file changed, 85 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
> index 7d90112a7e27..309dc76322d4 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
> @@ -53,6 +53,15 @@ memory@40000000 {
> reg = <0 0x40000000 0 0xc0000000>;
> };
>
> + mmc2_vdd33: mmc2_vdd33-regulator {
> + compatible = "regulator-fixed";
> + regulator-name = "mmc2_vdd33";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + gpio = <&pio 121 0>;
> + enable-active-high;
> + };
> +
> usb_otg_vbus: regulator-0 {
> compatible = "regulator-fixed";
> regulator-name = "otg_vbus";
> @@ -197,6 +206,28 @@ &mmc1 {
> status = "okay";
> };
>
> +&mmc2 {
> + assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL>;
> + assigned-clocks = <&topckgen CLK_TOP_MSDC50_2_SEL>;
> + bus-width = <4>;
> + cap-sd-highspeed;
> + cap-sdio-irq;
> + hs400-ds-delay = <0x12012>;
> + keep-power-in-suspend;
Why keep-power-in-suspend?
> + max-frequency = <200000000>;
> + non-removable;
> + pinctrl-0 = <&mmc2_default_pins>;
> + pinctrl-1 = <&mmc2_uhs_pins>;
> + pinctrl-names = "default", "state_uhs";
> + sd-uhs-sdr104;
> + sd-uhs-sdr25;
> + sd-uhs-sdr50;
> + vmmc-supply = <&mmc2_vdd33>;
> + vqmmc-supply = <&mt6357_vcn18_reg>;
> + wakeup-source;
> + status = "okay";
> +};
> +
> &mt6357_pmic {
> interrupts-extended = <&pio 145 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-controller;
> @@ -410,6 +441,60 @@ cmd-dat-pins {
> };
> };
>
> + mmc2_default_pins: mmc2-default-pins {
> + clk-pins {
> + pinmux = <MT8365_PIN_81_MSDC2_CLK__FUNC_MSDC2_CLK>;
pinmux is always first, but then:
b ias-pull-....
d rive-strength
Alphabetical order please :-)
Cheers,
Angelo
next prev parent reply other threads:[~2025-01-14 10:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 11:10 Alexandre Mergnat
2025-01-14 10:38 ` AngeloGioacchino Del Regno [this message]
2025-01-15 12:12 ` Alexandre Mergnat
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=91ac34bf-e184-486d-9af7-f9ddaf8f26ed@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=amergnat@baylibre.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=macpaul.Lin@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=vsatoes@baylibre.com \
/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
all inboxes | Powered by JetHome®