devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] mmc: xenon: add AC5 support
@ 2023-12-27 12:32 Elad Nachman
  2023-12-27 12:32 ` [PATCH 1/4] arm64: mm: Fix SOCs with DDR starting above zero Elad Nachman
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Elad Nachman @ 2023-12-27 12:32 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, andrew,
	gregory.clement, sebastian.hesselbarth, huziji, ulf.hansson,
	catalin.marinas, will, adrian.hunter, thunder.leizhen, bhe, akpm,
	yajun.deng, chris.zjh, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel
  Cc: enachman, cyuval

From: Elad Nachman <enachman@marvell.com>

This patch series adds support for the Marvell AC5/X/IM series of SOCs.
The main hurdles in supporting these SOCs are the following limitations:
1. DDR starts at offset 0x2_0000_0000
2. mmc controller has only 31-bit path on the crossbar to the DDR.

Point number one is solved by the first patch, which targets the
arm64 subsystem, by taking into account the DDR start address when
calculating the DMA and DMA32 zones.

This yields the correct split between DMA, DMA32 and NORMAL zones
according to the device tree CPU address limitations.

Point number two is solved in the mmc xenon driver by detecting the memory
size, and when it is more than 2GB, disable ADMA and 64-bit DMA, which
effectively enables SDMA with a bounce buffer.
DMA mask is then set manually to 34 bit to account for the DDR starting
at offset 0x2_0000_0000 .

Elad Nachman (4):
  arm64: mm: Fix SOCs with DDR starting above zero
  dt-bindings: mmc: add Marvell ac5
  arm64: dts: ac5: add mmc node and clock
  mmc: xenon: Add ac5 support via bounce buffer

 .../bindings/mmc/marvell,xenon-sdhci.yaml     |  3 ++
 arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 33 ++++++++++++++++++-
 arch/arm64/mm/init.c                          | 20 ++++++++---
 drivers/mmc/host/sdhci-xenon.c                | 33 ++++++++++++++++++-
 drivers/mmc/host/sdhci-xenon.h                |  3 +-
 5 files changed, 84 insertions(+), 8 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-04 10:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-27 12:32 [PATCH 0/4] mmc: xenon: add AC5 support Elad Nachman
2023-12-27 12:32 ` [PATCH 1/4] arm64: mm: Fix SOCs with DDR starting above zero Elad Nachman
2023-12-27 12:32 ` [PATCH 2/4] dt-bindings: mmc: add Marvell ac5 Elad Nachman
2023-12-27 12:38   ` Krzysztof Kozlowski
2023-12-27 12:41   ` Krzysztof Kozlowski
2023-12-27 12:32 ` [PATCH 3/4] arm64: dts: ac5: add mmc node and clock Elad Nachman
2023-12-27 12:40   ` Krzysztof Kozlowski
2023-12-27 12:32 ` [PATCH 4/4] mmc: xenon: Add ac5 support via bounce buffer Elad Nachman
2024-01-04 10:50   ` Adrian Hunter
2023-12-29 21:56 ` [PATCH 0/4] mmc: xenon: add AC5 support Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).