From patchwork Wed Dec 7 13:17:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 30834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp178938wrr; Wed, 7 Dec 2022 05:23:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Pz1RUfFH+Bt+c2fjyVPHstSRSlAM+szM6+gE3n5hyoqmdR1LVSLw5+C+f4ShdlokOa/K1 X-Received: by 2002:a17:907:c60d:b0:7bf:5fa6:b9b8 with SMTP id ud13-20020a170907c60d00b007bf5fa6b9b8mr38592448ejc.383.1670419387533; Wed, 07 Dec 2022 05:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670419387; cv=none; d=google.com; s=arc-20160816; b=ftdyLVeKpRTDIW/6+1DPpXbgT2j8H9/ELdNrBWWQbPEbuN3iJuU71gF7M3dMI2gxwx F74Z9qsOlDnnaH5nVsV8RvzX4hBUIZzZjU7F8rMR1+HNSIWM+yctBMKxDQou0HR4aYJl XC/PJWjqGtXez1k1fYGUmN0gwWKdTHlINvqM56lm3OJJTJPttpC35WKuObgFFI6t0C9v WeAvT12d1ZGKPGd8/dTF3I3XblJGki4ulfXumKsP0uHZZ3ZJjcDSI2eMGnRck/2nQG6F OAEouQeFxM9fjkDrUAZsLly9448AsWilOCro8Syv8ra8uA0oKj76slY8c3I7GSF2gnCP ZOQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nw5ZkAzaiySJv6Grzc5WXx89OKF8I8XwNzpSjDz0tSE=; b=HNNmEsq184wyyUxfXobdOPzTLVOO5euvoeg1iwf7uofFPcIxFXcdaITazR2ZGxAs7T 3x9pzvxCy5SZh3nprmifDbn86/11MzUWyc1aOURbdsTMB9Ct54Vz2S+5WwpEMp1/yqKj 4feEFHnT6DcVCKy67vEPskokcxIWSDnFGlfvOh6+YrsyxGFGTCFnGuJYrTedQqv9bCl/ 77B7kzJySc01gnbk0W9FPATzNMkU7wp3+vI+mTXkyTzRC/8dqhjJN8sly6cWy8MLcU8I nHKl0Tgdx3cAkku/n0Qs/SvnU320xvN4dXV6we+PR/TvlEsn4ILM2MnfNqopabKOCY1U pkRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw9-20020a170907a0c900b007ab1b8b71a6si17369199ejc.40.2022.12.07.05.22.43; Wed, 07 Dec 2022 05:23:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbiLGNRs convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Dec 2022 08:17:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbiLGNRh (ORCPT ); Wed, 7 Dec 2022 08:17:37 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4FB26E6; Wed, 7 Dec 2022 05:17:36 -0800 (PST) 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 AA3AB24E2AA; Wed, 7 Dec 2022 21:17:33 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 7 Dec 2022 21:17:33 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 7 Dec 2022 21:17:32 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , William Qiu , Subject: [PATCH v1 1/3] dt-bindings: mmc: Add bindings for StarFive Date: Wed, 7 Dec 2022 21:17:29 +0800 Message-ID: <20221207131731.1291517-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221207131731.1291517-1-william.qiu@starfivetech.com> References: <20221207131731.1291517-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751561680012187864?= X-GMAIL-MSGID: =?utf-8?q?1751561680012187864?= Add documentation to describe StarFive designware mobile storage host controller driver. Signed-off-by: William Qiu --- .../bindings/mmc/starfive,jh7110-sdio.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-sdio.yaml diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-sdio.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-sdio.yaml new file mode 100644 index 000000000000..4f27ef3cf4f3 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-sdio.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-sdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive Designware Mobile Storage Host Controller + +description: + StarFive uses the Synopsys designware mobile storage host controller + to interface a SoC with storage medium such as eMMC or SD/MMC cards. + +allOf: + - $ref: "synopsys-dw-mshc-common.yaml#" + +maintainers: + - William Qiu + +properties: + compatible: + const: starfive,jh7110-sdio + + reg: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: biu clock + - description: ciu clock + + clock-names: + minItems: 1 + items: + - const: biu + - const: ciu + + interrupts: + maxItems: 1 + + starfive,sys-syscon: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + The desired number of times that the host execute tuning when needed. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + mmc@16010000 { + compatible = "starfive,jh7110-sdio"; + reg = <0x16010000 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SDIO0_AHB>, + <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>; + clock-names = "biu","ciu"; + resets = <&syscrg JH7110_SYSRST_SDIO0_AHB>; + reset-names = "reset"; + interrupts = <74>; + fifo-depth = <32>; + fifo-watermark-aligned; + data-addr = <0>; + };