From patchwork Thu Jul 4 06:26:22 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: 13723304 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 49CB7C3065C for ; Thu, 4 Jul 2024 06:38:09 +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=e4v5t9ASBrBjbnn+yqXWOS24RZUAUYqSrgQ0RyephvE=; b=Nf+hgVwuy8g1U2zcX8H9301DUa sp2RLh4zlto7kbafl+8It25I63ZlQXdLA4Ba0lL1CPSc8HYmOfgsjmqXClqvs3bcCb7l2G4L5JA// 7cTozu8a53zR5Kipiqp23To+usazM+0Bn0ztFQVOJWnMcknfE8ciiNuvws92ZCyIzv9Swk1EG96il VtSbiAcKeFl3DaGesZqP/0NdnfsgDJYAomRS2rKGhiNSPe4WujlnqlBManpdiCsLlm5nSyzsBfzfN KuSTV9aVeJAjJhI4aDMSCkFjh8ycEfxg+S40lkO1qPPUjG6bzryUpf9LXeOxREt7K+lkDhfav5hO8 kmlQ8doQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPG6Q-0000000CM3P-49JL; Thu, 04 Jul 2024 06:37:58 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPG65-0000000CLw6-41Gm for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 06:37:39 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2c5362c7c0bso228135a91.1 for ; Wed, 03 Jul 2024 23:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720075057; x=1720679857; 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=e4v5t9ASBrBjbnn+yqXWOS24RZUAUYqSrgQ0RyephvE=; b=ZkkqV05J/AOx30iqEuf6OgIpT5FvueSz4GlfFvhuTqawmUfw7HtXzGA5SRx26RfaMR 6usQpNkDrmAq5/PcqEcoKCNsbru4Z1gn/nto3gVPvSHKBrN8u6Gh0DM5LOPv3qWn+max mZpwNp7l1rm83HI1WmtowAlo9QfXj4FVHl5zp/g2hxX3PgNhU5/UORTyRb+SKiFq/XWE 3jiR4dBEi3P26a8XXx9Wb2WoMe5DqT68+vSzOsv841OQfPBNBPmAbfp96QfiadgFDshY x0A9RzC69uywfwMK6Ik3ODEMuw/M4mzoY84vREVuXhrt07tM69ZCQqwbUGFW7zks/EHn iWyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720075057; x=1720679857; 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=e4v5t9ASBrBjbnn+yqXWOS24RZUAUYqSrgQ0RyephvE=; b=bG0do5VsOgK/maNDmfjvkWDkXsErA765Pn5061+Uyimi8uHuKmZE6ZZ4rK/vlrgFbt sDG11Z0ePtA9UMmyeNgjR1OndJb39mBfUXakt01F9ho9fw7hLkCYzCr43Wkr8cgOA2TE Zi7GlsnhuKnV3a2P5fz1do3N/0NvT9pVEWWyWoyNVtvBJLxb6+8tHjJCRXbbId0hUrce Mlxg+V//HgHq0O2i+zVQji52h3XneeK48o5G0VCc9JE4ay+XjLAECJnSs8RBcDSs1WHt AboWD9SRF3oHUpeb+7SR/a5jR9qRvNmJxsPST6L5fPXkoSQmgltXkBuxeG9ukHj9GLwl 6OHw== X-Forwarded-Encrypted: i=1; AJvYcCUNd/lmspqE+wKz/6WTl0+CWZAfDO+TyhNcYXCvqBvWTiOTbG1lH3T/2yBf2937z9erWaRLTZ6t6yzUTwsdJwtkdVODhOvkZFHduXzCNawZNUKd5Ao= X-Gm-Message-State: AOJu0Yxqi6czzHxLx2YrPo6cvzg2B//9IvM8JBPe8dIITZ0t0EUMEmD4 tLjV4yP7g3MG+L0rRWvMQ7EEm3tonfazJEwu29w+DQsZ92vQ15Ib X-Google-Smtp-Source: AGHT+IF1oV0nrHMmOCxoj3w1gzqAcMjuveznl6dYCSwAwcRo7Hv60N3ZzmR4sa6BYovfKo1rJZ+C0g== X-Received: by 2002:a17:90a:eb15:b0:2c9:5c7c:815d with SMTP id 98e67ed59e1d1-2c99c57ed63mr572883a91.22.1720075056677; Wed, 03 Jul 2024 23:37:36 -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 98e67ed59e1d1-2c99aa6fd28sm666835a91.36.2024.07.03.23.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 23:37:36 -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 v4 1/2] dt-bindings: mmc: nuvoton,ma35d1-sdhci: Document MA35D1 SDHCI controller Date: Thu, 4 Jul 2024 14:26:22 +0800 Message-Id: <20240704062623.1480062-2-shanchun1218@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240704062623.1480062-1-shanchun1218@gmail.com> References: <20240704062623.1480062-1-shanchun1218@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_233738_018729_2DBEACFB X-CRM114-Status: GOOD ( 12.33 ) 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 --- .../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..fc8eab29665a --- /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 + + 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 + + clocks: + 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>; + }; + };