mediatek: update pinconf for GL.iNet eMMC boards

Update the pin-configuration as well as maximum frequency for the eMMC
flash.

 - Use 26 MHz as the maximum clock of the eMMC memory
 - Configure 12mA as the pin drive-strength
 - Enable internal pull-reistors

Signed-off-by: Yin Ni <yin.ni@gl-inet.com>
[adapt commit message]
Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
Yin Ni 2025-04-07 11:49:42 +08:00 committed by David Bauer
parent 5b0f169f28
commit f7735158f3
2 changed files with 54 additions and 2 deletions

View file

@ -133,7 +133,7 @@
pinctrl-0 = <&mmc0_pins_default>; pinctrl-0 = <&mmc0_pins_default>;
pinctrl-1 = <&mmc0_pins_uhs>; pinctrl-1 = <&mmc0_pins_uhs>;
bus-width = <8>; bus-width = <8>;
max-frequency = <52000000>; max-frequency = <26000000>;
cap-mmc-highspeed; cap-mmc-highspeed;
vmmc-supply = <&reg_3p3v>; vmmc-supply = <&reg_3p3v>;
non-removable; non-removable;
@ -217,12 +217,38 @@
function = "flash"; function = "flash";
groups = "emmc_8"; groups = "emmc_8";
}; };
conf-cmd-dat {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO",
"SPI0_CS", "SPI0_HOLD", "SPI0_WP",
"SPI1_CLK", "SPI1_MOSI", "SPI1_MISO";
input-enable;
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-up-adv = <1>;
};
conf-clk {
pins = "SPI1_CS";
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-down-adv = <2>;
};
}; };
mmc0_pins_uhs: mmc0-pins-uhs { mmc0_pins_uhs: mmc0-pins-uhs {
mux { mux {
function = "flash"; function = "flash";
groups = "emmc_8"; groups = "emmc_8";
}; };
conf-cmd-dat {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO",
"SPI0_CS", "SPI0_HOLD", "SPI0_WP",
"SPI1_CLK", "SPI1_MOSI", "SPI1_MISO";
input-enable;
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-up-adv = <1>;
};
conf-clk {
pins = "SPI1_CS";
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-down-adv = <2>;
};
}; };
pcie_pins: pcie-pins { pcie_pins: pcie-pins {
mux { mux {

View file

@ -78,12 +78,38 @@
function = "flash"; function = "flash";
groups = "emmc_45"; groups = "emmc_45";
}; };
conf-cmd-dat {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO",
"SPI0_CS", "SPI0_HOLD", "SPI0_WP",
"SPI1_CLK", "SPI1_MOSI", "SPI1_MISO";
input-enable;
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-up-adv = <1>;
};
conf-clk {
pins = "SPI1_CS";
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-down-adv = <2>;
};
}; };
mmc0_pins_uhs: mmc0-pins-uhs { mmc0_pins_uhs: mmc0-pins-uhs {
mux { mux {
function = "flash"; function = "flash";
groups = "emmc_45"; groups = "emmc_45";
}; };
conf-cmd-dat {
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO",
"SPI0_CS", "SPI0_HOLD", "SPI0_WP",
"SPI1_CLK", "SPI1_MOSI", "SPI1_MISO";
input-enable;
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-up-adv = <1>;
};
conf-clk {
pins = "SPI1_CS";
drive-strength = <MTK_DRIVE_12mA>;
mediatek,pull-down-adv = <2>;
};
}; };
}; };
@ -144,7 +170,7 @@
pinctrl-0 = <&mmc0_pins_default>; pinctrl-0 = <&mmc0_pins_default>;
pinctrl-1 = <&mmc0_pins_uhs>; pinctrl-1 = <&mmc0_pins_uhs>;
bus-width = <8>; bus-width = <8>;
max-frequency = <52000000>; max-frequency = <26000000>;
vmmc-supply = <&reg_3p3v>; vmmc-supply = <&reg_3p3v>;
cap-mmc-highspeed; cap-mmc-highspeed;
non-removable; non-removable;