[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260204082908.27501-2-jiayu.riscv@isrc.iscas.ac.cn>
Date: Wed, 4 Feb 2026 16:29:06 +0800
From: Jiayu Du <jiayu.riscv@...c.iscas.ac.cn>
To: ulf.hansson@...aro.org,
adrian.hunter@...el.com,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org
Cc: pjw@...nel.org,
palmer@...belt.com,
aou@...s.berkeley.edu,
linux-mmc@...r.kernel.org,
devicetree@...r.kernel.org,
linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org,
gaohan@...as.ac.cn,
me@...ao.cc,
Jiayu Du <jiayu.riscv@...c.iscas.ac.cn>
Subject: [PATCH 1/3] dt-bindings: mmc: Add sdhci support for Canaan k230
The Canaan k230 uses the SDHCI from Synopsys. Add compatible strings
to the k230. The k230 has two controllers. MMC0 supports eMMC, while
MMC1 supports SDIO.
Signed-off-by: Jiayu Du <jiayu.riscv@...c.iscas.ac.cn>
---
.../bindings/mmc/snps,dwcmshc-sdhci.yaml | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
index 7e7c55dc2440..cab33da3af7d 100644
--- a/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
+++ b/Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml
@@ -23,6 +23,8 @@ properties:
- const: sophgo,sg2044-dwcmshc
- const: sophgo,sg2042-dwcmshc
- enum:
+ - canaan,k230-emmc
+ - canaan,k230-sdio
- rockchip,rk3568-dwcmshc
- rockchip,rk3588-dwcmshc
- snps,dwcmshc-sdhci
@@ -87,6 +89,26 @@ required:
allOf:
- $ref: mmc-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - canaan,k230-emmc
+ - canaan,k230-sdio
+ then:
+ properties:
+ clocks:
+ minItems: 2
+ maxItems: 5
+ clock-names:
+ items:
+ - const: core
+ - const: bus
+ - const: axi
+ - const: block
+ - const: timer
+
- if:
properties:
compatible:
--
2.52.0
Powered by blists - more mailing lists