[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231228065322.1176351-2-yuklin.soo@starfivetech.com>
Date: Thu, 28 Dec 2023 14:53:20 +0800
From: Alex Soo <yuklin.soo@...rfivetech.com>
To: Ulf Hansson <ulf.hansson@...aro.org>, Adrian Hunter
<adrian.hunter@...el.com>, Yangtao Li <frank.li@...o.com>, Andy Shevchenko
<andriy.shevchenko@...ux.intel.com>, Linus Walleij
<linus.walleij@...aro.org>, Rob Herring <robh+dt@...nel.org>, "Krzysztof
Kozlowski" <krzysztof.kozlowski+dt@...aro.org>, Conor Dooley
<conor+dt@...nel.org>, Emil Renner Berthing <kernel@...il.dk>
CC: <linux-mmc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-riscv@...ts.infradead.org>, "Paul
Walmsley" <paul.walmsley@...ive.com>, Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Alex Soo <yuklin.soo@...rfivetech.com>
Subject: [PATCH 1/3] dt-bindings: mmc: sdhci-cadence6: add DT bindings documentation
Add DT bindings documentation for Cadence SD/eMMC host controller
(Version 6) driver.
Signed-off-by: Alex Soo <yuklin.soo@...rfivetech.com>
---
.../devicetree/bindings/mmc/cdns,sd6hci.yaml | 65 +++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml
diff --git a/Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml
new file mode 100644
index 000000000000..97e28d720c7b
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/cdns,sd6hci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cadence SD/SDIO/eMMC Host Controller Version 6.0 (SD6HC)
+
+maintainers:
+ - Alex Soo <yuklin.soo@...rfivetech.com>
+
+allOf:
+ - $ref: mmc-controller.yaml
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - starfive,jh8100-sd6hc
+ - const: cdns,sd6hc
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clock-names:
+ items:
+ - const: main
+ - const: sdmclk
+
+ clocks:
+ items:
+ - description: main clock gate which controls the gating of all clock signals to SDHCI
+ controller
+ - description: the SD master clock signal
+
+ resets:
+ items:
+ - description: reset phandle which controls the assert/deassert of all reset lines to
+ SDHCI controller
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clock-names
+ - clocks
+ - resets
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ emmc: mmc@...10000 {
+ compatible = "starfive,jh8100-sd6hc", "cdns,sd6hc";
+ reg = <0x1f110000 0x10000>;
+ interrupts = <174>;
+ clock-names = "main", "sdmclk";
+ clocks = <&aoncrg 62>,
+ <&aoncrg 43>;
+ resets = <&aoncrg 9>;
+ bus-width = <8>;
+ };
--
2.25.1
Powered by blists - more mailing lists