[PATCH 3/4] arm64: dts: mediatek: add device-tree for Genio 720-EVK board

David Lechner dlechner at baylibre.com
Thu Mar 12 17:26:37 PDT 2026


On 12/3/25 7:59 AM, Louis-Alexis Eyraud wrote:
> Add support for MediaTek MT8189 SoC and its variants, and a device-tree
> for the basic hardware enablement of the Genio 720-EVK board, based on
> MT8391 SoC.
> 

...

> +	mmc0_default_pins: mmc0-default-pins {
> +		pins-clk {
> +			pinmux = <PINMUX_GPIO162__FUNC_MSDC0_CLK>;
> +			drive-strength = <6>;
> +			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
> +		};
> +
> +		pins-cmd-dat {
> +			pinmux = <PINMUX_GPIO166__FUNC_MSDC0_DAT0>,
> +				 <PINMUX_GPIO165__FUNC_MSDC0_DAT1>,
> +				 <PINMUX_GPIO164__FUNC_MSDC0_DAT2>,
> +				 <PINMUX_GPIO163__FUNC_MSDC0_DAT3>,
> +				 <PINMUX_GPIO159__FUNC_MSDC0_DAT4>,
> +				 <PINMUX_GPIO158__FUNC_MSDC0_DAT5>,
> +				 <PINMUX_GPIO157__FUNC_MSDC0_DAT6>,
> +				 <PINMUX_GPIO156__FUNC_MSDC0_DAT7>,
> +				 <PINMUX_GPIO161__FUNC_MSDC0_CMD>;
> +			input-enable;
> +			drive-strength = <6>;
> +			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
> +		};

Should we also have pins-ds here to match mmc0-uhs-pins?

> +
> +		pins-rst {
> +			pinmux = <PINMUX_GPIO160__FUNC_MSDC0_RSTB>;
> +			drive-strength = <6>;
> +			bias-pull-up = <MTK_PUPD_SET_R1R0_00>;
> +		};
> +	};
> +
> +	mmc0_uhs_pins: mmc0-uhs-pins {
> +		pins-clk {
> +			pinmux = <PINMUX_GPIO162__FUNC_MSDC0_CLK>;
> +			drive-strength = <8>;
> +			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
> +		};
> +
> +		pins-cmd-dat {
> +			pinmux = <PINMUX_GPIO166__FUNC_MSDC0_DAT0>,
> +				 <PINMUX_GPIO165__FUNC_MSDC0_DAT1>,
> +				 <PINMUX_GPIO164__FUNC_MSDC0_DAT2>,
> +				 <PINMUX_GPIO163__FUNC_MSDC0_DAT3>,
> +				 <PINMUX_GPIO159__FUNC_MSDC0_DAT4>,
> +				 <PINMUX_GPIO158__FUNC_MSDC0_DAT5>,
> +				 <PINMUX_GPIO157__FUNC_MSDC0_DAT6>,
> +				 <PINMUX_GPIO156__FUNC_MSDC0_DAT7>,
> +				 <PINMUX_GPIO161__FUNC_MSDC0_CMD>;
> +			input-enable;
> +			drive-strength = <8>;
> +			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
> +		};
> +
> +		pins-ds {
> +			pinmux = <PINMUX_GPIO167__FUNC_MSDC0_DSL>;
> +			drive-strength = <8>;
> +			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
> +		};
> +
> +		pins-rst {
> +			pinmux = <PINMUX_GPIO160__FUNC_MSDC0_RSTB>;
> +			bias-pull-up = <MTK_PUPD_SET_R1R0_00>;
> +		};
> +	};
> +
> +	mmc1_default_pins: mmc1-default-pins {
> +		pins-clk {
> +			pinmux = <PINMUX_GPIO169__FUNC_MSDC1_CLK>;
> +			drive-strength = <6>;
> +			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
> +		};
> +
> +		pins-cmd-dat {
> +			pinmux = <PINMUX_GPIO170__FUNC_MSDC1_DAT0>,
> +				 <PINMUX_GPIO171__FUNC_MSDC1_DAT1>,
> +				 <PINMUX_GPIO172__FUNC_MSDC1_DAT2>,
> +				 <PINMUX_GPIO173__FUNC_MSDC1_DAT3>,
> +				 <PINMUX_GPIO168__FUNC_MSDC1_CMD>;
> +			input-enable;
> +			drive-strength = <6>;
> +			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
> +		};
> +
> +		pins-insert {
> +			pinmux = <PINMUX_GPIO2__FUNC_GPIO2>;
> +			bias-pull-up;
> +		};
> +	};
> +
> +	mmc1_uhs_pins: mmc1-uhs-pins {
> +		pins-clk {
> +			pinmux = <PINMUX_GPIO169__FUNC_MSDC1_CLK>;
> +			drive-strength = <8>;
> +			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
> +		};
> +
> +		pins-cmd-dat {
> +			pinmux = <PINMUX_GPIO170__FUNC_MSDC1_DAT0>,
> +				 <PINMUX_GPIO171__FUNC_MSDC1_DAT1>,
> +				 <PINMUX_GPIO172__FUNC_MSDC1_DAT2>,
> +				 <PINMUX_GPIO173__FUNC_MSDC1_DAT3>,
> +				 <PINMUX_GPIO168__FUNC_MSDC1_CMD>;
> +			input-enable;
> +			drive-strength = <8>;
> +			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
> +		};

Don't we also need pins-insert here? (to match mmc1-default-pins)

I was having trouble with the CD input pin not working in U-Boot
until I added it.

> +	};
> +



More information about the Linux-mediatek mailing list