Message ID | 20231011090510.114476-2-ychuang570808@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp397600vqb; Wed, 11 Oct 2023 02:06:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHF9JpS1O3kHiHN+6aE9EPpQ9/4g7gPlwO7QOzAcSFbm1sd3OAof5PNZ2gEkfpOVRCo1Y9a X-Received: by 2002:a05:6a20:4407:b0:133:6e3d:68cd with SMTP id ce7-20020a056a20440700b001336e3d68cdmr28536918pzb.3.1697015209877; Wed, 11 Oct 2023 02:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697015209; cv=none; d=google.com; s=arc-20160816; b=m7iJl7RAkiSqRc1JEEH32CQxD4GYqTI9fSaIizmOPVTaXfELCB7TrO03i5Q/YHlTer +lEj6wAkXOaMutClcIwvT8luYNiHt8ISq9tu5dNFJZ9dORwkFAaf8ugRHMxvBZxc6KOn 83wBQ0+62/fvOpsh3xV4bOABWLR1TRX8SW3GSoKn0KVfkYeZvbbFmWX5aKkXwo9EasFu g4SfvsuWYxYnr+FafB1gqYma8Bpa6C5CaSKOW7B3vV8NYcTVX/otEYJRuoxvkrHL08Vt GopNCtxjbKU+avg8bEpAZzjuAWVcLycx11TXFcuLU8XpZrtSg0QKG8PZ4pJU/9lC2MvO YxgQ== 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 :dkim-signature; bh=73MtTHz2wZG8BeDtRimMkXrJ4nbT8Vxr+Vs93hyGOic=; fh=RXcrNhDULZEFnfui821EQfgSlaEVBcyXlNtZpbKsIMI=; b=CArAhj6PImURAe9dbVEowpS0WHamt5Cz63JH5kvmPD2f6r1s9KftqXVM7afEoBqjMv GbEoXzt3sEDNlHzSF1oBDkCNtuouoCLN9cAhmvXZZyhN+1c+Jv9qWKVArK7tP++v0JKa /jWvykhbQAlN2tgv+61BKpMgXxRZ+D8XrMk/p7GKJcLt3SAcM+p185xDhYsgVdB+EFzy GvJi2WtqobErV9LPe935IBdpj1xjP+QNveuuGYWCAVWiDEJOFh9d1+YPj4V3SeUBoECh 8oTRfddsuDr1ylDkImBoGfgR4w1m6PkgfNipY/H8j4EK4ae4QEJqLtu5L/sDABjqtJmW e7Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QUsxm+ML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d19-20020a637353000000b0059b950975b9si3665342pgn.534.2023.10.11.02.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 02:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QUsxm+ML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E84C28089841; Wed, 11 Oct 2023 02:06:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345883AbjJKJF0 (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Wed, 11 Oct 2023 05:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjJKJFX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 11 Oct 2023 05:05:23 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D506A7; Wed, 11 Oct 2023 02:05:18 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1c7373cff01so5807845ad.1; Wed, 11 Oct 2023 02:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697015118; x=1697619918; darn=vger.kernel.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=73MtTHz2wZG8BeDtRimMkXrJ4nbT8Vxr+Vs93hyGOic=; b=QUsxm+MLnJ+PTPmUGZ2A5g33atbRCjBRTeHjoK6oK4PMhzqNFMgcb2uO9XQimkrK2W z32SvFO94ePrhfEkqLj6EpEcUgLsUV6QzGLKY7Q19+VKyJv0YHl4DtEjm+ogxWQchRFl nmPvxF/9fK4b09MFGe2ftr2jq2hH1ZSWIDvTd+iE3+9nDiIUC+ZiAWp0/Cgz+M1Un4Cx wvgNV51ADsyG0ECawEAR2GtNgUnWMHZ9PkAtwW/5vxsJDtnHoi5l5v2aEW80VpTpAZad O588WBTMyS+Fw9dwsnYY5ASdzWKSBy0739T4TlFwvZiM4PBOyq9pBaoK7UG85v37hMKK zX1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697015118; x=1697619918; 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=73MtTHz2wZG8BeDtRimMkXrJ4nbT8Vxr+Vs93hyGOic=; b=arfl1YQUbJciUPS2XwY0m2JrfvpTOMoxxy6LJ4xqKed/zK+dIvDDYmsAZwH1g4dg4K nyrHmo6ej9JhL6O4ZVAfzci6hpgkFqlAxADCPl7EK6n2ttHAIoHoaFvQHL16trycw4yA /TevGTBnhgX01mLgUERPL5SbCGOwgWV/JvG85ykv4xkg44SW1R8c30XFHL0DyZjsgIy2 pgvIelfAzEfvSKtR8GHUAqQwhRGVWjmq/BxObxuVku7SQ7ODpLMDXJOdFVdhRkdu4WGO inLYPQCGEK+tfUGdBuVHNfERyNPO3hvA85i5JLNZwyOkLjimlgYbKyZ5LGbY8XTYfx1k chzQ== X-Gm-Message-State: AOJu0YyycusgIK+jnCdJ2O5QeaWcJIzhRvS552GyTjK5yBxSeonlg/EE F1MNVi3VdZSn9MuxXJbBY2M= X-Received: by 2002:a17:902:da83:b0:1c6:e1d:8be0 with SMTP id j3-20020a170902da8300b001c60e1d8be0mr30460492plx.2.1697015117730; Wed, 11 Oct 2023 02:05:17 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id z18-20020a170903019200b001c61df93afdsm13346699plg.59.2023.10.11.02.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 02:05:17 -0700 (PDT) From: Jacky Huang <ychuang570808@gmail.com> To: linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, j.neuschaefer@gmx.net Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, schung@nuvoton.com, Jacky Huang <ychuang3@nuvoton.com> Subject: [PATCH 1/4] dt-bindings: reset: Add syscon to nuvoton ma35d1 system-management node Date: Wed, 11 Oct 2023 09:05:07 +0000 Message-Id: <20231011090510.114476-2-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231011090510.114476-1-ychuang570808@gmail.com> References: <20231011090510.114476-1-ychuang570808@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 02:06:02 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779449420606125384 X-GMAIL-MSGID: 1779449420606125384 |
Series |
Add support for nuvoton ma35d1 pin control
|
|
Commit Message
Jacky Huang
Oct. 11, 2023, 9:05 a.m. UTC
From: Jacky Huang <ychuang3@nuvoton.com> Add compatible 'syscon' to the system-management node. Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> --- .../devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On 11/10/2023 11:05, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > Add compatible 'syscon' to the system-management node. Why? Commit msg should answer to this. Best regards, Krzysztof
On Wed, Oct 11, 2023 at 09:05:07AM +0000, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > Add compatible 'syscon' to the system-management node. > > Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> > --- > .../devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml > index 34c5c1c08ec1..3ce7dcecd87a 100644 > --- a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml > +++ b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml > @@ -18,6 +18,7 @@ properties: > compatible: > items: > - const: nuvoton,ma35d1-reset > + - const: syscon Presumably you already have a driver for nuvoton,ma35d1-reset, so just make it create a regmap. I assume this is the reason you want to add 'syscon'? Rob
Dear Krzysztof, Thank you for the review. On 2023/10/13 上午 03:30, Krzysztof Kozlowski wrote: > On 11/10/2023 11:05, Jacky Huang wrote: >> From: Jacky Huang <ychuang3@nuvoton.com> >> >> Add compatible 'syscon' to the system-management node. > Why? Commit msg should answer to this. > > Best regards, > Krzysztof > I added 'syscon' because system control registers are mapped by this driver. The pinctrl driver needs to access the system control registers through 'regmap' with a phandle referring to this node. I will update the commit message to provide a more detailed explanation of its purpose. Best Regards, Jacky Huang
Dear Rob, Thank you for the review. On 2023/10/13 上午 04:39, Rob Herring wrote: > On Wed, Oct 11, 2023 at 09:05:07AM +0000, Jacky Huang wrote: >> From: Jacky Huang <ychuang3@nuvoton.com> >> >> Add compatible 'syscon' to the system-management node. >> >> Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> >> --- >> .../devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml >> index 34c5c1c08ec1..3ce7dcecd87a 100644 >> --- a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml >> +++ b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml >> @@ -18,6 +18,7 @@ properties: >> compatible: >> items: >> - const: nuvoton,ma35d1-reset >> + - const: syscon > Presumably you already have a driver for nuvoton,ma35d1-reset, so just > make it create a regmap. I assume this is the reason you want to add > 'syscon'? > > Rob Yes, we have a driver for 'nuvoton,ma35d1-reset' with a register space mapped to the system control registers. The other ma35d1 drivers may also require access to the system control registers. I added 'syscon' to this node so that other drivers can utilize 'regmap' via the phandle of this node. Best Regards, Jacky Huang
diff --git a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml index 34c5c1c08ec1..3ce7dcecd87a 100644 --- a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml +++ b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml @@ -18,6 +18,7 @@ properties: compatible: items: - const: nuvoton,ma35d1-reset + - const: syscon reg: maxItems: 1 @@ -37,7 +38,7 @@ examples: - | system-management@40460000 { - compatible = "nuvoton,ma35d1-reset"; + compatible = "nuvoton,ma35d1-reset", "syscon"; reg = <0x40460000 0x200>; #reset-cells = <1>; };