Skip to content

Add StarFive JHB100 DWCMSHC controller support

Changhuang Liang linux-devicetree linux-mmc lkml sophgo 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: mmc: snps,dwcmshc-sdhci: Add starfive,jhb100-dwcmshcDocumentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml+70 -40 replies
2/2mmc: sdhci-of-dwcmshc: Add support for StarFive JHB100drivers/mmc/host/sdhci-of-dwcmshc.c+169 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiAdrian Hunter
1/2R-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Add StarFive JHB100 DWCMSHC controller support

Add DWCMSHC controller driver for StarFive JHB100 SoC. This series has been tested on the JHB100 EVB1 board.

Due to syscon limitations, it is necessary to use dma-ranges to restrict the DMA address space of the eMMC controller to:
[0x400000000 - 0x4ffffffff]

bus_nioc_4g: bus_nioc_4g {
	compatible = "simple-bus";
	#address-cells = <2>;
	#size-cells = <2>;
	dma-noncoherent;
	ranges;
	dma-ranges = <0x4 0x00000000 0x0 0x40000000 0x1 0x0>,
		     <0x4 0x00000000 0x4 0x00000000 0x1 0x0>;

	emmc0: mmc@11b00000 {
		compatible = "starfive,jhb100-dwcmshc";
		reg = <0x0 0x11b00000 0x0 0x10000>;
	};
};

Changes since v1:

patch 1:
- Add Krzysztof's Reviewed-by tag

patch 2:
- Fix the DMA address range error in the commit message
- Clarify the 36-bit DMA capability and its constraints
- Add a named macro for the JHB100 delay line value
- Use dwcmshc_reset instead of sdhci_reset
- Detect 1.8V capability from mmc->caps/caps2 instead of DT properties
- In sdhci_jhb100_set_clock(), keep cclk_tx gated when clock is 0.

v1: https://lore.kernel.org/all/[email protected]/

Changhuang Liang (2):
dt-bindings: mmc: snps,dwcmshc-sdhci: Add starfive,jhb100-dwcmshc
mmc: sdhci-of-dwcmshc: Add support for StarFive JHB100

 .../bindings/mmc/snps,dwcmshc-sdhci.yaml      |  74 +++++++-
 drivers/mmc/host/sdhci-of-dwcmshc.c           | 169 ++++++++++++++++++
 2 files changed, 239 insertions(+), 4 deletions(-)

--
2.25.1