From patchwork Thu Dec 28 06:53:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Soo X-Patchwork-Id: 183650 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1841277dyb; Wed, 27 Dec 2023 22:54:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZGpKrZEPgCevR8QiA3x+xP6PucyadbwIuhnxO8h8V0+KDPCrdL2WSyIJrUJB5zeveME1J X-Received: by 2002:a17:902:f688:b0:1d3:d0ff:f49c with SMTP id l8-20020a170902f68800b001d3d0fff49cmr11557664plg.21.1703746493505; Wed, 27 Dec 2023 22:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703746493; cv=none; d=google.com; s=arc-20160816; b=Py5lHhDSJM7tZPaG9IfG2pAhfVYCthWv74TbL2noDEMmqu/neTTFrcEwBMuYJRwYrD hiw3VnyiUo+XZMYVXpRvkZuoqmJ3nAiqwXpkPwBq466Lxqq2WATJeVdhVzG36+GWBYF0 iStM5nysm8ULxF+WGOU9gVLmsR90UagwLcXC/9gJ+PyI8nNI/HjeBuCKKdMx6/SYaDRd OQP4/d6LP14xnvbBN7bjxD8mKVYvG5068GzM6D6pQLgbQBVmpi8deadd1O1N7saOk3Rf 1jQJrbZFLXeScQR3FVo2s2XjHPsYFJllXYD8I1mdg9ryGeckFK+b/WSgESiyWCw/D0Bp THpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=g0Rck+kfCKw+McTR2ClYvQSvlAarAeuOEMzl2JlG090=; fh=SujmxNWP6UUgOFmttKopM1tRLkthr7qfPRUP3RWwLJc=; b=n60RtqedxT6MMg2lk21Go7hn8Rdeq2MB72s8YrNs27u0n5I9EC/tlve9RUSa+6/QOZ 8VIqBt8jcjSfyFVbyt6DEM6Mbr/Ijly0GZ9ocNcwImv9hOiMD4n7dDPr7+0qOvBJLNHl x+mvNmCLhlDROv0Hu9bHbfbzXOpTGOzOLaUYblAyZk42M3rD5CF+xbUERuKKRxAw8y6J gkDqaRYnZwUAWgxov0s4heRhjg45iqqZNRUiC5J2ETh2O8+ZQ/dZGIxJeiOqKu6dzYub foPb3Y5AmOoAXQ+AQD+/dXt1LvKTNnOmPipElgfc8jDhswn/MbGWbWs0ASfO+n1Dks+S 3XcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12469-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12469-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o2-20020a1709026b0200b001d4726415b6si3917969plk.395.2023.12.27.22.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:54:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12469-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12469-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12469-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8B238B225C5 for ; Thu, 28 Dec 2023 06:54:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 779FE6FA3; Thu, 28 Dec 2023 06:53:50 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 794C163AC; Thu, 28 Dec 2023 06:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com 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 4FE0D24E295; Thu, 28 Dec 2023 14:53:36 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:35 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 28 Dec 2023 14:53:30 +0800 From: Alex Soo To: Ulf Hansson , Adrian Hunter , Yangtao Li , Andy Shevchenko , Linus Walleij , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Emil Renner Berthing CC: , , , , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Alex Soo Subject: [PATCH 1/3] dt-bindings: mmc: sdhci-cadence6: add DT bindings documentation Date: Thu, 28 Dec 2023 14:53:20 +0800 Message-ID: <20231228065322.1176351-2-yuklin.soo@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231228065322.1176351-1-yuklin.soo@starfivetech.com> References: <20231228065322.1176351-1-yuklin.soo@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786507683416305457 X-GMAIL-MSGID: 1786507683416305457 Add DT bindings documentation for Cadence SD/eMMC host controller (Version 6) driver. Signed-off-by: Alex Soo --- .../devicetree/bindings/mmc/cdns,sd6hci.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml diff --git a/Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml b/Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml new file mode 100644 index 000000000000..97e28d720c7b --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/cdns,sd6hci.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/cdns,sd6hci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence SD/SDIO/eMMC Host Controller Version 6.0 (SD6HC) + +maintainers: + - Alex Soo + +allOf: + - $ref: mmc-controller.yaml + +properties: + compatible: + items: + - enum: + - starfive,jh8100-sd6hc + - const: cdns,sd6hc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-names: + items: + - const: main + - const: sdmclk + + clocks: + items: + - description: main clock gate which controls the gating of all clock signals to SDHCI + controller + - description: the SD master clock signal + + resets: + items: + - description: reset phandle which controls the assert/deassert of all reset lines to + SDHCI controller + +required: + - compatible + - reg + - interrupts + - clock-names + - clocks + - resets + +unevaluatedProperties: false + +examples: + - | + emmc: mmc@1f110000 { + compatible = "starfive,jh8100-sd6hc", "cdns,sd6hc"; + reg = <0x1f110000 0x10000>; + interrupts = <174>; + clock-names = "main", "sdmclk"; + clocks = <&aoncrg 62>, + <&aoncrg 43>; + resets = <&aoncrg 9>; + bus-width = <8>; + };