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: Yuklin Soo X-Patchwork-Id: 13505636 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E71FC4706F for ; Thu, 28 Dec 2023 06:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8CQnTvCf8Vyh8qZHZaHAaZ1LQKHDnhhPl3IlQ7u+XHU=; b=a3votkgRuGpvP8 SMQ1FZWXxd/H71PJnIBgX69Cs8ToLw0dlpL1miuGGpLZGs7CXxE1sj+snK8GwARTMkAfWPK+7uIn7 BqJOlCYLps8SL/bcaGOoIC32W8PKiR2G3TXPRF0BCH4F9nDcWmbFH/2dA+wEuLoyDzCbS1GhEw7qX AwPX9Qv0uLyh5m24IzOqaMg7w859aO6UzdieVYZyJP6Ubqgx+Vf1aGw0ulFzsZmTTJBTdbR3YiKZW MD6txETd5REHM8lZrwWKHdQnlq/5nDfyBzQgn8jRTWb/n5izL7bN/YQczwkMRhUwDpF2E2uNv0HqR JwE/bdtzfpQ8hlhCZ7HQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIkHS-00GHyg-0j; Thu, 28 Dec 2023 06:54:10 +0000 Received: from ex01.ufhost.com ([61.152.239.75]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIkHN-00GHtJ-2G for linux-riscv@lists.infradead.org; Thu, 28 Dec 2023 06:54:08 +0000 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> MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231227_225406_042838_ED6ACFC5 X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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>; + };