From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDECCC71153 for ; Mon, 4 Sep 2023 19:53:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235423AbjIDTxY (ORCPT ); Mon, 4 Sep 2023 15:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjIDTxY (ORCPT ); Mon, 4 Sep 2023 15:53:24 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC0BE12E for ; Mon, 4 Sep 2023 12:53:20 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2bc63e0d8cdso26895721fa.2 for ; Mon, 04 Sep 2023 12:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693857199; x=1694461999; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wvaluZJNHnPZbmcG4bvJEAilbtSGa3vKoc36gbuUccA=; b=YaCgnZQYUFrNKrWgiRWzxWLqXHtEnuo90zmvzxCALMKuh61rMrX9XadWKKju1PUVCh MclK1+x+scodJ31IrVweGlL1CCF598CmyzCZ6DaBmtVkEgHz/4tkG6BOngZ3EbZQEN/X Lm12syBEvSvvRBBjAwhrZdPuVagH6/HGhTUnCQJMPYT1cun1b6LJCazswg2GrWLRr7LS H5p2TP3xevKmNUAdkKzWO6Q7MCjptiqTNchxm0oIlhRGcjvtzE8vktRaL/0isnLqv4Qc Y8PN5+TIMW7WPV+rvHNmHM6VuUDwfL9O7Llqpmv8A1f94x9wMSv/nfK96Lss9F7gecdM gFGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693857199; x=1694461999; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wvaluZJNHnPZbmcG4bvJEAilbtSGa3vKoc36gbuUccA=; b=OHB/katCChalwboXsdO+HgXcG6GExWdnfBwJTpNFgte6ccqktQJ4ujuZwaqe15EHMD W42pLasOjZkQDm7SqIEm48kxFYI0P3OSA/Rz4RgXDyWn0bfbbOQrWwocy9FDTg9X1LDE uytCch0dZBHoNMC9RquomGjfqWvD4qLhBpnk7BQ2QoNG97WCct2GiHk88Ua89WiKWoz4 UjRbAgzzJz4cPJTIG9cUBGhmmMrtrdcV5uGy1oD7P3M1IFEjONnuyMwL0cnAvRXRWsrh Phsbvu9355oQv04dMAKtnkEBfhc/yweevPmOvPY5vW7ld6sGwm42efdkBv6WZQiLL0IR vXTQ== X-Gm-Message-State: AOJu0YwBc83VjOKIh+V58Z6Y5LKGr6AWFPdPGHu2otoyejWX2MWMLj2J 7I2R9iDrbbxYV/RzYEhD9sPRdg== X-Google-Smtp-Source: AGHT+IEfhBCcSQiWoHa2jiOolRPp2v0XsshOTlOP4jb6+QXkRjWKBP4OryeydAehfnhfGWiOqrEa0w== X-Received: by 2002:a2e:6a09:0:b0:2bd:16e6:f07c with SMTP id f9-20020a2e6a09000000b002bd16e6f07cmr7407883ljc.17.1693857198894; Mon, 04 Sep 2023 12:53:18 -0700 (PDT) Received: from [192.168.0.22] (77-252-46-238.static.ip.netia.com.pl. [77.252.46.238]) by smtp.gmail.com with ESMTPSA id o13-20020a17090637cd00b0098e2969ed44sm6475829ejc.45.2023.09.04.12.53.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Sep 2023 12:53:18 -0700 (PDT) Message-ID: <6e4cd0a1-43d0-e2e8-7281-e20ae653eae6@linaro.org> Date: Mon, 4 Sep 2023 21:53:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 3/6] dt-bindings: opp: Add compatible for H616 To: Martin Botka 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 References: <20230904-cpufreq-h616-v1-0-b8842e525c43@somainline.org> <20230904-cpufreq-h616-v1-3-b8842e525c43@somainline.org> <2C8H0S.90380B1U7TPP3@somainline.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <2C8H0S.90380B1U7TPP3@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. Best regards, Krzysztof