- Add SD/MMC related RK3399 clocks
- Add RK3399 to rockchip_dwmmc
- Add arasan,sdhci-5.1 to sdhci_fdt
I've seen dwmmc not work before, but today I retested with a known good microSD card and it actually does work. (Slowly…)
Unfortunately, I don't have an eMMC module, so I can't fully test that, but at least I see that the controller attaches and the bus gets scanned.
rockchip_dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller (RockChip)> mem 0xfe320000-0xfe323fff irq 11 on ofwbus0 rockchip_dwmmc0: Hardware version ID is 270a mmc0: <MMC/SD bus> on rockchip_dwmmc0 sdhci_fdt0: <Arasan generic fdt SDHCI controller> mem 0xfe330000-0xfe33ffff irq 12 on ofwbus0 sdhci_fdt0-slot0: Hardware doesn't specify timeout clock frequency, setting BROKEN_TIMEOUT quirk. sdhci_fdt0: 1 slot(s) allocated mmc1: <MMC/SD bus> on sdhci_fdt0 … mmcsd0: 16GB <SDHC USDU1 2.0 SN 42B594F0 MFG 01/2018 by 116 J`> at mmc0 50.0MHz/4bit/256-block mmc1: No compatible cards found on bus