Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1941023rdb; Tue, 5 Sep 2023 09:21:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGUn8I5IM10MrQsQfOqbI6Y8hri6i+Ms7tuH/VnsCAFNmvrsIXaP1GTQCcqgvlIDCME5Tt X-Received: by 2002:aa7:c7d3:0:b0:523:4d60:71c0 with SMTP id o19-20020aa7c7d3000000b005234d6071c0mr221084eds.33.1693930911724; Tue, 05 Sep 2023 09:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930911; cv=none; d=google.com; s=arc-20160816; b=FULkdlpKjQYVwiIckZSYIyJeQPBNEy0vB2sLfN10A/KwUktw6KQx5xDPUdXzyw/SY9 IRhkGcfCabN74+tE64E8fl8WxGYVu/P0r24LnAWp9uMkl2XNcksJJgcZU1rxiB00oh10 ToOD7AIsh7koEe2RRAFX3ODvCqWUFsp3tu8mvhnaLOxnXjxdAJcl/p+QskkbhjWIuavM dk2412kxCLUrTt9cExrLitxQJwXk8xf3QlARlur6Zjz5ZZaWsOyJ3Nedzy+WqATzZUpY ZBPMxSGaqRGsmLWJC3aLVz1e+OPP2np5jQCc3EQHyf9072oc8xAHr+TMn8RWpDfw2WUZ JWXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date; bh=2pkm5+MjF7n/cH0oMJdXKQwsaZ9OSkk/Ybk8qb4ijkw=; fh=GWWGORDF/uHFc8X66YlT/m3QLkaDUIAZFJSCcMkd6+E=; b=kDzYRSXkTot0kpU7VjtWsCokw7fdo+ao18Oiq5qUJ+RMSFwSe9RyycGmgUVXa4AOje oRUkAC6UjLd+gYVuIESn409hhH14+cqYEnVveyK9ze49qxHtycZY5OWS04JCY1+grjBF 4rK1cLeA58ti0EMPNrSnb0a2mQiUioIY909Ds2kVXEiCZcMIkjdfXIIK4TXBI7S4Tyb5 HPNpyCNZ+zZZ/J2t7ensCBlnQAygs+pj5QqDkhe3RSV+CdhXyA8tFA6MrRCoGOEu0Ua5 I2pjKtnG9b+wqgy1LgEs5n7eLbDwVl3rPVZh/hqaQFkXPqUQxqKuL4n+1R2JNndw/iBH DYJQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020aa7d991000000b0052a1258efdfsi7635715eds.522.2023.09.05.09.21.43; Tue, 05 Sep 2023 09:21:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233583AbjIDUGv (ORCPT + 22 others); Mon, 4 Sep 2023 16:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234382AbjIDUGu (ORCPT ); Mon, 4 Sep 2023 16:06:50 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70F6A100; Mon, 4 Sep 2023 13:06:46 -0700 (PDT) Received: from [192.168.2.144] (bband-dyn191.178-41-225.t-com.sk [178.41.225.191]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id C2BF03F261; Mon, 4 Sep 2023 22:06:41 +0200 (CEST) Date: Mon, 04 Sep 2023 22:06:35 +0200 From: Martin Botka Subject: Re: [PATCH 3/6] dt-bindings: opp: Add compatible for H616 To: Krzysztof Kozlowski Cc: Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , "Rafael J. Wysocki" , Viresh Kumar , Yangtao Li , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, Andre Przywara , Alan Ma , Luke Harrison , Marijn Suijten , AngeloGioacchino Del Regno , Konrad Dybcio , Rogerio Goncalves , Martin Botka Message-Id: In-Reply-To: <6e4cd0a1-43d0-e2e8-7281-e20ae653eae6@linaro.org> References: <20230904-cpufreq-h616-v1-0-b8842e525c43@somainline.org> <20230904-cpufreq-h616-v1-3-b8842e525c43@somainline.org> <2C8H0S.90380B1U7TPP3@somainline.org> <6e4cd0a1-43d0-e2e8-7281-e20ae653eae6@linaro.org> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 4 2023 at 09:53:05 PM +02:00:00, Krzysztof Kozlowski wrote: > On 04/09/2023 21:48, Martin Botka wrote: >> >> >> On Mon, Sep 4 2023 at 09:32:44 PM +02:00:00, Krzysztof Kozlowski >> wrote: >>> On 04/09/2023 21:31, Krzysztof Kozlowski wrote: >>>> On 04/09/2023 17:57, Martin Botka wrote: >>>>> We need to add compatible for H616 to H6 cpufreq driver >>>>> bindings. >>>> >>>> Please describe the hardware, not what is needed for drivers. >>>> >>>>> >>>>> Also enable opp_supported_hw property that will be needed for >>>>> H616. >>>>> >>>>> Signed-off-by: Martin Botka >>>>> --- >>>>> .../bindings/opp/allwinner,sun50i-h6-operating-points.yaml >>>>> | 6 +++++- >>>>> 1 file changed, 5 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git >>>>> >>>>> a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml >>>>> >>>>> b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml >>>>> index 51f62c3ae194..2fa1199f2d23 100644 >>>>> --- >>>>> >>>>> a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml >>>>> +++ >>>>> >>>>> b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml >>>>> @@ -23,7 +23,10 @@ allOf: >>>>> >>>>> properties: >>>>> compatible: >>>>> - const: allwinner,sun50i-h6-operating-points >>>>> + contains: >>>> >>>> This does not look like part of allOf, so contains is no correct >>>> here. >>>> This must be specific, so drop contains. >>> >>> BTW, I also do no see it used by the driver at all. >> Function sun50i_cpufreq_get_efuse uses it. It checks for H6 >> compatible >> and if that fails we check for H616 compatible. > > Such code does no scale. It also does not look reasonable - you cannot > have different compatible there. Device binds to h6 or h616, so you > cannot have OPP table from other devices. > Heya. I checked how qcom nvmem driver does it. And yea this indeed does not scale. matchlist should have SoC compatible and driver needs to have single compatible. Thus also dropping this patch :) Will do in V2. Thanks Krzystof for pointing me to the right way of doing it :) Cheers, Martin > Best regards, > Krzysztof >