[01/11] dt-bindings: firmware: arm,scmi: Document assigned-clocks and assigned-clock-rates
Message ID | 20230315114806.3819515-2-cristian.ciocaltea@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2280039wrd; Wed, 15 Mar 2023 04:51:00 -0700 (PDT) X-Google-Smtp-Source: AK7set/UM4VG492hAVmoqxKtZZBJ301xxhvrPyBF1DKiHQ9I5ordi7HEDvQYSUo5/GR6/G6OUaaq X-Received: by 2002:a17:903:6c8:b0:19e:711b:83c with SMTP id kj8-20020a17090306c800b0019e711b083cmr1890107plb.39.1678881060157; Wed, 15 Mar 2023 04:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678881060; cv=none; d=google.com; s=arc-20160816; b=SsAcqVdLO5Fyly6e6fuUUEN9my3D92oRTwohVPlhoao6aCs2HoPncUzvY/rPRQtXiE UVWZwn440LxZVKyZIZ62Io6nFZS7E53gWXiM7nV35Id/Vh59mtK0zdgSJAQEOatsIpQP ySoqJwTQmByf34LXxUin2Vnf3cvTcbNLDW9k6DCFimhCVLkRnXLKU3V5Vf3zq4pgk3Ja KKupsMLPpcsBYbGyxpm6dgQBsFnaQzvuFoFkg6Rxr7GAbCtrgoaBFO4pONGXZOGK9XiF IYo/VMVtQXUGmZ6sxABaaqVHAyUvYE8LP+wBtGUcHh3mTGqvuwuXv4KBIexMnqxR+5Wk RgGw== 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=T1jYmC9DqwMhBDA/JxUXBZXYrjq8B+gF+ICU+/lIBzc=; b=Jl1B6+Qyb4mFyZZvxtO1MXibYliKnqi3PKQrkNKfCeFjVpTIFzWpwaV8AdTqMQ3KMX NTaphez5r9EtH9SVcbPVo5AsNkxeHOvgdHInhR/iKnVZwMJr6Knz/2rdn+JYwxnQCwqX EqXsNTXnDvW+0bGRG+2yzqenlrN8i2gmIzJYBQKGCG1Al63MOtO/3CiddRQZBR1M+I/M hXi8g3C+cGkiWMbufblDRfdQhdcEKGqZx99hfxaBlkDtqMLQpcYfLILGF56sOVkNxd5M NrW7xJ3KaSvvG5T2RxJNzESvE+rsj9daCQSxSP3y9LstMEotwsxgs+WUnVaSYMyysv+n rSUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HCNZxmYd; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik18-20020a170902ab1200b0019b521f4b07si4805195plb.52.2023.03.15.04.50.47; Wed, 15 Mar 2023 04:51:00 -0700 (PDT) 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; dkim=pass header.i=@collabora.com header.s=mail header.b=HCNZxmYd; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231668AbjCOLsX (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Wed, 15 Mar 2023 07:48:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbjCOLsR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Mar 2023 07:48:17 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EAFE1C5AC; Wed, 15 Mar 2023 04:48:16 -0700 (PDT) Received: from localhost (unknown [188.24.156.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 366496603056; Wed, 15 Mar 2023 11:48:15 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678880895; bh=33Dl4++lH2paqP+E34n30hxUALKXJWejZRw6a5N0108=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HCNZxmYd7Rk0fF2LXGnK5jUM8+WvdGbJ1/NIbtWczIWZsLTe0DuVImLuU783oGdnB 9MgSeJidV8hn6HPZM++7HUy3sXUZrkaeQbaAO8SetTyoixcptmM/FMussRM/6ALQev qTce1dWZHlFBn9T7ZwNr6fRhFRshrcBmWEasojVTt2v83vUO6Bg618LUuG61r5Tnxj 57jwTbsNaLZA8Yn1g1GWa1uhzdXktVk1kVGEdpHA1st3WVMGAvC3DgiBoNS4sgHZ4/ MFsmFrwUaYPfSWvnglvF0eEski/0pojYpbepZshIvy4ZUcJrJrjRVr8WwJBoj6DMlg UKR3/uvf1PnSQ== From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: Sudeep Holla <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Nicolas Frattaroli <frattaroli.nicolas@gmail.com>, Heiko Stuebner <heiko@sntech.de>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Daniel Drake <drake@endlessm.com>, Katsuhiro Suzuki <katsuhiro@katsuster.net> Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, kernel@collabora.com Subject: [PATCH 01/11] dt-bindings: firmware: arm,scmi: Document assigned-clocks and assigned-clock-rates Date: Wed, 15 Mar 2023 13:47:56 +0200 Message-Id: <20230315114806.3819515-2-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> References: <20230315114806.3819515-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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?1760434386466964843?= X-GMAIL-MSGID: =?utf-8?q?1760434386466964843?= |
Series |
Enable I2S support for RK3588/RK3588S SoCs
|
|
Commit Message
Cristian Ciocaltea
March 15, 2023, 11:47 a.m. UTC
Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict
protocol child node properties") the following dtbs_check warning is
shown:
rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected)
Add the missing properties.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 3 +++
1 file changed, 3 insertions(+)
Comments
+Stephen On Wed, Mar 15, 2023 at 01:47:56PM +0200, Cristian Ciocaltea wrote: > Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict > protocol child node properties") the following dtbs_check warning is > shown: > > rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected) I think that's a somewhat questionable use of assigned-clock-rates. It should be located with the consumer rather than the provider IMO. The consumers of those 2 clocks are the CPU nodes. Rob
On Thu, Mar 16, 2023 at 03:34:17PM -0500, Rob Herring wrote: > +Stephen > > On Wed, Mar 15, 2023 at 01:47:56PM +0200, Cristian Ciocaltea wrote: > > Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict > > protocol child node properties") the following dtbs_check warning is > > shown: > > > > rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected) > > I think that's a somewhat questionable use of assigned-clock-rates. It > should be located with the consumer rather than the provider IMO. The > consumers of those 2 clocks are the CPU nodes. > Agreed. We definitely don't use those in the scmi clk provider driver. So NACK for the generic SCMI binding change.
On 3/17/23 00:26, Sudeep Holla wrote: > On Thu, Mar 16, 2023 at 03:34:17PM -0500, Rob Herring wrote: >> +Stephen >> >> On Wed, Mar 15, 2023 at 01:47:56PM +0200, Cristian Ciocaltea wrote: >>> Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict >>> protocol child node properties") the following dtbs_check warning is >>> shown: >>> >>> rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected) >> >> I think that's a somewhat questionable use of assigned-clock-rates. It >> should be located with the consumer rather than the provider IMO. The >> consumers of those 2 clocks are the CPU nodes. >> > > Agreed. We definitely don't use those in the scmi clk provider driver. > So NACK for the generic SCMI binding change. According to [1], "configuration of common clocks, which affect multiple consumer devices can be similarly specified in the clock provider node". That would avoid duplicating assigned-clock-rates in the CPU nodes. [1] https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/clock/clock.yaml Thanks, Cristian
On Fri, Mar 17, 2023 at 4:59 AM Cristian Ciocaltea <cristian.ciocaltea@collabora.com> wrote: > > On 3/17/23 00:26, Sudeep Holla wrote: > > On Thu, Mar 16, 2023 at 03:34:17PM -0500, Rob Herring wrote: > >> +Stephen > >> > >> On Wed, Mar 15, 2023 at 01:47:56PM +0200, Cristian Ciocaltea wrote: > >>> Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict > >>> protocol child node properties") the following dtbs_check warning is > >>> shown: > >>> > >>> rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected) > >> > >> I think that's a somewhat questionable use of assigned-clock-rates. It > >> should be located with the consumer rather than the provider IMO. The > >> consumers of those 2 clocks are the CPU nodes. > >> > > > > Agreed. We definitely don't use those in the scmi clk provider driver. > > So NACK for the generic SCMI binding change. > > According to [1], "configuration of common clocks, which affect multiple > consumer devices can be similarly specified in the clock provider node". True, but in this case it's really a single consumer because it's all CPU nodes which are managed together. > That would avoid duplicating assigned-clock-rates in the CPU nodes. Wouldn't one node be sufficient? Thinking more about this, why aren't you using OPP tables to define CPU frequencies. Assigned-clocks looks like a temporary hack because you haven't done proper OPP tables. Rob
On 3/17/23 16:27, Rob Herring wrote: > On Fri, Mar 17, 2023 at 4:59 AM Cristian Ciocaltea > <cristian.ciocaltea@collabora.com> wrote: >> >> On 3/17/23 00:26, Sudeep Holla wrote: >>> On Thu, Mar 16, 2023 at 03:34:17PM -0500, Rob Herring wrote: >>>> +Stephen >>>> >>>> On Wed, Mar 15, 2023 at 01:47:56PM +0200, Cristian Ciocaltea wrote: >>>>> Since commit df4fdd0db475 ("dt-bindings: firmware: arm,scmi: Restrict >>>>> protocol child node properties") the following dtbs_check warning is >>>>> shown: >>>>> >>>>> rk3588-rock-5b.dtb: scmi: protocol@14: Unevaluated properties are not allowed ('assigned-clock-rates', 'assigned-clocks' were unexpected) >>>> >>>> I think that's a somewhat questionable use of assigned-clock-rates. It >>>> should be located with the consumer rather than the provider IMO. The >>>> consumers of those 2 clocks are the CPU nodes. >>>> >>> >>> Agreed. We definitely don't use those in the scmi clk provider driver. >>> So NACK for the generic SCMI binding change. >> >> According to [1], "configuration of common clocks, which affect multiple >> consumer devices can be similarly specified in the clock provider node". > > True, but in this case it's really a single consumer because it's all > CPU nodes which are managed together. > >> That would avoid duplicating assigned-clock-rates in the CPU nodes. > > Wouldn't one node be sufficient? Yeah, that should be fine. > Thinking more about this, why aren't you using OPP tables to define > CPU frequencies. Assigned-clocks looks like a temporary hack because > you haven't done proper OPP tables. Right, this is currently not possible since it depends on some work in progress. Thanks, Cristian
diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 2f7c51c75e85..10cc7ee46893 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -246,6 +246,9 @@ $defs: Channel specifier required when using OP-TEE transport and protocol has a dedicated communication channel. + assigned-clocks: true + assigned-clock-rates: true + required: - reg