From patchwork Mon Jul 1 00:39:12 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: 13717456 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 07F3BC27C4F for ; Mon, 1 Jul 2024 00:40:14 +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=X+GuVF2kNwP7dpaSNdPfapL93zga/d4F8D+n/ifJ75U=; b=D1EuoxxQuFPQSeYLwkX1AtIGzr nR9Ibd0KM5ZFVybji2ODVy1VR+spyGkpBmFZD5NvzUhD+bQkVYCH3gIYo8tsYQSJwkEY0g93kwN5p jC/vywkmjOKh4x4iKqmffJEGthl7lHYI5K5joVlxSMzRz/Q24yS4uIcQYy5O4hLH3M7IkBH6JKbSg U/DZCGUD9sbFBUamNv6Lpw7JVaWjrXrG7FN3y03F2lwZIOkj8C2sUryCUPpDzcOpkXaXvKuqFF2HP fKe77wSrMCObWwa/cIdMazhP8EthOhFqoDAkm71HrMb8l71siOXAfPru282N5zqJGVpHraPv0aLxM UjtNd7KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO55Q-00000001KdN-3B7D; Mon, 01 Jul 2024 00:40:04 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO55A-00000001KWp-2vtc for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 00:39:50 +0000 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3d5654d5f4fso1108791b6e.1 for ; Sun, 30 Jun 2024 17:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719794387; x=1720399187; 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=X+GuVF2kNwP7dpaSNdPfapL93zga/d4F8D+n/ifJ75U=; b=cJR5yAtfxGKz21bBbElESmBt7YTuikTF9dDeBqXpzSZhHH1FdbQBldmDa7GtB/Qu19 W8Mxxtu1+1pEnCoK8JcO2tEsvs3pyRxGyk6r96IbLZelOxOfd8NqHVHBKgL3/H9rYLJ2 lZD4UACnvbQ8c2437BL3a2VWObSe6pzEcsPkRFmPF//2ck+sCwwyn39wdPZEpVhIzBS4 D9HAAFjr71+ZCGBPVmhLl/fHLyFstQLmpFc/7AeuGcaXWM9kQANVt1lgGx50gqZYJYOg RF3VNyuWkWJMmkXrMxkiaS2cXDnDFboeBJxXT5CdN40OEfpUDE0cQ6/dx4WB1WXddYz0 KmZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719794387; x=1720399187; 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=X+GuVF2kNwP7dpaSNdPfapL93zga/d4F8D+n/ifJ75U=; b=tYlbtqRoWNylgoTXyr8RGAuNzO5ABg08ImjlYaVZqJ++pjheCxFeqbcUUztlhViRdS hLcKG9wSAiF9F+xycSZMPKiTGh05j7707e9I68dcVhxPCBjUs/K4EpFzVwKwaH6P1EXw j/pubfMxhcyQc4k5rSCfQiiZOqArUCiDswGDImSL4oLZJEPHGoQyRwnEtC9XxpNEiobB QnGVjpJEGLfmlLuZ2DnE4umgHJ92qWTh8DgnK+cTJrY6zTRVIO6lNWYcFO8JrPWnn1RL QQv0zw0tgGZIa9A99cMMDxpHlQr8N+YNVh5+oSpU/vNPJvs0q50X7itTnsOM9xBVLosv 2cIg== X-Forwarded-Encrypted: i=1; AJvYcCXoaq2K5E/1obYqRQ1D3x4BbiKMAzY7hdT5/bDF3KxSmjNDMRVX3mqExpe9S5Hkl1BS6SbehJLMJIF3E2bEq8laH8bBU3Y+tOIciN3SgQzfRqdtSzg= X-Gm-Message-State: AOJu0Ywlz82Iy75SCfx+7klbVtAgxS+ksJsbBrvVz1HczFq2pxBw6rac LayWsoC9YGkrDLiLT4yUz2I0QjHeks1ODCQkWib2fGbmO88FoeaU X-Google-Smtp-Source: AGHT+IHEGsr50/ZkJI0Xo7HXdcXcGSsSpcDBJTs10hx01Tee6k7luqZR7xFr4n2dftPDn4jHDJhQcg== X-Received: by 2002:a05:6808:2288:b0:3d5:47bc:14e1 with SMTP id 5614622812f47-3d6b31ebb94mr3402877b6e.23.1719794387526; Sun, 30 Jun 2024 17:39:47 -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-70801e53b47sm5232022b3a.37.2024.06.30.17.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jun 2024 17:39:47 -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 v3 1/2] dt-bindings: mmc: nuvoton,ma35d1-sdhci: Document MA35D1 SDHCI controller Date: Mon, 1 Jul 2024 08:39:12 +0800 Message-Id: <20240701003913.729428-2-shanchun1218@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240701003913.729428-1-shanchun1218@gmail.com> References: <20240701003913.729428-1-shanchun1218@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240630_173948_831643_EE0F724B X-CRM114-Status: GOOD ( 12.25 ) 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 | 88 +++++++++++++++++++ 1 file changed, 88 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..cf08cdcb58ed --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/nuvoton,ma35d1-sdhci.yaml @@ -0,0 +1,88 @@ +# 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>; + status = "disabled"; + }; + };