Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2546783rdh; Sun, 29 Oct 2023 23:29:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOJbTGvkCrWHEAfJONMpKhLAiVrqwkep+sMtR2zme4EWGGNdOWdyfOuJJqB0w8bGtj3f1h X-Received: by 2002:a05:6a20:a1a0:b0:154:6480:8588 with SMTP id r32-20020a056a20a1a000b0015464808588mr9441998pzk.0.1698647390014; Sun, 29 Oct 2023 23:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698647390; cv=none; d=google.com; s=arc-20160816; b=WYlN+pH311e+eaKKXhRCLJW88MeFq6RImcmLTxAMfU57IFTd4W1F2fbYVn5PcUXbDn vEM3FkBys/D4i3M2hZINGvXCsF+0zi33ulI0JYDdW27Od4W90dmczY8ZKTXB/jzUlbA7 hMSPEoPIjBqzvKIGcY+TEZB9fMrkS0FJAQL8UXudMklIjvBKMS1357aHmyOA0J/X0P58 h08V1bkHo87RqVHnTUh7zMSu+T9tGYkNGmdDksLV4wDPgZ7bprv4ayZkBpmpvuh0js5c 6YOjPfCZD2ZLOjYfnapPchiZmsvjeLLqWF7HOgbGvylT+EL2QPwyMSVCuGtHmXKAZEGl xYWw== 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=vlMnORq+nfLTG5HOu0qLd7LzzUkBkCCwlpCx9X7hfn4=; fh=uQiXbYZSxlJ3b/N/d64OeJ9k8ZcZ25QyZ1yw5ENFT90=; b=ls7ZndDSHe4QN9h04xwISIHxLQHnf2lZp+E1hcpnzLKS7Oew29a4nNfZDWA5e5ytw3 ucnc98ljXCH3YosiHK01aEDsywy+2iCnfxAmOY+mXeCYxG5MYZX8PV5cRyQbIgmZFqUP a5C2RJuVApIRzBESzlU2ihh8A+rLTqD88OfKUlQyPRfjAZXg3FqaN4I1/BzSH52yVLnh nNYoUOJjqx5s5jANKE/x3GHsBUDZf49Vaf2Vy2jFH3+4AXPQ6eZRPaqgJM9YrM0dndlB k3LcZD54QtUZYXGjS+yiBTG+xvMUaHpu+6UkENQxdY2/lZZlwlM6d1lAhr1Z7myDNZWr z/Pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bg2-20020a17090b0d8200b0027762d380f7si3534422pjb.8.2023.10.29.23.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 23:29:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5DEE6803E78F; Sun, 29 Oct 2023 23:29:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231614AbjJ3G3o (ORCPT + 99 others); Mon, 30 Oct 2023 02:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231497AbjJ3G3l (ORCPT ); Mon, 30 Oct 2023 02:29:41 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C20C6; Sun, 29 Oct 2023 23:29:34 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 39U6S3h842780490, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.93/5.92) with ESMTPS id 39U6S3h842780490 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Oct 2023 14:28:03 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Mon, 30 Oct 2023 14:28:03 +0800 Received: from RTEXH36506.realtek.com.tw (172.21.6.27) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 30 Oct 2023 14:28:02 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Mon, 30 Oct 2023 14:28:02 +0800 From: Jyan Chou To: , , , , , , , , CC: , , , , , , , , , Subject: [PATCH V4][4/4] dt-bindings: mmc: Add dt-bindings for realtek mmc driver Date: Mon, 30 Oct 2023 14:27:49 +0800 Message-ID: <20231030062749.2840-5-jyanchou@realtek.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231030062749.2840-1-jyanchou@realtek.com> References: <20231030062749.2840-1-jyanchou@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS03.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 23:29:47 -0700 (PDT) Document the device-tree bindings for Realtek SoCs mmc driver. Signed-off-by: Jyan Chou --- v3 -> v4: - Rename compatible(add SoC-specific part) to be different from filename. - Describe the items to make properties and item easy to understand. - Fix examples' indentation and compiling error. - Drop useless properties. v2 -> v3: - Modify dt-bindings' content and description. - Fix coding style. - Update the list of maintainers. v0 -> v2: - Add dt-bindings. --- --- .../bindings/mmc/realtek-dw-mshc.yaml | 161 ++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml diff --git a/Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml b/Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml new file mode 100644 index 000000000000..d238cf3b8b47 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/realtek-dw-mshc.yaml @@ -0,0 +1,161 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/realtek-dw-mshc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek DesignWare mobile storage host controller + +description: + Realtek uses the Synopsys DesignWare mobile storage host controller + to interface a SoC with storage medium. This file documents the Realtek + specific extensions. + +allOf: + - $ref: synopsys-dw-mshc-common.yaml# + +maintainers: + - Jyan Chou + +properties: + compatible: + enum: + - realtek,rtd1325-dw-cqe-emmc + + reg: + maxItems: 2 + description: + Two regs are required, first reg specifies emmc base address, second reg + specifies cqhci base register address. + + reg-names: + maxItems: 2 + items: + - const: emmc + - const: cqhci + + interrupts: + maxItems: 1 + + cqe: + maxItems: 1 + description: + Cqe should set to 1 while using command queue feature, and set to 0 while + in legacy mode. + + clocks: + minItems: 2 + items: + - description: bus interface unit clock + - description: card interface unit clock + - description: select the phase for vpclk0 in realtek chip specified + - description: select the phase for vpclk1 in realtek chip specified + + clock-names: + minItems: 2 + items: + - const: biu + - const: ciu + - const: vp0 + - const: vp1 + + resets: + maxItems: 1 + + reset-names: + const: reset + + pinctrl-0: + description: + should contain default/high speed pin ctrl. + maxItems: 1 + + pinctrl-1: + description: + should contain sdr50 mode pin ctrl. + maxItems: 1 + + pinctrl-2: + description: + should contain ddr50 mode pin ctrl. + maxItems: 1 + + pinctrl-3: + description: + should contain hs200 speed pin ctrl. + maxItems: 1 + + pinctrl-4: + description: + should contain hs400 speed pin ctrl. + maxItems: 1 + + pinctrl-5: + description: + should contain tune0 pin ctrl. + maxItems: 1 + + pinctrl-6: + description: + should contain tune1 pin ctrl. + maxItems: 1 + + pinctrl-7: + description: + should contain tune2 pin ctrl. + maxItems: 1 + + pinctrl-8: + description: + should contain tune3 pin ctrl. + maxItems: 1 + + pinctrl-9: + description: + should contain tune4 pin ctrl. + maxItems: 1 + + pinctrl-names: + maxItems: 10 + + required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + - pinctrl-names + + unevaluatedProperties: false + + examples: + - | + emmc: mmc@12000 { + compatible = "realtek,rtd1325-dw-cqe-emmc"; + reg = <0x00012000 0x00600>, + <0x00012180 0x00060>; + reg-names = "emmc", "cqhci"; + interrupts = <0 42 4>; + clocks = <&cc 22>, <&cc 26>, <&cc 121>, <&cc 122>; + clock-names = "biu", "ciu", "vp0", "vp1"; + clock-freq-min-max = <300000 400000000>; + clock-frequency = <400000>; + vmmc-supply = <®_vcc1v8>; + resets = <&rst 20>; + reset-names = "reset"; + speed-step = <3>; + cqe = <1>; + pinctrl-names = "default", "sdr50", "ddr50", "hs200", "hs400", + "tune0","tune1", "tune2","tune3", "tune4"; + pinctrl-0 = <&emmc_pins_sdr50>; + pinctrl-1 = <&emmc_pins_sdr50>; + pinctrl-2 = <&emmc_pins_ddr50>; + pinctrl-3 = <&emmc_pins_hs200>; + pinctrl-4 = <&emmc_pins_hs400>; + pinctrl-5 = <&emmc_pins_tune0>; + pinctrl-6 = <&emmc_pins_tune1>; + pinctrl-7 = <&emmc_pins_tune2>; + pinctrl-8 = <&emmc_pins_tune3>; + pinctrl-9 = <&emmc_pins_tune4>; + }; -- 2.42.0