From patchwork Tue Dec 27 12:22:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 36884 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1366909wrt; Tue, 27 Dec 2022 04:31:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGqM8xjZD0hS4UIsewNzjwla2YEdpW05kOYuCOmyzgTuNOzAwjWG6HEjK0Qjfr+NRYlPo9 X-Received: by 2002:aa7:d689:0:b0:46c:3f90:f5d9 with SMTP id d9-20020aa7d689000000b0046c3f90f5d9mr17892286edr.5.1672144305912; Tue, 27 Dec 2022 04:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672144305; cv=none; d=google.com; s=arc-20160816; b=W1DZs1UzumTc8zGD8ytplZZMcpEZN8PE/skhC1IpO8lgbuchwaIaDw+Vt+HJj4PlNK SXuo94+4CQtyrFbWLX/CFSN3dfEN9pJj0RE4oWcObtUhGHdlNFomXJjXgrJght7FPVpB gq86U/v2GprCdzUugXgZf6N1FE2WrKbzzjvxoIrJpYIWUmbKRd/HCEMHZZR9cHaaBPmp +s1p1Sq+n/Qj0Ruf4v84/iAeufxe1OaBTV8+TEibJyE9O1WIUneAgu4G6GAcj4u+TrXn ug0I4UMiKM6qFfoV0Qkcz5XtKOMRCHrs/uDOKDXKJZ2VHp+4Mobc/hV0c5+EWTXRCMbH s1/g== 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=IHoGTSXgsv7shMV2Co0/e5fx3PSJZqnI82peEKqyENg=; b=kSVBlHUABqssEaw4Cp7OzQQLXCIPIpMiZ8XHwxe78NsiZBNLWdwNU+NmH+JOZomco7 tJ945nbCodvsRRWHx+ToY6JWHw6xMoxZGMrSseTvxMnZwIwQO+1U/MRbRr+OxAO1oFBK vsrp7hRUXjGQBFUkWxJqnlpXn92oIeQQ17YQrQ+jyUjyzqd+Q6drH//670Mi1bpQxCSA 2fqTEumKd9bGa13X6N96/PePa2TFXPx4tX3hBWWtaCymZZdC1q1aA8RvaBO3cbvtO6Wp fiiF9IF81kVVCcfKwTGlwulYTGRuSighlj3NPgi9ZVFagbAfPDJqZ006cM2va8omakTI xiWQ== 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 j16-20020aa7ca50000000b00487b286dfd3si374831edt.23.2022.12.27.04.31.22; Tue, 27 Dec 2022 04:31:45 -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 S231552AbiL0MZL convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Dec 2022 07:25:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232363AbiL0MYU (ORCPT ); Tue, 27 Dec 2022 07:24:20 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22810BA0; Tue, 27 Dec 2022 04:22:32 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1A94C24E1AB; Tue, 27 Dec 2022 20:22:30 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 27 Dec 2022 20:22:30 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 27 Dec 2022 20:22:29 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , William Qiu , Subject: [PATCH v2 1/3] dt-bindings: mmc: Add bindings for StarFive Date: Tue, 27 Dec 2022 20:22:25 +0800 Message-ID: <20221227122227.460921-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221227122227.460921-1-william.qiu@starfivetech.com> References: <20221227122227.460921-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 EXMBX168.cuchost.com (172.16.6.78) 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?1753370387790295555?= X-GMAIL-MSGID: =?utf-8?q?1753370387790295555?= Add documentation to describe StarFive designware mobile storage host controller driver. Signed-off-by: William Qiu --- .../bindings/mmc/starfive,jh7110-mmc.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml new file mode 100644 index 000000000000..430dd5f24933 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.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-mmc + + reg: + maxItems: 1 + + clocks: + items: + - description: biu clock + - description: ciu clock + + clock-names: + items: + - const: biu + - const: ciu + + interrupts: + maxItems: 1 + + starfive,syscon: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + arg0:arg0 is syscon. + arg1:arg1 is syscon register offset, used to enable MMC function. + arg2:arg2 is used to enable the register shift of the MMC function. + arg3:arg3 is used to enable the register mask of the MMC function. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - starfive,syscon + +unevaluatedProperties: false + +examples: + - | + mmc@16010000 { + compatible = "starfive,jh7110-mmc"; + reg = <0x16010000 0x10000>; + clocks = <&syscrg 91>, + <&syscrg 93>; + clock-names = "biu","ciu"; + resets = <&syscrg 64>; + reset-names = "reset"; + interrupts = <74>; + fifo-depth = <32>; + fifo-watermark-aligned; + data-addr = <0>; + starfive,syscon = <&syscon 0x14 0x1a 0x7c000000>; + };