bootm 0x24000000#kernel_dtb${at91_overlays_config}#sdmmc0_hiWe provide an out-of-tree overlay for this specific purpose. The overlay needs to be applied to our dt-overlay-at91 tree. The overlay is provided on this page as a patch here * 0001-sama5d27_som1_ek-add-overlay-for-high-drive-strength.patch: overlay for high drive strength for sdmmc0.
diff --git a/board/sama5d27_som1_ek/sama5d27_som1_ek.c b/board/sama5d27_som1_ek/sama5d27_som1_ek.c index 0297eed..7ee184a 100644 --- a/board/sama5d27_som1_ek/sama5d27_som1_ek.c +++ b/board/sama5d27_som1_ek/sama5d27_som1_ek.c @@ -517,16 +517,16 @@ void at91_sdhc_hw_init(void) #ifdef CONFIG_SDHC0 const struct pio_desc sdmmc_pins[] = { - {"SDMMC0_CK", AT91C_PIN_PA(0), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_CMD", AT91C_PIN_PA(1), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT0", AT91C_PIN_PA(2), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT1", AT91C_PIN_PA(3), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT2", AT91C_PIN_PA(4), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT3", AT91C_PIN_PA(5), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT4", AT91C_PIN_PA(6), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT5", AT91C_PIN_PA(7), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT6", AT91C_PIN_PA(8), 0, PIO_DEFAULT, PIO_PERIPH_A}, - {"SDMMC0_DAT7", AT91C_PIN_PA(9), 0, PIO_DEFAULT, PIO_PERIPH_A}, + {"SDMMC0_CK", AT91C_PIN_PA(0), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_CMD", AT91C_PIN_PA(1), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT0", AT91C_PIN_PA(2), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT1", AT91C_PIN_PA(3), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT2", AT91C_PIN_PA(4), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT3", AT91C_PIN_PA(5), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT4", AT91C_PIN_PA(6), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT5", AT91C_PIN_PA(7), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT6", AT91C_PIN_PA(8), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, + {"SDMMC0_DAT7", AT91C_PIN_PA(9), 0, PIO_DRVSTR_HI, PIO_PERIPH_A}, {"SDMMC0_RSTN", AT91C_PIN_PA(10), 0, PIO_DEFAULT, PIO_PERIPH_A}, {"SDMMC0_VDDSEL", AT91C_PIN_PA(11), 0, PIO_DEFAULT, PIO_PERIPH_A}, {"SDMMC0_WP", AT91C_PIN_PA(12), 1, PIO_DEFAULT, PIO_PERIPH_A},
Manufacturer | Capacity | eMMC version | Part number | AT91Bootstrap log | Linux kernel log | Performance test |
---|---|---|---|---|---|---|
Toshiba | 14.7 GBytes | v5.0/v5.01 | THGBMFG7C1LBA1L | MMC: Specification Version 4.0 or higherMMC: v5.0/5.01 detectedMMC: highspeed supportedMMC: Dual Data Rate supportedMMC: detecting buswidth...MMC: 8-bit bus width detectedSD/MMC: Done to load image | mmc0: new DDR MMC card at address 0001mmcblk0: mmc0:0001 016G70 14.7 GiB | real 0m1.761suser 0m0.000ssys 0m1.120s |
Samsung | 14.6 GBytes | v5.1 | KLMAG1JENB B041 adapter only has 4 data lines | MMC: Specification Version 4.0 or higherMMC: v5.1 detectedMMC: highspeed supportedMMC: Dual Data Rate supportedMMC: detecting buswidth...MMC: 4-bit bus width detectedSD/MMC: Done to load image | mmc0: switch to bus width 8 failedmmc0: new DDR MMC card at address 0001mmcblk0: mmc0:0001 AJNB4R 14.6 GiB | real 0m2.418suser 0m0.010ssys 0m1.150s |
Kingston | 14.6 GBytes | v5.0/v5.01 | EMMC16G-S100 | MMC: Specification Version 4.0 or higherMMC: v5.0/5.01 detectedMMC: highspeed supportedMMC: Dual Data Rate supportedMMC: detecting buswidth...MMC: 8-bit bus width detectedSD/MMC: Done to load image | mmc0: new DDR MMC card at address 0001mmcblk0: mmc0:0001 S10016 14.6 GiB | real 0m1.758suser 0m0.010ssys 0m1.120s |
Kingston | 14.3 GBytes | v5.0/v5.01 | EMMC16G-S110 | MMC: Specification Version 4.0 or higherMMC: v5.0/5.01 detectedMMC: highspeed supportedMMC: Dual Data Rate supportedMMC: detecting buswidth...MMC: 8-bit bus width detectedSD/MMC: Done to load image | mmc0: new DDR MMC card at address 0001mmcblk0: mmc0:0001 S11016 14.3 GiB | real 0m1.757suser 0m0.030ssys 0m1.090s |
Micron | 14.6 GBytes | v5.0/v5.01 | N2M400HDB321A3C | MMC: Specification Version 4.0 or higherMMC: v5.0/5.01 detectedMMC: highspeed supportedMMC: Dual Data Rate supportedMMC: detecting buswidth...MMC: 8-bit bus width detectedSD/MMC: Done to load image | mmc0: new high speed MMC card at address 0001mmcblk0: mmc0:0001 MMC16G 14.6 GiBDuring tests there were transfer errors in DDR mode. This can be due to signal integrity.The card was forced into high speed mode only, 8 bit bus, 52 Mhz. | real 0m2.755suser 0m0.010ssys 0m1.060s |
Kingston | 7.20 GBytes | v4.5/v4.51 | KE4CN3K6A | MMC: Specification Version 4.0 or higherMMC: v4.5/v4.51 detectedMMC: highspeed supportedMMC: Dual Data Rate supportedMMC: detecting buswidth...MMC: 8-bit bus width detectedSD/MMC: Done to load image | mmc0: new DDR MMC card at address 0001mmcblk0: mmc0:0001 MMC08G 7.20 GiB | Failing in Linux with current adapter. Failures detected when connected to laptop connector. TBD |
WebFaqBaseForm | |
---|---|
Boards | Sama5d27Som1EK |
Components | AT91Bootstrap, Kernel, linux-4.19-at91, linux-5.4-at91 |
Summary |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
0001-sama5d27_som1_ek-add-overlay-for-high-drive-strength.patch | manage | 2.4 K | 2019-08-20 - 07:07 | EugenHristev | overlay for high drive strength for sdmmc0 |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.