Message ID | 20221222183823.518856-5-cristian.marussi@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp108690wrn; Thu, 22 Dec 2022 10:46:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvF4q8mBAK3O3Gss1nsJo7XUbtI2Iv7uAsmR1vCJkRhL5E0Hmofy9rxtmBGoOGGnDpq7Rww X-Received: by 2002:aa7:dd13:0:b0:45c:937d:25c8 with SMTP id i19-20020aa7dd13000000b0045c937d25c8mr5885695edv.1.1671734765968; Thu, 22 Dec 2022 10:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671734765; cv=none; d=google.com; s=arc-20160816; b=hGyZTbEY14iR4UeCqmAwAbp8Go60SFRRRh8m07DerklKmQWjTevhK3ol65lwcg5MR8 jcWxv1qv2tTqXwMphYmSMGj0tEKXqQSYAUR/PH4vgPeuEg05IRwa3BqUoEaetmD6PEGI bXf05gY0Emq2nCvgTX68HQXThNZcKWtEi6UHIPVkeapLWZOo/nKYzJclFQfpaCt/XjgA 52Uyz5dUAyrfXmGQ2gZccqSBFnh8a1GPxD6pAhRJ+kcX8vYQliTLbffGh2xEQiBWFtDi AXyy9UaMafmelkyIt4ImEkGDyxdMmijefLcfalhRiHSp6mpNosp900uV0Y3SwljTVzzd y95g== 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; bh=vSRHk3tF4RzYxXaHI8hgErzcouS2nfh1gm07p3d87aA=; b=dY3aELgHkAddHQSCiuTmnPo2rgnZCkgiBxgDxXTeDLhUigmZECZC0SJ18M2b/RKgX3 ALhXMgWNeSxIzGI9xqI6a0sSfvIzXD+pX+CcH2l7PN6EylLugfJU+7HhPnffnU2blM40 NNl8lzSxQhVWqnjwiFE5zidf8aLi6/UP0Itjxi1v82EIwqsV7fbHvDLWR3HqhlkfVvqJ Bb0vi32c0DjN65bGcj0AjUaqihc7w1gNkA1VE1w07oPa8DtvrWdh6bYzhpb6WrwcUrQN T9yCpIGoB43B/eVaoUoC+fgyNXWSnhPAQSQISmEFBq3G40rf4OrZ1a0W0UknlTw0BwXk FGxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a05640213d500b00472982b0adbsi1088287edx.55.2022.12.22.10.45.41; Thu, 22 Dec 2022 10:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235427AbiLVSjB (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Thu, 22 Dec 2022 13:39:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235230AbiLVSir (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 22 Dec 2022 13:38:47 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D8D9C1D329; Thu, 22 Dec 2022 10:38:46 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B253F16A3; Thu, 22 Dec 2022 10:39:27 -0800 (PST) Received: from e120937-lin.. (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B075F3FAFB; Thu, 22 Dec 2022 10:38:45 -0800 (PST) From: Cristian Marussi <cristian.marussi@arm.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, cristian.marussi@arm.com, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org Subject: [PATCH 4/5] dt-bindings: firmware: arm,scmi: Add support for syspower protocol Date: Thu, 22 Dec 2022 18:38:22 +0000 Message-Id: <20221222183823.518856-5-cristian.marussi@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221222183823.518856-1-cristian.marussi@arm.com> References: <20221222183823.518856-1-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752940953687901516?= X-GMAIL-MSGID: =?utf-8?q?1752940953687901516?= |
Series |
Miscellaneous SCMI fixes for v6.2
|
|
Commit Message
Cristian Marussi
Dec. 22, 2022, 6:38 p.m. UTC
Add new SCMI Syspower protocol bindings definitions and example.
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
Got lost in translation probably...from txt to yaml
---
.../devicetree/bindings/firmware/arm,scmi.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On 22/12/2022 19:38, Cristian Marussi wrote: > Add new SCMI Syspower protocol bindings definitions and example. > > Cc: Rob Herring <robh+dt@kernel.org> > Cc: devicetree@vger.kernel.org > Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> > --- > Got lost in translation probably...from txt to yaml Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > --- > .../devicetree/bindings/firmware/arm,scmi.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > index 1c0388da6721..f3dd77a470dd 100644 > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > @@ -111,6 +111,12 @@ properties: > required: > - '#power-domain-cells' > > + protocol@12: > + type: object > + properties: > + reg: > + const: 0x12 > + Why? It did not got lost, it's already covered by pattern. If you refer to particular warning, please paste it in commit msg. Otherwise it looks incorrect. Best regards, Krzysztof
On Fri, Dec 23, 2022 at 11:11:27AM +0100, Krzysztof Kozlowski wrote: > On 22/12/2022 19:38, Cristian Marussi wrote: > > Add new SCMI Syspower protocol bindings definitions and example. > > > > Cc: Rob Herring <robh+dt@kernel.org> > > Cc: devicetree@vger.kernel.org > > Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> > > --- > > Got lost in translation probably...from txt to yaml > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. > Hi Krzysztof, thanks for the feedback and sorry I posted with an incomplete Cc list. > > --- > > .../devicetree/bindings/firmware/arm,scmi.yaml | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > index 1c0388da6721..f3dd77a470dd 100644 > > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > @@ -111,6 +111,12 @@ properties: > > required: > > - '#power-domain-cells' > > > > + protocol@12: > > + type: object > > + properties: > > + reg: > > + const: 0x12 > > + > > Why? It did not got lost, it's already covered by pattern. If you refer > to particular warning, please paste it in commit msg. Otherwise it looks > incorrect. > Yes indeed, but as a matter of fact it seemed to me that we used to add an entry and an example for all the currently published standard SCMI protocols, even though already covered by the patternProp (which covers also any custom-vendor protocol in the wild) and not sporting any additional custom properties (see protocol@18), but maybe this is just a unneeded wrong habit adding only cruft to the bindings. If you think it does not add any value I can happily drop this, or limiting the addition just to the example (and/or drop equally the unneeded protocol@18 node too in this case). Thanks, Cristian
On 23/12/2022 11:37, Cristian Marussi wrote: >>> >>> + protocol@12: >>> + type: object >>> + properties: >>> + reg: >>> + const: 0x12 >>> + >> >> Why? It did not got lost, it's already covered by pattern. If you refer >> to particular warning, please paste it in commit msg. Otherwise it looks >> incorrect. >> > > Yes indeed, but as a matter of fact it seemed to me that we used to add an > entry and an example for all the currently published standard SCMI protocols, > even though already covered by the patternProp (which covers also any > custom-vendor protocol in the wild) and not sporting any additional > custom properties (see protocol@18), but maybe this is just a unneeded wrong > habit adding only cruft to the bindings. > > If you think it does not add any value I can happily drop this, or > limiting the addition just to the example (and/or drop equally the unneeded > protocol@18 node too in this case). Duplicating the node (once in properties, second in patternProperties) is not needed. I am also not sure what would be the point to add to the example - example does not have to be complete DTS for all cases, but illustrate the binding and allow is to test it. Best regards, Krzysztof
On Fri, Dec 23, 2022 at 12:22:34PM +0100, Krzysztof Kozlowski wrote: > On 23/12/2022 11:37, Cristian Marussi wrote: > > >>> > >>> + protocol@12: > >>> + type: object > >>> + properties: > >>> + reg: > >>> + const: 0x12 > >>> + > >> > >> Why? It did not got lost, it's already covered by pattern. If you refer > >> to particular warning, please paste it in commit msg. Otherwise it looks > >> incorrect. > >> > > > > Yes indeed, but as a matter of fact it seemed to me that we used to add an > > entry and an example for all the currently published standard SCMI protocols, > > even though already covered by the patternProp (which covers also any > > custom-vendor protocol in the wild) and not sporting any additional > > custom properties (see protocol@18), but maybe this is just a unneeded wrong > > habit adding only cruft to the bindings. > > > > If you think it does not add any value I can happily drop this, or > > limiting the addition just to the example (and/or drop equally the unneeded > > protocol@18 node too in this case). > > Duplicating the node (once in properties, second in patternProperties) > is not needed. I am also not sure what would be the point to add to the > example - example does not have to be complete DTS for all cases, but > illustrate the binding and allow is to test it. > Thanks, I'll drop this patch. Cristian
diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 1c0388da6721..f3dd77a470dd 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -111,6 +111,12 @@ properties: required: - '#power-domain-cells' + protocol@12: + type: object + properties: + reg: + const: 0x12 + protocol@13: type: object properties: @@ -285,6 +291,10 @@ examples: #power-domain-cells = <1>; }; + scmi_syspower: protocol@12 { + reg = <0x12>; + }; + scmi_dvfs: protocol@13 { reg = <0x13>; #clock-cells = <1>;