[PATCH 2/6] dt-bindings: mmc: mmci: Add STM32MP21 compatible

Christophe Kerello christophe.kerello at foss.st.com
Tue Dec 1 08:18:41 PST 2026


The SDMMC block found on STM32MP21 is the same as the STM32MP25 one, but
its SYSCFG area additionally embeds an address remapping register (ARCR).

On STM32MP21, the DDR starts at 0x80000000 while the SDMMC only issues
32-bit addresses. With ARCR enabled, the SDMMC addresses are relative to
the beginning of the DDR, so that the whole 4 GB of the DDR can be
reached. That offset is described by the dma-ranges of the STM32MP21 SoC
bus.

Add a dedicated st,stm32mp21-sdmmc2 compatible to identify the presence
of ARCR, falling back on st,stm32mp25-sdmmc2 as the rest of the IP is
the same.

ARCR is part of the second "reg" range, along with the delay block
registers, at offset 0xc. As ARCR is always present on STM32MP21, that
range is required there, whether or not the remapping is used, and must
be at least 0x10 bytes long to cover ARCR.

Also describe the two "reg" entries.

Signed-off-by: Christophe Kerello <christophe.kerello at foss.st.com>
---
 .../devicetree/bindings/mmc/arm,pl18x.yaml         | 29 ++++++++++++++++++----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/mmc/arm,pl18x.yaml b/Documentation/devicetree/bindings/mmc/arm,pl18x.yaml
index 8f2db8f0d3e4..055fa97d2d39 100644
--- a/Documentation/devicetree/bindings/mmc/arm,pl18x.yaml
+++ b/Documentation/devicetree/bindings/mmc/arm,pl18x.yaml
@@ -19,6 +19,15 @@ description:
 allOf:
   - $ref: /schemas/arm/primecell.yaml#
   - $ref: mmc-controller.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: st,stm32mp21-sdmmc2
+    then:
+      properties:
+        reg:
+          minItems: 2
 
 # We need a select here so we don't match all nodes with 'arm,primecell'
 select:
@@ -60,6 +69,12 @@ properties:
               - st,stm32mp25-sdmmc2
           - const: arm,pl18x
           - const: arm,primecell
+      - description: Entries for STMicroelectronics STM32MP21 variant of PL18x.
+        items:
+          - const: st,stm32mp21-sdmmc2
+          - const: st,stm32mp25-sdmmc2
+          - const: arm,pl18x
+          - const: arm,primecell
 
   clocks:
     description: One or two clocks, the "apb_pclk" and the "MCLK"
@@ -89,11 +104,15 @@ properties:
     maxItems: 1
 
   reg:
-    description: the MMIO memory window. Unless arm,primecell-periphid is
-      set, it must be exactly 4KB (0x1000) and provide the PrimeCell ID
-      registers so that the device can be discovered. On ST Micro variants, a
-      second register window may be defined if a delay block is present and
-      used for tuning.
+    items:
+      - description: the MMIO memory window. Unless arm,primecell-periphid
+          is set, it must be exactly 4KB (0x1000) and provide the PrimeCell
+          ID registers so that the device can be discovered.
+      - description: Delay block registers, or SYSCFG area dedicated to the
+          instance embedding them and, on STM32MP21, the address remapping
+          register. On STM32MP21, it must be at least 0x10 bytes long to
+          cover the address remapping register. ST Micro variants only.
+    minItems: 1
 
   interrupts:
     description: The first interrupt is the command interrupt and corresponds

-- 
2.43.0




More information about the linux-arm-kernel mailing list