Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1381855rwb; Wed, 26 Jul 2023 11:34:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlH8mJ7KTkt3l/0B7dE5TY/X45cGG/DVIcg0j+c0ZWfbZuyAS6UnJHRcvNjXboYhDfM755TG X-Received: by 2002:a05:6a00:180d:b0:681:142f:e8e3 with SMTP id y13-20020a056a00180d00b00681142fe8e3mr3795620pfa.14.1690396449588; Wed, 26 Jul 2023 11:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690396449; cv=none; d=google.com; s=arc-20160816; b=z/cEWyPhjdACUbVwviPHmk4SBd7FMiz7nta6UPQWhbrgIKDPAWPkKsbZjtU3Yl5uTD RP3W98ieAg+/xmtBrniQipka/8Xi2xRucOhp5USb+xaLayy6AhRXDinZuKsVYwfqYPGX jyavg6h2cIkqHGU+p3eht1nmJ0ecnnCme6J2z02Z/4dZWVYiLIODulQu/UwCUl8QQ6Xy bUGPOnJl4V5o2abw9dxk9HE0x2q+IRbAAo+7XOMtULt1D9MUgmpnTskm4Kntqd8aBjEC r4Be4Ha/aE0BhOBGZj4JiFioLaEHAhbCHQW1jyc23NnzRPM5hnmAIGSV2lK6OXzJBArk LCqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z/1X1pgiSK0S2IfZcmkN9nHhA6UecddBg4r/ZHEAqBw=; fh=QMYqkU5lQ9u3b6loL71/T2bjYh8NN/6gc8RNycSzrHE=; b=dvuzaRx9Dv5/AGJA6TKyKR+vYLlo+5NYzCyf99LmWCt9JwNW6d/JvO/u5Ls/wxvwf6 c6KUxZ7ELNLKCEiQPkUVLPbkHgizjSjD6HLzeKwRhsq3cBZLC71d48yk+vJ5aQ5B+MVJ nWsOHVPPtvrfDiZNm/7oUvF42LTUg7GZNo6R0HBB0N6rtZjY2jwyGGKO1weT7ez/FKiP 7ApPbM82Wa0yD9SwC6d3+RO/yImJ7a2TPF+kDZYfWZKbfjh/KDNGFNwScoqpf+nkZEi5 4eig1pU/ThH44MsMhggPxBxuSnMW879xpC6v/BEkcvWDZiO8ujIUTGPTjRVuR/lKjl6z YB1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XsQ/io2L"; 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 z7-20020aa78887000000b00679a6ce03f6si14038636pfe.59.2023.07.26.11.33.57; Wed, 26 Jul 2023 11:34: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XsQ/io2L"; 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 S231856AbjGZROo (ORCPT + 99 others); Wed, 26 Jul 2023 13:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbjGZROl (ORCPT ); Wed, 26 Jul 2023 13:14:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18983DD; Wed, 26 Jul 2023 10:14:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9D92361C06; Wed, 26 Jul 2023 17:14:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1248C433C8; Wed, 26 Jul 2023 17:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690391679; bh=KlCWL6wIpa2sJJwcCSLx2GVLerKIi63SyCWQhyTv87U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XsQ/io2LYkd2J/5ifsTQ55OFK/oGcpB/vHHe19JUIgBhLiQHVZeO7Bow/RZL8XqjK YxNLOz8eOWyOgGUEpDq7Jmzr7Q0LdLtG88erf7Hr+5YVgmivl16K6QNaXA1Xn8ojFd X8Vcr5wWg4RELHPD5XbzkVVNp7huudmRI8IFA0hWYegmDl/rbMIIdkteZhpAHhCZ21 J1/QJcvTYOK0P8+hOnUHTi2FDE10aexiI5d3VYe89rLW5FprN3qWHR6wf2d2whYOza qLpdXqUlN8iMepLZnd5xDeGBI0sryu7h8k45PktrDnPieHcrk/TOsdSgIogMt3CXBI WYESkZDmeNKEQ== Received: (nullmailer pid 1638608 invoked by uid 1000); Wed, 26 Jul 2023 17:14:36 -0000 Date: Wed, 26 Jul 2023 11:14:36 -0600 From: Rob Herring To: Nishanth Menon Cc: Tony Lindgren , =?iso-8859-1?Q?Beno=EEt?= Cousson , Stephen Boyd , Conor Dooley , Krzysztof Kozlowski , Viresh Kumar , "Rafael J. Wysocki" , Vibhore Vardhan , Dhruva Gole , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 5/5] dt-bindings: cpufreq: Convert ti-cpufreq.txt to yaml binding Message-ID: <20230726171436.GA1609063-robh@kernel.org> References: <20230724153911.1376830-1-nm@ti.com> <20230724153911.1376830-6-nm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724153911.1376830-6-nm@ti.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, Jul 24, 2023 at 10:39:11AM -0500, Nishanth Menon wrote: > Move the ti-cpufreq binding over to opp and convert to yaml > > Signed-off-by: Nishanth Menon > --- > .../bindings/cpufreq/ti-cpufreq.txt | 132 ------------------ > .../bindings/opp/opp-v2-ti-cpu.yaml | 88 ++++++++++++ > 2 files changed, 88 insertions(+), 132 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/cpufreq/ti-cpufreq.txt > create mode 100644 Documentation/devicetree/bindings/opp/opp-v2-ti-cpu.yaml > diff --git a/Documentation/devicetree/bindings/opp/opp-v2-ti-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-ti-cpu.yaml > new file mode 100644 > index 000000000000..758f6da619a8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/opp/opp-v2-ti-cpu.yaml Filename matching the compatible. > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/opp/opp-v2-ti-cpu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI CPU OPP > + > +description: | Don't need '|'. > + Certain TI SoCs, like those in the am335x, am437x, am57xx, am62x and dra7xx > + families support different OPPs depending on the silicon variant in use. > + The ti-cpufreq driver can use revision and an efuse value from the SoC to > + provide the OPP framework with supported hardware information. This is > + used to determine which OPPs from the operating-points-v2 table get enabled > + when it is parsed by the OPP framework. > + > +maintainers: > + - Nishanth Menon > + > +allOf: > + - $ref: opp-v2-base.yaml# > + > +properties: > + compatible: > + const: operating-points-v2-ti-cpu > + > + syscon: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: | > + points to syscon node representing the control module > + register space of the SoC. > + > + opp-shared: true > + > +patternProperties: > + '^opp(-?[0-9]+)*$': > + type: object > + additionalProperties: false > + > + properties: > + clock-latency-ns: true > + opp-hz: true > + opp-microvolt: true > + opp-supported-hw: true > + opp-suspend: true > + turbo-mode: true > + > + required: > + - opp-hz > + - opp-supported-hw > + > +required: > + - compatible > + - syscon > + > +additionalProperties: false > + > +examples: > + - | > + cpu0_opp_table: opp-table { Drop unused labels > + compatible = "operating-points-v2-ti-cpu"; > + syscon = <&scm_conf>; > + > + opp-300000000 { > + opp-hz = /bits/ 64 <300000000>; > + opp-microvolt = <1100000 1078000 1122000>; > + opp-supported-hw = <0x06 0x0020>; > + opp-suspend; > + }; > + > + opp-500000000 { > + opp-hz = /bits/ 64 <500000000>; > + opp-microvolt = <1100000 1078000 1122000>; > + opp-supported-hw = <0x01 0xFFFF>; > + }; > + > + opp-600000000 { > + opp-hz = /bits/ 64 <600000000>; > + opp-microvolt = <1100000 1078000 1122000>; > + opp-supported-hw = <0x06 0x0040>; > + }; > + > + opp-1000000000 { > + opp-hz = /bits/ 64 <1000000000>; > + opp-microvolt = <1325000 1298500 1351500>; > + opp-supported-hw = <0x04 0x0200>; > + }; > + }; > -- > 2.40.0 >