ARM: dts: exynos: add mmc aliases

Add aliases for eMMC, SD card and WiFi where applicable, so that
assigned mmc indeces are always the same.

Co-developed-by: Anton Bambura <jenneron@protonmail.com>
Signed-off-by: Anton Bambura <jenneron@protonmail.com>
[ Tested on exynos5800-peach-pi ]
Tested-by: Valentine Iourine <iourine@iourine.msk.su>
Signed-off-by: Henrik Grimler <henrik@grimler.se>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20230402144724.17839-3-henrik@grimler.se
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
Henrik Grimler 2023-04-02 16:47:24 +02:00 committed by Krzysztof Kozlowski
parent 37f9514e61
commit 3ddba33dc2
32 changed files with 134 additions and 0 deletions

View File

@ -16,6 +16,10 @@
model = "Samsung ARTIK5 evaluation board";
compatible = "samsung,artik5-eval", "samsung,artik5",
"samsung,exynos3250", "samsung,exynos3";
aliases {
mmc0 = &mshc_2;
};
};
&mshc_2 {

View File

@ -17,6 +17,11 @@
/ {
compatible = "samsung,artik5", "samsung,exynos3250", "samsung,exynos3";
aliases {
mmc0 = &mshc_0;
mmc1 = &mshc_1;
};
chosen {
stdout-path = &serial_2;
};

View File

@ -22,6 +22,7 @@
aliases {
i2c7 = &i2c_max77836;
mmc0 = &mshc_0;
};
memory@40000000 {

View File

@ -23,6 +23,8 @@
aliases {
i2c7 = &i2c_max77836;
mmc0 = &mshc_0;
mmc1 = &mshc_1;
};
chosen {

View File

@ -25,6 +25,12 @@
reg = <0x40000000 0x40000000>;
};
aliases {
mmc0 = &sdhci_0;
mmc1 = &sdhci_2;
mmc2 = &sdhci_3;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -30,6 +30,11 @@
0x70000000 0x10000000>;
};
aliases {
mmc0 = &sdhci_0;
mmc1 = &sdhci_2;
};
chosen {
bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M init=/linuxrc";
stdout-path = "serial2:115200n8";

View File

@ -25,6 +25,10 @@
reg = <0x40000000 0x80000000>;
};
aliases {
mmc0 = &sdhci_2;
};
chosen {
bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M init=/linuxrc";
stdout-path = "serial1:115200n8";

View File

@ -26,6 +26,12 @@
0x70000000 0x10000000>;
};
aliases {
mmc0 = &sdhci_0;
mmc1 = &sdhci_2;
mmc2 = &sdhci_3;
};
chosen {
bootargs = "root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
stdout-path = "serial2:115200n8";

View File

@ -24,6 +24,12 @@
0x50000000 0x10000000>;
};
aliases {
mmc0 = &sdhci_0;
mmc1 = &sdhci_2;
mmc2 = &sdhci_3;
};
chosen {
bootargs = "root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
stdout-path = "serial2:115200n8";

View File

@ -20,6 +20,10 @@
model = "TOPEET iTop 4412 Elite board based on Exynos4412";
compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4";
aliases {
mmc1 = &sdhci_2;
};
chosen {
bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootdelay=1 rootwait";
stdout-path = "serial2:115200n8";

View File

@ -23,6 +23,10 @@
reg = <0x40000000 0x40000000>;
};
aliases {
mmc0 = &mshc_0;
};
firmware@203f000 {
compatible = "samsung,secure-firmware";
reg = <0x0203f000 0x1000>;

View File

@ -25,6 +25,9 @@
aliases {
i2c11 = &i2c_max77693;
i2c12 = &i2c_max77693_fuel;
mmc0 = &mshc_0;
mmc2 = &sdhci_2;
mmc3 = &sdhci_3;
};
chosen {

View File

@ -13,6 +13,11 @@
#include "exynos-mfc-reserved-memory.dtsi"
/ {
aliases {
mmc0 = &mshc_0;
mmc2 = &sdhci_2;
};
chosen {
stdout-path = &serial_1;
};

View File

@ -25,6 +25,11 @@
reg = <0x40000000 0x40000000>;
};
aliases {
mmc0 = &mshc_0;
mmc1 = &sdhci_2;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -26,6 +26,12 @@
reg = <0x40000000 0x80000000>;
};
aliases {
mmc0 = &mshc_0;
mmc2 = &sdhci_2;
mmc3 = &sdhci_3;
};
chosen {
stdout-path = &serial_2;
};

View File

@ -22,6 +22,10 @@
reg = <0x40000000 0x40000000>;
};
aliases {
mmc0 = &sdhci_2;
};
chosen {
bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M init=/linuxrc";
stdout-path = "serial1:115200n8";

View File

@ -17,6 +17,10 @@
model = "FriendlyARM TINY4412 board based on Exynos4412";
compatible = "friendlyarm,tiny4412", "samsung,exynos4412", "samsung,exynos4";
aliases {
mmc0 = &sdhci_2;
};
chosen {
stdout-path = &serial_0;
};

View File

@ -23,6 +23,11 @@
reg = <0x40000000 0x80000000>;
};
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -17,6 +17,8 @@
compatible = "samsung,smdk5250", "samsung,exynos5250", "samsung,exynos5";
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
memory@40000000 {

View File

@ -15,6 +15,9 @@
/ {
aliases {
i2c104 = &i2c_104;
mmc0 = &mmc_0; /* eMMC */
mmc1 = &mmc_2; /* SD */
mmc2 = &mmc_3; /* WiFi */
};
memory@40000000 {

View File

@ -23,6 +23,11 @@
reg = <0x40000000 0x80000000>;
};
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_1;
};
chosen {
bootargs = "console=tty1";
stdout-path = "serial3:115200n8";

View File

@ -18,6 +18,11 @@
reg = <0x20000000 0x80000000>;
};
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -21,6 +21,8 @@
aliases {
ethernet = &ethernet;
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
memory@40000000 {

View File

@ -18,6 +18,11 @@
reg = <0x40000000 0x80000000>;
};
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -23,6 +23,11 @@
reg = <0x20000000 0x80000000>;
};
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
chosen {
stdout-path = "serial3:115200n8";
};

View File

@ -28,6 +28,11 @@
* for more details.
*/
aliases {
mmc0 = &mmc_0;
mmc2 = &mmc_2;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -31,6 +31,9 @@
aliases {
/* Assign 20 so we don't get confused w/ builtin ones */
i2c20 = &i2c_tunnel;
mmc0 = &mmc_0; /* eMMC */
mmc1 = &mmc_2; /* uSD */
mmc2 = &mmc_1; /* WiFi */
};
backlight: backlight {

View File

@ -21,6 +21,11 @@
reg = <0x20000000 0x80000000>;
};
aliases {
mmc0 = &mmc_0;
mmc1 = &mmc_2;
};
chosen {
bootargs = "init=/linuxrc";
stdout-path = "serial2:115200n8";

View File

@ -19,6 +19,10 @@
reg = <0x40000000 0x7ea00000>;
};
aliases {
mmc2 = &mmc_2;
};
chosen {
stdout-path = "serial2:115200n8";
};

View File

@ -13,6 +13,10 @@
#include "exynos5422-odroid-core.dtsi"
/ {
aliases {
mmc0 = &mmc_0;
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";

View File

@ -19,6 +19,10 @@
chassis-type = "handset";
aliases {
mmc0 = &mmc_0;
};
memory@20000000 {
device_type = "memory";
reg = <0x20000000 0x80000000>; /* 2 GiB */

View File

@ -29,6 +29,9 @@
aliases {
/* Assign 20 so we don't get confused w/ builtin ones */
i2c20 = &i2c_tunnel;
mmc0 = &mmc_0; /* eMMC */
mmc1 = &mmc_2; /* SD */
mmc2 = &mmc_1; /* WiFi */
};
backlight: backlight {