Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp849694rwb; Tue, 29 Nov 2022 06:11:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yuDuM33cjT3UL46QMZsONtGOYfNcZU/kqMeyKjxAFuqVEzJvms1j9DVGgwJzCHcA77NLw X-Received: by 2002:a17:90a:a40f:b0:219:5812:d54f with SMTP id y15-20020a17090aa40f00b002195812d54fmr1477504pjp.40.1669731086204; Tue, 29 Nov 2022 06:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669731086; cv=none; d=google.com; s=arc-20160816; b=luwD9plwkb9Zxh3DcJSKq2F4ocXkGsdsuH0dxi/2kJoWLqxqZlcLghQNC3bDMHkAp8 M2a32gjZBJnwwilZ7/DHGc0KyRtXhn1PWf7m5MrEwRC0pIJlujPVT2HUVIos75Fm0FR4 omdPor6Wqg9S/KXHA/uPy5wFM+NGsVtc5JfezGbE5WkAcm5FdQ+zbGqniQK/Kn5nN8s4 Kcp/Unnfx79bwQdbdyHmVniYAcxYBVVw/DtLcaVHahAqHGQ+q8Vm2zzS6QMnbAJJiSsF wzDVGirHm8K6RekdOptdJtPYpwh/1IiHqulgKwecxLxIyeiWyoleOhF+Lg3YSoGXMGr+ l6wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=1rPttiphGe4P7YslRFo7jWAiSe4bJsPPenivam4+m5I=; b=zC3Iml5k6eW2hDI+1smV197J6kjcmFmEb8Um+3nGW4ukbG19eB5CnxSoEB2Ix/WFKV J3cBipOR6gqwqBpBOyCPQ0BQgh7MNGhL/YZNtqPL9dop0GZBNLECjKHr9zTq+VTxvhn0 LArxoJ58AjTbweoWatKYYzkFfFv5yezbemZ3fZRZEixxh3V+FtMbD0vQhUVSC8W/sQCH JJC/5acYyaIpURqCL1tGc4+c2N7JN769TRcB0Zgz7CyLwO30DyIttDHNE2ayOBOQfn5s 6Zexb4+rdaKu1PsO9qq2xas9UmomyL7KZ04nzr+XLlK2s7CgtKVDhrqRMazOWgMsU2es aOPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6mFhxco; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn15-20020a056a00340f00b0056c2e395593si13902809pfb.167.2022.11.29.06.11.15; Tue, 29 Nov 2022 06:11:26 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=S6mFhxco; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234628AbiK2ODP (ORCPT + 83 others); Tue, 29 Nov 2022 09:03:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234516AbiK2ODA (ORCPT ); Tue, 29 Nov 2022 09:03:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0BD9140CB; Tue, 29 Nov 2022 06:02:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3C72761752; Tue, 29 Nov 2022 14:02:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99E28C433D7; Tue, 29 Nov 2022 14:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669730577; bh=rO7yqgdWyNq3EM/Oqp68vfyfQaLdzq20dcvot8x/GeM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S6mFhxcoZLEdjKmV1WrgU2HV039yJTJzw9l6X4o6Si0KSGt+jLRzK2Tt9yaq9knHo c5h6COBslmC+6FRv3Vupa4s3hJSycD8jLOzsUQbskmTAwtMy0HDRSLkddlea8s6MXq IP7JfMh7OJfLtRZpVD2K8L1g1xbzZs7w5OWGuoueJBBO13GVUI4DKrdV2H4nr+JCXa puQfx0NtuPhgC40ca/U1Z12mg4w9EKuR68Y2TTQtqKAXoeSgjgvBF7tGSKeOeoJ1Nl lrB0Cf3X6jin0aXPn25h+lh98J1+JgzEtXaRz6blkf0FxWA0kt+rfF68D2vwJWTXy9 4NyEL+4P0/dpg== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1p01CJ-009Mgz-8B; Tue, 29 Nov 2022 14:02:55 +0000 MIME-Version: 1.0 Date: Tue, 29 Nov 2022 14:02:54 +0000 From: Marc Zyngier To: Ulf Hansson Cc: Hector Martin , "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/4] dt-bindings: cpufreq: apple,soc-cpufreq: Add binding for Apple SoC cpufreq In-Reply-To: References: <20221128142912.16022-1-marcan@marcan.st> <20221128142912.16022-3-marcan@marcan.st> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <44c746aee96ebf13bd701d78f1c2b9c0@kernel.org> X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: ulf.hansson@linaro.org, marcan@marcan.st, rafael@kernel.org, viresh.kumar@linaro.org, matthias.bgg@gmail.com, sven@svenpeter.dev, alyssa@rosenzweig.io, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org, mark.kettenis@xs4all.nl, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 2022-11-29 11:36, Ulf Hansson wrote: > On Mon, 28 Nov 2022 at 15:29, Hector Martin wrote: >> >> +examples: >> + - | >> + // This example shows a single CPU per domain and 2 domains, >> + // with two p-states per domain. >> + // Shipping hardware has 2-4 CPUs per domain and 2-6 domains. >> + cpus { >> + #address-cells = <2>; >> + #size-cells = <0>; >> + >> + cpu@0 { >> + compatible = "apple,icestorm"; >> + device_type = "cpu"; >> + reg = <0x0 0x0>; >> + operating-points-v2 = <&ecluster_opp>; > > To me, it looks like the operating-points-v2 phandle better belongs in > the performance-domains provider node. I mean, isn't the OPPs really a > description of the performance-domain provider? > > That said, I suggest we try to extend the generic performance-domain > binding [1] with an "operating-points-v2". In that way, we should > instead be able to reference it from this binding. > > In fact, that would be very similar to what already exists for the > generic power-domain binding [2]. I think it would be rather nice to > follow a similar pattern for the performance-domain binding. I'm not going to rabbit-hole into whether this is a good or a bad binding. As far as I'm concerned, and as a user of the HW it describes, it does the job in a satisfactory manner. What I'm concerned about is that this constant, last minute bikeshedding that actively prevents upstreaming of support for HW that people are actively using. If anything, this is only causing people to stop trying to contribute to the upstream kernel because of this constant DT bikeshed. Honestly, writing code to support this HW is a lot less effort than trying to get 3 different people to agree on a binding. It also affects other OSs that rely on the the same bindings, and will eventually only result in developers not submitting bindings anymore. After all, nothing says that bindings and device trees have to exist in the Linux kernel tree. M. -- Jazz is not dead. It just smells funny...