From: Zhe Wang <zhe.wang1@unisoc.com>
To: <martin.petersen@oracle.com>, <jejb@linux.ibm.com>,
<krzysztof.kozlowski+dt@linaro.org>, <robh+dt@kernel.org>,
<alim.akhtar@samsung.com>, <avri.altman@wdc.com>
Cc: <linux-scsi@vger.kernel.org>, <devicetree@vger.kernel.org>,
<orsonzhai@gmail.com>, <yuelin.tang@unisoc.com>,
<zhenxiong.lai@unisoc.com>, <zhang.lyra@gmail.com>
Subject: [PATCH v2 1/2] dt-bindings: ufs: Add document for Unisoc UFS host controller
Date: Wed, 16 Nov 2022 21:31:30 +0800 [thread overview]
Message-ID: <20221116133131.6809-2-zhe.wang1@unisoc.com> (raw)
In-Reply-To: <20221116133131.6809-1-zhe.wang1@unisoc.com>
Add Unisoc ums9620 ufs host controller devicetree document.
Signed-off-by: Zhe Wang <zhe.wang1@unisoc.com>
---
.../bindings/ufs/sprd,ums9620-ufs.yaml | 78 +++++++++++++++++++
1 file changed, 78 insertions(+)
create mode 100644 Documentation/devicetree/bindings/ufs/sprd,ums9620-ufs.yaml
diff --git a/Documentation/devicetree/bindings/ufs/sprd,ums9620-ufs.yaml b/Documentation/devicetree/bindings/ufs/sprd,ums9620-ufs.yaml
new file mode 100644
index 000000000000..ce9d05be1a6b
--- /dev/null
+++ b/Documentation/devicetree/bindings/ufs/sprd,ums9620-ufs.yaml
@@ -0,0 +1,78 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ufs/sprd,ums9620-ufs.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Unisoc Universal Flash Storage (UFS) Controller
+
+maintainers:
+ - Zhe Wang <zhe.wang1@unisoc.com>
+
+allOf:
+ - $ref: ufs-common.yaml
+
+properties:
+ compatible:
+ const: sprd,ums9620-ufs
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 4
+
+ clock-names:
+ items:
+ - const: ufs_eb
+ - const: ufs_cfg_eb
+ - const: ufsh
+ - const: ufsh_source
+
+ resets:
+ maxItems: 2
+
+ reset-names:
+ items:
+ - const: ufs
+ - const: ufsdev
+
+ vdd-mphy-supply:
+ description:
+ Phandle to vdd-mphy supply regulator node.
+
+ sprd,ufs-anlg-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: phandle of syscon used to control ufs analog regs.
+
+ sprd,aon-apb-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: phandle of syscon used to control always-on regs.
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ ufs: ufs@22000000 {
+ compatible = "sprd,ums9620-ufs";
+ reg = <0x22000000 0x3000>;
+ interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
+ vcc-supply = <&vddemmccore>;
+ vdd-mphy-supply = <&vddufs1v2>;
+ clock-names = "ufs_eb", "ufs_cfg_eb", "ufsh", "ufsh_source";
+ clocks = <&apahb_gate 5>, <&apahb_gate 22>, <&aonapb_clk 52>, <&g5l_pll 12>;
+ reset-names = "ufs", "ufsdev";
+ resets = <&apahb_gate 4>, <&aonapb_gate 69>;
+ sprd,ufs-anlg-syscon = <&anlg_phy_g12_regs>;
+ sprd,aon-apb-syscon = <&aon_apb_regs>;
+ };
--
2.17.1
next prev parent reply other threads:[~2022-11-16 13:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 13:31 [PATCH v2 0/2] Add support for Unisoc UFS host controller Zhe Wang
2022-11-16 13:31 ` Zhe Wang [this message]
2022-11-16 17:03 ` [PATCH v2 1/2] dt-bindings: ufs: Add document " Krzysztof Kozlowski
2022-11-17 8:45 ` Zhe Wang
2022-11-17 9:19 ` Krzysztof Kozlowski
2022-11-20 16:49 ` Rob Herring
2022-11-21 6:43 ` Zhe Wang
2022-11-16 13:31 ` [PATCH v2 2/2] scsi: ufs-unisoc: Add support " Zhe Wang
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=20221116133131.6809-2-zhe.wang1@unisoc.com \
--to=zhe.wang1@unisoc.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=devicetree@vger.kernel.org \
--cc=jejb@linux.ibm.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=orsonzhai@gmail.com \
--cc=robh+dt@kernel.org \
--cc=yuelin.tang@unisoc.com \
--cc=zhang.lyra@gmail.com \
--cc=zhenxiong.lai@unisoc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox