dm: mmc: sunxi: Add A10/A20 compatible strings
PATCH 1/2 dm: mmc: sunxi: Add A10/A20 compatible strings
Commit dd27918c2252 ("dm: mmc: sunxi: Add support for driver model") only added the allwinner,sun5i-a13-mmc compatible string for this driver. The DM initialisation code here also works with (at least) A10 and A20, so add the appropriate compatible strings as per Linux 4.17's driver.
Tested on A10 Cubieboard and A20 pcDuino3 Nano with CONFIG_DM_MMC. (A20 worked already, because sun7i-a20.dtsi specifies both the A13 and A20 strings.)
---
drivers/mmc/sunxi_mmc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mmc/sunxi_mmc.c +2 -0
@@ -637,7 +637,9 @@ static int sunxi_mmc_bind(struct udevice *dev) }static const struct udevice_id sunxi_mmc_ids[] = { + { .compatible ="allwinner,sun4i-a10-mmc" }, { .compatible ="allwinner,sun5i-a13-mmc" }, + { .compatible ="allwinner,sun7i-a20-mmc" }, { } };
Signature · 1 line
2.18.0
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
Use the driver model for MMC and SATA, in preparation for CONFIG_BLK defaulting to y.
Tested on A10 Cubieboard.
---
I imagine an A13 version (no DM_SCSI needed) would work as well, but I don't have an A13 machine to test with.
arch/arm/mach-sunxi/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-sunxi/Kconfig +2 -0
@@ -139,6 +139,8 @@ config MACH_SUN4I bool "sun4i (Allwinner A10)" select CPU_V7A select ARM_CORTEX_CPU_IS_UP + select DM_MMC if MMC + select DM_SCSI if SCSI select PHY_SUN4I_USB select DRAM_SUN4I select SUNXI_GEN_SUN4I
Signature · 1 line
2.18.0
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
Quoted 6 lines · Adam Sampson
Use the driver model for MMC and SATA, in preparation for
CONFIG_BLKdefaulting to y.Tested on A10 Cubieboard.
Signed-off-by Adam Sampson <[email protected]>
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180702/4e9fc0f7/attachment.sig>
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
In reply to Adam SampsonQuoted 4 lines · Adam Sampson
Use the driver model for MMC and SATA, in preparation for
CONFIG_BLKdefaulting to y.Tested on A10 Cubieboard.
Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it's because of pincrtrl for U-Boot which is not initializing for in DM_MMC.
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
Quoted 9 lines · Jagan Teki
Quoted 4 lines · Adam Sampson
Use the driver model for MMC and SATA, in preparation for
CONFIG_BLKdefaulting to y.Tested on A10 Cubieboard.
Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it's because of pincrtrl for U-Boot which is not initializing for in
DM_MMC.
I'm not aware of any A10 board with an eMMC. Which board have you been testing it on?
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180712/fca97676/attachment.sig>
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
Quoted 5 lines · Maxime Ripard
Quoted 4 lines · Jagan Teki
Quoted 3 lines · Adam Sampson
Use the driver model for MMC and SATA, in preparation for
CONFIG_BLKdefaulting to y.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Tested on A10 Cubieboard.
Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it's because of pincrtrl for U-Boot which is not initializing for in
DM_MMC.I'm not aware of any A10 board with an eMMC. Which board have you been testing it on?
Not with A10 I'm trying to verify it on H3. Just to confirm whether A10 with eMMC detected or not.
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
Quoted 13 lines · Jagan Teki
Quoted 11 lines · Maxime Ripard
Quoted 9 lines · Jagan Teki
Quoted 4 lines · Adam Sampson
Use the driver model for MMC and SATA, in preparation for
CONFIG_BLKdefaulting to y.Tested on A10 Cubieboard.
Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it's because of pincrtrl for U-Boot which is not initializing for in
DM_MMC.
Quoted 5 lines
Quoted 2 lines
I'm not aware of any A10 board with an eMMC. Which board have you been testing it on?
Not with A10 I'm trying to verify it on H3. Just to confirm whether A10 with eMMC detected or not.
There's no such thing as A10 with eMMC.
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180712/7e2e64be/attachment.sig>
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
In reply to Jagan TekiQuoted 3 lines · Jagan Teki
Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it's because of pincrtrl for U-Boot which is not initializing for in
DM_MMC.
No, I don't have any boards with eMMC, so I haven't tested eMMC with either A10 or A20, I'm afraid.
(I also haven't been able to find an A13 board to test with -- if there are any A13 owners reading this, I suspect a similar change would work, and it'll need doing before the A13 boards get removed for not having DM support...)
Signature · 1 line
Adam Sampson <[email protected]> <http://offog.org/>
PATCH 2/2 dm: sunxi: Use DM for MMC and SATA on all A10 boards
Quoted 5 lines · Adam Sampson
Quoted 3 lines · Jagan Teki
Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it's because of pincrtrl for U-Boot which is not initializing for in
DM_MMC.
Quoted 7 lines
No, I don't have any boards with eMMC, so I haven't tested eMMC with either A10 or A20, I'm afraid.
(I also haven't been able to find an A13 board to test with -- if there are any A13 owners reading this, I suspect a similar change would work, and it'll need doing before the A13 boards get removed for not having DM support...)
Look like there is no eMMC on A10, atleast on existing boards in ML. I understand the eMMC issues with existing dt driver will send the patches for the same. sun4i iNet 3F, 3W has missing mmc0 node on DT, DM_MMC need to have this. anyway I'm sending all in one series.
Applied to u-boot-sunxi/master
PATCH 1/2 dm: mmc: sunxi: Add A10/A20 compatible strings
In reply to Adam SampsonQuoted 11 lines · Adam Sampson
Commit
dd27918c2252("dm: mmc: sunxi: Add support for driver model") only added the allwinner,sun5i-a13-mmc compatible string for this driver. The DM initialisation code here also works with (at least) A10 and A20, so add the appropriate compatible strings as per Linux 4.17's driver.Tested on A10 Cubieboard and A20 pcDuino3 Nano with
CONFIG_DM_MMC. (A20 worked already, becausesun7i-a20.dtsispecifies both the A13 and A20 strings.)Signed-off-by Adam Sampson <[email protected]>
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180702/b7983034/attachment.sig>
PATCH 1/2 dm: mmc: sunxi: Add A10/A20 compatible strings
In reply to Adam SampsonQuoted 6 lines · Adam Sampson
Commit
dd27918c2252("dm: mmc: sunxi: Add support for driver model") only added the allwinner,sun5i-a13-mmc compatible string for this driver. The DM initialisation code here also works with (at least) A10 and A20, so add the appropriate compatible strings as per Linux 4.17's driver.
Quoted 6 lines
Tested on A10 Cubieboard and A20 pcDuino3 Nano with
CONFIG_DM_MMC. (A20 worked already, becausesun7i-a20.dtsispecifies both the A13 and A20 strings.)Signed-off-by Adam Sampson <[email protected]>---
Applied to u-boot-sunxi/master