From patchwork Tue Jul 16 00:45:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shan-Chun Hung X-Patchwork-Id: 13733962 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9EE93C3DA59 for ; Tue, 16 Jul 2024 00:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DmRt58sujYbUWl42YDpTmjrb8UaUan/GZPrgtBml3ig=; b=Vxp+g/59KaarbxnblYK9PC+6xA j57CzDjI3ZivXCyOQJbqXBT9QI7/NejTfPRX+7CrvYoE987v+Uw4QgaWaBNFwfFk87FDzY8ZMMR/6 i+d2oThR6HqKf4rJ+v0i6eADI7mpW3KR5L4JTyZhSkIzMrlK8CbnDENsbfFuABBYMZtNo9W0iusGQ kyPBi3Cxk9tLDsEGn936xhwr6SOo8uIyrFSdU2qLkDlc5pCvhjga4HNeS4Bv/x4ioYG5bVHQyG3wq rHZMCP5uRS/QJYChI9UhZ/+Q9/vY+3U/ufBEmORu9qPnjnQF/MYrmySqWdv95X3g/T7ZWBi9ll4wI 4a3AltVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTWKc-00000008r5Z-2Sr1; Tue, 16 Jul 2024 00:46:14 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTWK4-00000008quc-29Yh for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 00:45:42 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-70b0e9ee7bcso3792752b3a.1 for ; Mon, 15 Jul 2024 17:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721090739; x=1721695539; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DmRt58sujYbUWl42YDpTmjrb8UaUan/GZPrgtBml3ig=; b=ZflEwI64G4HyLTmg/jd2turiPW52tZD5K14tfhlgr+3PAG52AclMlrih9gSHayayrp JiRv6X5Tnn27g9ZWTZwhkTJLwcIKHdi7sTFQY2dc1jSItmjqLM6LxS1p4rc9pnI+fgVu naNFEY6VmlFXiOeGkqrVb2Gdv5GU5IhmVUxr5qw9YDaj33jCd/RFL254tLyyqj6HUft0 tnkN+KG1atAWu+WupXAmZq7q0dBh2pGl775vXBH7hgErY/EmndqryofH3DYnkCZGYR5A gczEU1vDwwRwY/sF/Wbe6GVIMK1BDtH8ynA2KOIrhQlEOzfVBbKn6GB8/HAmw2N5jcBJ MQLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721090739; x=1721695539; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DmRt58sujYbUWl42YDpTmjrb8UaUan/GZPrgtBml3ig=; b=scEhCalva5xrEA6XeaBbYHgounvQ34h4sGeUY8NphwNh7AiVh8H+1hJqMDMLz+iS+J AYu6aIm1DiTkqDF13SsWXCvy23hm/dKSidkvxzf4vF7zPBfO0wQRYKWPXsrXUVoLWEXl sH0enePSIa4yUf9BLu9aEhgSIBa4Hht+Y4wJr0iQZOb2T5gtH5CjTElpfbDn730q0YPQ 4J0XM4jS5fHwLuFLjqbBuQnLKRbHL2G5uc1tPEmuQDnGBQhWQ6IuV7byIU4mdrRDBHzk XNfsq3WOQGxTAL22WcPikO2wwyFzrYPD2Qmr8td13YXCydFiPX+9kpzqLNLeUAtj7t/0 9a9w== X-Forwarded-Encrypted: i=1; AJvYcCXdnj+6w97LDYczUui/aVVdO8/SU8bs7q0NRBE7eBBkPYw7SslKC0KeUnaG9ZAwzm6csljOR2mVNGB3gAA59o8hTrWWHTGN2bm++Kk0HSPRliJsCD8= X-Gm-Message-State: AOJu0YyZ8BPSo2CaHSkUw1uhNLWYL/DMJBjpac3/VCPoPVCUb2BM10Lw zydQfC84CzyJOIJ0aY8WrrUB06zNTmgc/Mu+Gzj3Dia7zM5d4cyb X-Google-Smtp-Source: AGHT+IExNQ8d8O1Br2OEiWhuTGusLH/+AIojQSEobbpnnMfqRPjLszj29y30WBCQjhY6/ceoTs5nZw== X-Received: by 2002:a05:6a20:914b:b0:1be:d1bf:a371 with SMTP id adf61e73a8af0-1c3f124bf62mr782710637.33.1721090739092; Mon, 15 Jul 2024 17:45:39 -0700 (PDT) Received: from localhost.localdomain (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b7eca758fsm5000949b3a.162.2024.07.15.17.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 17:45:38 -0700 (PDT) From: Shan-Chun Hung To: ulf.hansson@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, adrian.hunter@intel.com, p.zabel@pengutronix.de, pbrobinson@gmail.com, serghox@gmail.com, mcgrof@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, forbidden405@outlook.com, tmaimon77@gmail.com, andy.shevchenko@gmail.com, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ychuang3@nuvoton.com, schung@nuvoton.com, Shan-Chun Hung Subject: [PATCH v5 1/2] dt-bindings: mmc: nuvoton,ma35d1-sdhci: Document MA35D1 SDHCI controller Date: Tue, 16 Jul 2024 08:45:26 +0800 Message-Id: <20240716004527.20378-2-shanchun1218@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240716004527.20378-1-shanchun1218@gmail.com> References: <20240716004527.20378-1-shanchun1218@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_174540_574928_BFCD9BFE X-CRM114-Status: GOOD ( 12.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding for Nuvoton MA35D1 SDHCI controller. Signed-off-by: Shan-Chun Hung Reviewed-by: Krzysztof Kozlowski --- .../bindings/mmc/nuvoton,ma35d1-sdhci.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/nuvoton,ma35d1-sdhci.yaml -- 2.25.1 diff --git a/Documentation/devicetree/bindings/mmc/nuvoton,ma35d1-sdhci.yaml b/Documentation/devicetree/bindings/mmc/nuvoton,ma35d1-sdhci.yaml new file mode 100644 index 000000000000..4d787147c300 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/nuvoton,ma35d1-sdhci.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/nuvoton,ma35d1-sdhci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 SD/SDIO/MMC Controller + +maintainers: + - Shan-Chun Hung + +allOf: + - $ref: sdhci-common.yaml# + +properties: + compatible: + enum: + - nuvoton,ma35d1-sdhci + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + pinctrl-names: + minItems: 1 + items: + - const: default + - const: state_uhs + + pinctrl-0: + description: + Should contain default/high speed pin ctrl. + maxItems: 1 + + pinctrl-1: + description: + Should contain uhs mode pin ctrl. + maxItems: 1 + + resets: + maxItems: 1 + + nuvoton,sys: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to access GCR (Global Control Register) registers. + +required: + - compatible + - reg + - interrupts + - clocks + - pinctrl-names + - pinctrl-0 + - resets + - nuvoton,sys + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + mmc@40190000 { + compatible = "nuvoton,ma35d1-sdhci"; + reg = <0x0 0x40190000 0x0 0x2000>; + interrupts = ; + clocks = <&clk SDH1_GATE>; + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&pinctrl_sdhci1>; + pinctrl-1 = <&pinctrl_sdhci1_uhs>; + resets = <&sys MA35D1_RESET_SDH1>; + nuvoton,sys = <&sys>; + vqmmc-supply = <&sdhci1_vqmmc_regulator>; + bus-width = <8>; + max-frequency = <200000000>; + }; + };