Skip to content

Commit c75b725

Browse files
RadxaNaokimmind
authored andcommitted
arm64: dts: rockchip: fix/update sdmmc properties for rock-5a and -5b
add alias for sdmmc as mmc1. make card detect work. Fixes: ea3e66e ("arm64: dts: rockchip: add SD card support to rock-5a") Fixes: 2a6d4af ("arm64: dts: rockchip: Add SD card support to rock-5b") Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> Link: https://lore.kernel.org/r/20230722121150.130126-1-naoki@radxa.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 1642bf6 commit c75b725

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
aliases {
1313
mmc0 = &sdhci;
14+
mmc1 = &sdmmc;
1415
serial2 = &uart2;
1516
};
1617

@@ -249,6 +250,7 @@
249250
bus-width = <4>;
250251
cap-mmc-highspeed;
251252
cap-sd-highspeed;
253+
cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
252254
disable-wp;
253255
sd-uhs-sdr104;
254256
vmmc-supply = <&vcc_3v3_s3>;

arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
aliases {
1515
mmc0 = &sdhci;
16+
mmc1 = &sdmmc;
1617
serial2 = &uart2;
1718
};
1819

@@ -361,6 +362,7 @@
361362
bus-width = <4>;
362363
cap-mmc-highspeed;
363364
cap-sd-highspeed;
365+
cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
364366
disable-wp;
365367
max-frequency = <150000000>;
366368
no-sdio;

0 commit comments

Comments
 (0)