Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3717168iob; Sat, 7 May 2022 12:55:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt/4FadEBVqo8KYpRLqISdtNjFN/xr+eY+WI9Q51XnV/V9ucXi0haIOec/O/j/MjoZE9aM X-Received: by 2002:aa7:88ce:0:b0:510:72bd:5a61 with SMTP id k14-20020aa788ce000000b0051072bd5a61mr9211006pff.21.1651953352873; Sat, 07 May 2022 12:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651953352; cv=none; d=google.com; s=arc-20160816; b=ArijRqrxbgzeg6AeUu/EKQ82HzWra/2qvGPgCbTscIlgtu1aXW5wv1wc0eAVzYSrRz bKAnVOb3rePY8HSOeXGjhd5C4cxj3yKtN5MGrJkoAfAXrT2/d5KXu+Aylp/B3rRRvUPa 2j6uT/mCZHPmEsff/FgDt6xv5qXVoiEu3JoKJO6UnnYYwD1XTr0aZFQe70tccOx2hYgZ WsrAYzUOh9gKSHuUm7QLEhLtxB9C0f3Bq5twiD6RfN/9opw09T+slB/b46IW424vckO9 Wbn0WruqeUUPaEcF9ngp310POrOn0wpag2XAJjgYhSN1xT/JgqccgFTzqulG5GLbn3rD QvOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BwjG084Xyrd7fADRYx0ezYbwXyTCoFvt7uuDOTPBHVM=; b=sntMC+6Dmh7Zy5Gm/en9UD/TrpeAhjGMw6qRHfPPCbfge3WCqdk2maORk3RLgiHgmU 7Gctzk8+pZ8TdS/NMFwnCwI18THWnbFPLxYxPgJlATezBI1oNkwX1VP/UW49J0ouCoJs oiVRzlbidzglnrl2SlWWuGpSIwtH0ujHU3rSwy6GKLT1VPY9ZwPlL8H6gUFwQAJc1tFA UXJVVK7+u/6Q1u0sfb/gQJG58XwLtNPLVtgFNRelKjmLwpcB/CcXj/lt0/DqdsIJUTPj laZt1qMpbgArusqDy0fcf+whZnbuKCzsT8Fpyhvm6AS8VESzMOUV2j1c7BXQWNeRpOL/ Bdhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eSG+xQ6Z; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a17090341c500b00158c6131014si6791120ple.518.2022.05.07.12.55.35; Sat, 07 May 2022 12:55:52 -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=@linaro.org header.s=google header.b=eSG+xQ6Z; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350100AbiEEIrC (ORCPT + 99 others); Thu, 5 May 2022 04:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236544AbiEEIq7 (ORCPT ); Thu, 5 May 2022 04:46:59 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDAC49FBB for ; Thu, 5 May 2022 01:43:20 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id d5so5115797wrb.6 for ; Thu, 05 May 2022 01:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=BwjG084Xyrd7fADRYx0ezYbwXyTCoFvt7uuDOTPBHVM=; b=eSG+xQ6Za+GMDm3ceu6hy+snhovBeUc+FuGNwmDZKa4ozBG+V0K4Qh34hvSYU+2tCC eyMSm8bYsZCOeUSqKtMweysaGEysyBIy4+DqaTU4ZKgQBfgBbbnR3vLLHbocQvbY0jau tNiBBmqbBZ1VugNSpTmpzsbUcS3jVsTN8GNia7a8pmkD3hIdLBdKwxGsC3i5mmwOmaJF a/+mse7tB6ON0BzLJU6YZ4uWadZuUqe5hZm5mW3FAIBDYxmN5/uCUdc0q0k2MhVkDMVW jAP6zYj6Llx3l9/R4fhMYFf5pyICaoe4yY3w/nxbcYKGjzl24nZ1Fm2LH3Xhtel1939v HZWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=BwjG084Xyrd7fADRYx0ezYbwXyTCoFvt7uuDOTPBHVM=; b=WBLNXmn9jnOq93/PJhtWRQwdFtr+qv2yBpJhtzmKOprCt1FSHTm6BVgEMrxII1cwUu TjmUBP6+5wRgsRIVdh9rkPs6OJzdpDH5xVcc252bys8OwO/m8GkloGN8RNqUrFqkHuWF h/u5UUiwU9H22JdLlW3+GaaXqtht9AxWWKfbHkz1N4XDMM+mHPMS3KqfXx8mPXfhJ32E xh/YHoyMtM0DpMbLAKDHjC8wYRJrpjtVcI2KOsFmvvRbIPg0eEzF9/S6RXejWwVfNXyN eXjn45BlpzbUPhoRgp9fmIWZ/yfdufzxFG3w252Og/7JIrYzM3SuaCkpnYJxCqXEhgeg zWdA== X-Gm-Message-State: AOAM533Cm7pzTyP0abJmvVlXgJsxi5a/2PRRMCcVtcbsbKOukMEmWBbd b3AA5Cgo3LP3HKNwIbS+PNGTJQ== X-Received: by 2002:a05:6000:168e:b0:20c:547d:11a1 with SMTP id y14-20020a056000168e00b0020c547d11a1mr18987733wrd.37.1651740199003; Thu, 05 May 2022 01:43:19 -0700 (PDT) Received: from [192.168.0.217] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id z8-20020a1cf408000000b003942a244ecdsm948690wma.18.2022.05.05.01.43.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 01:43:18 -0700 (PDT) Message-ID: Date: Thu, 5 May 2022 10:43:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 2/4] dt-bindings: cpufreq: apple,soc-cpufreq: Add binding for Apple SoC cpufreq Content-Language: en-US To: Hector Martin , "Rafael J. Wysocki" , Viresh Kumar Cc: Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , Ulf Hansson , Marc Zyngier , Mark Kettenis , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220504075153.185208-1-marcan@marcan.st> <20220504075153.185208-3-marcan@marcan.st> From: Krzysztof Kozlowski In-Reply-To: <20220504075153.185208-3-marcan@marcan.st> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 04/05/2022 09:51, Hector Martin wrote: > This binding represents the cpufreq/DVFS hardware present in Apple SoCs. > The hardware has an independent controller per CPU cluster, but we > represent them as a single cpufreq node since there can only be one > systemwide cpufreq device (and since in the future, interactions with > memory controller performance states will also involve cooperation > between multiple frequency domains). > > Signed-off-by: Hector Martin > --- > .../bindings/cpufreq/apple,soc-cpufreq.yaml | 121 ++++++++++++++++++ > 1 file changed, 121 insertions(+) > create mode 100644 Documentation/devicetree/bindings/cpufreq/apple,soc-cpufreq.yaml > > diff --git a/Documentation/devicetree/bindings/cpufreq/apple,soc-cpufreq.yaml b/Documentation/devicetree/bindings/cpufreq/apple,soc-cpufreq.yaml > new file mode 100644 > index 000000000000..f398c1bd5de5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/cpufreq/apple,soc-cpufreq.yaml > @@ -0,0 +1,121 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/cpufreq/apple,soc-cpufreq.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Apple SoC cpufreq device > + > +maintainers: > + - Hector Martin > + > +description: | > + Apple SoCs (e.g. M1) have a per-cpu-cluster DVFS controller that is part of > + the cluster management register block. This binding uses the standard > + operating-points-v2 table to define the CPU performance states, with the > + opp-level property specifying the hardware p-state index for that level. > + > +properties: > + compatible: > + items: > + - enum: > + - apple,t8103-soc-cpufreq > + - apple,t6000-soc-cpufreq > + - const: apple,soc-cpufreq > + > + reg: > + minItems: 1 > + maxItems: 6 Is the number of clusters fixed for t8103 and t6000? Are these compatibles strictly related to some specific M1 SoC? If yes, then you should have constraints in allOf:if:then. Best regards, Krzysztof