Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp827035rwb; Wed, 7 Dec 2022 05:35:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Wi+mkX6GliSti12tRFqHWUc2mqkFiQuQlWXWlJLv+gCzRkLnFDCd/CLcXpY7i+OYvWbwN X-Received: by 2002:a17:90a:9c5:b0:219:89c3:23a9 with SMTP id 63-20020a17090a09c500b0021989c323a9mr27556418pjo.212.1670420154833; Wed, 07 Dec 2022 05:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670420154; cv=none; d=google.com; s=arc-20160816; b=SaFZFM8H2B0SyvgHKxwz7RV6uS2GQV9pKLSUtAIaaybJxIthEXSynITMOS08Z3Yzkc CM7RZ09p/HlToLdTwstVlublOO6UaT+1yr6nAbykkwZZqWtTdL1gFm0hCn+VdVzFcbgT ZB2xUAvn/5aaD5NiB9seg1CyNvSPVQb1Oaxkab33usUxoLe4aPPBOABypLKWASEBYHB6 UQrxBtTZBlsb7vLW04034OxPrB2Be1C/fvfqA2vFwAkhzWsDntRfxFTgAwOcTfNOM5la IDBcXiwCWUoBmJXHO2l7Q951apeFNDJXX3lpytOoyIhEVt9LmPojEp5BeDBa1tZyVTf+ 07Yg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020a656392000000b0047811809072si15740921pgv.92.2022.12.07.05.35.44; Wed, 07 Dec 2022 05:35:54 -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 + 76 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 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT 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 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>; + }; -- 2.34.1