From patchwork Thu Dec 28 06:53:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Soo X-Patchwork-Id: 758673 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 794C163AC; Thu, 28 Dec 2023 06:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 4FE0D24E295; Thu, 28 Dec 2023 14:53:36 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:35 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:30 +0800 From: Alex Soo To: Ulf Hansson , Adrian Hunter , Yangtao Li , Andy Shevchenko , Linus Walleij , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Emil Renner Berthing CC: , , , , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Alex Soo Subject: [PATCH 1/3] dt-bindings: mmc: sdhci-cadence6: add DT bindings documentation Date: Thu, 28 Dec 2023 14:53:20 +0800 Message-ID: <20231228065322.1176351-2-yuklin.soo@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231228065322.1176351-1-yuklin.soo@starfivetech.com> References: <20231228065322.1176351-1-yuklin.soo@starfivetech.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag Add DT bindings documentation for Cadence SD/eMMC host controller (Version 6) driver. Signed-off-by: Alex Soo --- .../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 + +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@1f110000 { + 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>; + };