From: dongxuyang@eswincomputing.com
To: ulf.hansson@linaro.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, linux-mmc@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
adrian.hunter@intel.com, p.zabel@pengutronix.de,
shanchun1218@gmail.com
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
xuxiang@eswincomputing.com,
Xuyang Dong <dongxuyang@eswincomputing.com>
Subject: [PATCH v1 1/2] dt-bindings: sdhci: eswin: Documentation for eic7700 SoC
Date: Fri, 16 May 2025 17:16:50 +0800 [thread overview]
Message-ID: <20250516091650.832-1-dongxuyang@eswincomputing.com> (raw)
In-Reply-To: <20250516091259.774-1-dongxuyang@eswincomputing.com>
From: Xuyang Dong <dongxuyang@eswincomputing.com>
Add device tree binding documentation for the ESWIN
eic7700 sdhci controller module.
Signed-off-by: Xiang Xu <xuxiang@eswincomputing.com>
Signed-off-by: Xuyang Dong <dongxuyang@eswincomputing.com>
---
.../bindings/mmc/eswin,sdhci-eic7700.yaml | 131 ++++++++++++++++++
1 file changed, 131 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mmc/eswin,sdhci-eic7700.yaml
diff --git a/Documentation/devicetree/bindings/mmc/eswin,sdhci-eic7700.yaml b/Documentation/devicetree/bindings/mmc/eswin,sdhci-eic7700.yaml
new file mode 100644
index 000000000000..d4826f2aa619
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/eswin,sdhci-eic7700.yaml
@@ -0,0 +1,131 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/eswin,sdhci-eic7700.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ESWIN EIC7700 SoC SDHCI controller
+
+maintainers:
+ - Shuang Liang <liangshuang@eswincomputing.com>
+ - Xuyang Dong <dongxuyang@eswincomputing.com>
+
+allOf:
+ - $ref: /schemas/mmc/mmc-controller.yaml#
+
+properties:
+ compatible:
+ const: eswin,eic7700-emmc-sdhci
+
+ reg:
+ maxItems: 1
+ description: Common configuration registers
+ "#address-cells":
+ const: 1
+ "#size-cells":
+ const: 1
+
+ interrupts:
+ maxItems: 1
+
+ assigned-clocks:
+ maxItems: 1
+ description: should contain "core_clk" phandle + clock-specifier pairs.
+
+ assigned-clock-rates:
+ maxItems: 1
+
+ clocks:
+ minItems: 2
+ description: handles to clock for the sdhci controller.
+
+ clock-names:
+ minItems: 2
+ description: the name of each clock.
+
+ clock-output-names:
+ maxItems: 1
+
+ '#clock-cells':
+ enum: [0]
+ description:
+ With this property in place we will export one clock
+ representing the Card Clock. These clocks are expected to be
+ consumed by our PHY.
+
+ resets:
+ description: resets to be used by the controller.
+
+ reset-names:
+ description: names of the resets listed in resets property in the same order.
+
+ bus-width:
+ enum: [4, 8]
+ description: for emmc bus-width is 8, for sdio bus-width is 4.
+
+ eswin,hsp_sp_csr:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description: hsp_sp_csr regs to be used by the controller.
+ items:
+ - description: phandle to HSP_SP_CSR register block
+ - description: status register offset
+ - description: control register offset
+ - description: configuration register offset
+
+ eswin,syscrg_csr:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description: syscrg_csr regs to be used by the controller.
+ items:
+ - description: phandle to SYS_CRG_CSR register block
+ - description: status register offset
+ - description: control register offset
+ - description: configuration register offset
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - assigned-clocks
+ - assigned-clock-rates
+ - clocks
+ - clock-names
+ - clock-output-names
+ - resets
+ - reset-names
+ - bus-width
+ - eswin,hsp_sp_csr
+ - eswin,syscrg_csr
+
+unevaluatedProperties: false
+
+examples:
+ - |
+
+ sdhci_emmc: mmc@50450000 {
+ compatible = "eswin,eic7700-emmc-sdhci";
+ reg = <0x50450000 0x10000>;
+ interrupt-parent = <&plic>;
+ interrupts = <79>;
+ clocks = <&clock 554>, <&clock 546>;
+ clock-names = "clk_xin", "clk_ahb";
+ assigned-clocks = <&clock 554>;
+ assigned-clock-rates = <200000000>;
+ clock-output-names = "emmc_cardclock";
+ #clock-cells = <0>;
+
+ resets = <&reset 7 (1 << 6)>,
+ <&reset 7 (1 << 3)>,
+ <&reset 7 (1 << 19)>,
+ <&reset 7 (1 << 23)>;
+ reset-names = "txrx_rst", "phy_rst", "prstn", "arstn";
+
+ core-clk-reg = <0x51828160>;
+ disable-cqe-dcmd;
+ bus-width = <8>;
+ non-removable;
+ mmc-hs400-1_8v;
+ max-frequency = <200000000>;
+ eswin,hsp_sp_csr = <&hsp_sp_csr 0x1038 0x508 0x50c>;
+ eswin,syscrg_csr = <&sys_crg 0x160 0x148 0x14c>;
+ status = "disabled";
+ };
--
2.17.1
next prev parent reply other threads:[~2025-05-16 9:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-16 9:12 [PATCH v1 0/2] Add driver support for ESWIN eic7700 SoC sdhci controller dongxuyang
2025-05-16 9:16 ` dongxuyang [this message]
2025-05-16 10:26 ` [PATCH v1 1/2] dt-bindings: sdhci: eswin: Documentation for eic7700 SoC Rob Herring (Arm)
2025-05-16 13:12 ` Krzysztof Kozlowski
2025-05-16 9:17 ` [PATCH v1 2/2] sdhci: eswin: Add eic7700 sdhci driver dongxuyang
2025-05-16 13:17 ` Krzysztof Kozlowski
2025-05-17 1:57 ` kernel test robot
2025-05-22 7:48 ` Adrian Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250516091650.832-1-dongxuyang@eswincomputing.com \
--to=dongxuyang@eswincomputing.com \
--cc=adrian.hunter@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linmin@eswincomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ningyu@eswincomputing.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=shanchun1218@gmail.com \
--cc=ulf.hansson@linaro.org \
--cc=xuxiang@eswincomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.