Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2032562rdb; Tue, 5 Sep 2023 12:10:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAxDl+eANJbPBj51GnQBRXI6XpmTaIZQ6wNIHnXXGaReeSZuWonWDBBb8aZjOkGkWPjiuK X-Received: by 2002:a17:907:2cf8:b0:9a5:7ade:b5e8 with SMTP id hz24-20020a1709072cf800b009a57adeb5e8mr508899ejc.10.1693941010054; Tue, 05 Sep 2023 12:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693941010; cv=none; d=google.com; s=arc-20160816; b=BpkO7+D5vI2lcJ+U111UCmmivop36PH6DFqw7KQjGn1gwpeVXwH0yXfg+sHuJfLdvX 6sMsyosqk4wiuGLK1ExIYmT88V0WgirMlSx+OLWh/0a/dELb6wnwW+0sXc2T2iWWX7R0 z9DWyOmgQmb4VWm4JUS3ClQ9TKc+Y4XmLfRXNAEN/Q5hgkxhHg0Yf28FcU+aLQFYG+so ocHCAUsc/jpt93oYLR8BX8keFKuih29TGoluPPrlHot/xuKFf6+rsJrUh+o4jbaP1rjV dKT3YOQJsT5c0633VWqNmTA8T27yN6+Kyiaw/OnsQeWiCrhiPVnkfWBTIehhxvX8qnfc GZog== 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=bOGQq+fwhu/Hd5CjRzBGZl/5GBcT/0NSYvKi0MdCo88=; fh=GWWGORDF/uHFc8X66YlT/m3QLkaDUIAZFJSCcMkd6+E=; b=T8W9K/l75V4vQYoFB/Y6xP8yUzAZ1g4OLriVYP/WPbXKPSOGI8kpF6FXaemaPVEF8O H/fa5FjzFDrLBpIBg+8b4YuYRhQ6+shXDsXtNq2+r2B95l8uoLm2pWUd11LoECgdfKic nRV/YhFHYVJHbO/jKnKmR9tK/7byiPjvdJ5X7jPqxKOvrunlSVUs3aU6N878aNFyIYeJ AI+VZHq4BWSjWFcImEBAW3J7U9PFTOENtmikOjfbbQ5n8nph5p2B563/+mUgFtpRnRZB JJAtOjJigUtwQGzjHAXgHzASUwtv+qTrgk8POGaq/BZoQGp42mKy77bIyxI647jc5L4z XHSw== 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 o21-20020a1709062e9500b0099dff3bc40dsi8319469eji.726.2023.09.05.12.10.09; Tue, 05 Sep 2023 12:10:09 -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 S234653AbjIDTwe (ORCPT + 2 others); Mon, 4 Sep 2023 15:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbjIDTwd (ORCPT ); Mon, 4 Sep 2023 15:52:33 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [IPv6:2001:4b7a:2000:18::167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51FBE9E for ; Mon, 4 Sep 2023 12:52:30 -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 77A3F3E8E9; Mon, 4 Sep 2023 21:52:26 +0200 (CEST) Date: Mon, 04 Sep 2023 21:52:20 +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: <8J8H0S.3S79WVSTQOC92@somainline.org> In-Reply-To: References: <20230904-cpufreq-h616-v1-0-b8842e525c43@somainline.org> <20230904-cpufreq-h616-v1-3-b8842e525c43@somainline.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,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:31:34 PM +02:00:00, 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. Got it. Sorry. > >> >> 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. ack. > >> + enum: >> + - allwinner,sun50i-h6-operating-points >> + - allwinner,sun50i-h616-operating-points >> >> nvmem-cells: >> description: | >> @@ -47,6 +50,7 @@ patternProperties: >> properties: >> opp-hz: true >> clock-latency-ns: true >> + opp-supported-hw: true > > Why? It is already allowed. You should rather explain the values. Yea this can be dropped. I forgot to remove it. My bad. Also the values i think are very clear ? The values converted to binary represent which chip revision is allowed to use the specified frequency. 1 bit for each revision. > >> > > Best regards, > Krzysztof >