From patchwork Fri Feb 3 08:19:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 52406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp710983wrn; Fri, 3 Feb 2023 00:22:43 -0800 (PST) X-Google-Smtp-Source: AK7set9ulKp+rOKp1uZDcS+bLsSt1/LpCsRLDWXnGWmX7/h/wFQ8VqyyY2yrtTQU6vluRShpRGhT X-Received: by 2002:a17:906:8da:b0:87b:db53:3829 with SMTP id o26-20020a17090608da00b0087bdb533829mr9355819eje.46.1675412563730; Fri, 03 Feb 2023 00:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675412563; cv=none; d=google.com; s=arc-20160816; b=LJuANDQg1OTK0mSZgYCkBx98uqPggCXfzNCGgkrjswOOG3XcD1mgSnUVh5c1AkzZCl 3xUrFOH20feGqP8DsGHm9qz7uaPuDTSXh2aq8283hysCqTHjSc7fC22lPC5CV7JnuK5F SI4yvQgzlfzyvrjcnJ+YKIDgtbLWYeYkuRbiBxuQQcPS1m8o90f7+EDG7OKgBx7M+Fes 0rUXtiNje11hKcdIMdaZ4gpw71XFHJwBjz5sA+pi/oIxTnkOC86cmrhOGeZw0qAApNkd aI1eXM9Jcb2yVFk/TgmqcBCeZBh38koWhKjckd/QYZF2Rtnrg07s5wUy5Jrrv2UxQDfp Elcg== 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=QqPxXR4JAtigXeDLTXgFP3FDXh7pDb0YhsVIHnjRATA=; b=FZ8QbAHQOj2K9YKp/x93XU6uItDEIhTnvUqQ2X3S+nzUsnXzKRYES8dgjLywTNiqek QhXJIeHQ/wgjFGxM6OrX9Iovu93MWGLoier0Y3cIFg28PmUPbc3l8xGdIobaw9Ag8RAd MBq3uUG9LuOOxXTstyxyjh4k7sWL14wtoJePugIi3QiAugM7YDt4CCFZEMMTzLX4b9sG 96T66p2kNXGRoPfNp8kw0TUbOs/0J8ZaAVqUdzY8K5dUqEtzISxFoM3X2WnnFh2d4ZbC lqg8ypnQ2YiCV0NQXgUcSfgbOl9crRqNzxyLVTxqC6IwLvUElB3Pk2MQkqpgUbFlwMZl 5sKw== 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 h22-20020a17090791d600b008888f4120basi2164601ejz.688.2023.02.03.00.22.20; Fri, 03 Feb 2023 00:22:43 -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 S232822AbjBCIVc convert rfc822-to-8bit (ORCPT + 99 others); Fri, 3 Feb 2023 03:21:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232600AbjBCIVJ (ORCPT ); Fri, 3 Feb 2023 03:21:09 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D52A22822D; Fri, 3 Feb 2023 00:19:40 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 86E4024E1D4; Fri, 3 Feb 2023 16:19:15 +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; Fri, 3 Feb 2023 16:19:15 +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; Fri, 3 Feb 2023 16:19:14 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Jaehoon Chung , Ulf Hansson , William Qiu , Subject: [PATCH v3 1/3] dt-bindings: mmc: Add StarFive MMC module Date: Fri, 3 Feb 2023 16:19:11 +0800 Message-ID: <20230203081913.81968-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230203081913.81968-1-william.qiu@starfivetech.com> References: <20230203081913.81968-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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?1756797404245140824?= X-GMAIL-MSGID: =?utf-8?q?1756797404245140824?= Add documentation to describe StarFive designware mobile storage host controller driver. Signed-off-by: William Qiu Reviewed-by: Krzysztof Kozlowski --- .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ 1 file changed, 77 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..deacf8e9cfb2 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml @@ -0,0 +1,77 @@ +# 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,sysreg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to System Register Controller syscon node + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller + description: + Should be four parameters, the phandle to System Register Controller + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register + for MMC controller. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - starfive,sysreg + +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,sysreg = <&sysreg 0x14 0x1a 0x7c000000>; + };