Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp552321pxp; Wed, 9 Mar 2022 08:04:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzMUyNcR2VcOkS5PxqoxGbhAdox3h7lR2cftJFx1hoBAOXb/HsJ4xqQztG/JiLqjvwed6G X-Received: by 2002:a05:6808:1912:b0:2d9:a01a:4877 with SMTP id bf18-20020a056808191200b002d9a01a4877mr6774165oib.194.1646841853536; Wed, 09 Mar 2022 08:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646841853; cv=none; d=google.com; s=arc-20160816; b=OMBTE9HEbac8DQpjM1lMNDYP9rrN6ALaBYqw5PYz+Fd4IiQtECjSXlIt8V533Tjku9 MFle2VgTWCtIj85Ukdas9awOhGpb2pGYpFQOR4ebjlYGVUG/CK9X4su8iUa5LvqlhDrH Mca4CFMfuh1k+WTyy2zU+TRt6ZrGsOt2UlFCvH9f4MC2XpmJOINbUj2VU6q2L6rQpcIZ NOq47nnntVaQ6+Ml3ASH/DAswUsFm/XCxhayU6US2QxSfM9ZCcmwot11crfzehusNM3V 3Q+mCuKQOFmh3TkvF6+o1oqg8fdjVAiuj9sZ5/aFSu06PgmP5i50rysYhIpJGzJZHQkL Y/NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B/IcWlT+PDOAuKFhHBO22sb+SfpqtrQ61LlKL6Ry12Q=; b=j2ovKbwn7GpDqPZXz4n5+te6MiqmTfIe3vkvvZvmaZXAgtUK3yxjKa00jHEJGJIjjE XSaPUrcqY40yC+ccHdTZZbl7I1wYv5Y/UkxU06fkhUbo5vAb7yf2uYKoHTALMRGxnTce /VoE0Qba3ywBujVc2jSiXdaZRYFTHYlmOOjgcF6BQpuKNXguBtDEuRh3h9O3UgzHlxpc rzCCkgMo+89No3SiMO6l6M71oOOl0n5F6YEpGdMAj7epNO/hJVnlJikKkWQpQ+BUGgG/ MFER7I1fzs1qY91e5Do8shTsAfkbvoHx4WtYHo14j8yCRou1cR++WdddcEP38SpEr/vP iebw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t7sc/C5j"; 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 bd40-20020a056808222800b002d9e0639ef2si2013045oib.28.2022.03.09.08.03.58; Wed, 09 Mar 2022 08:04:13 -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=@linaro.org header.s=google header.b="t7sc/C5j"; 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 S233782AbiCIPQz (ORCPT + 99 others); Wed, 9 Mar 2022 10:16:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233778AbiCIPQy (ORCPT ); Wed, 9 Mar 2022 10:16:54 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428DE17BC6E for ; Wed, 9 Mar 2022 07:15:55 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id v4so2619376pjh.2 for ; Wed, 09 Mar 2022 07:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B/IcWlT+PDOAuKFhHBO22sb+SfpqtrQ61LlKL6Ry12Q=; b=t7sc/C5jUWt89kTrhEtmyKtFqcGc5bNY8RrjGzLXl4wr1SmRJfVT0gI4LIKyn8QLDW 91TbWh95XTGlepNVumZwd+GfBoe27+cmIBINILwepPfBjuuh8bHclLORplrQRXcmJQd5 mWcPaMBP8ZvmTo4VMVn1Hg7UtP6U6Umx3yEIZHeznMJBZT/WDG3s+eOXFY2q25Vvrzlp HDIlFxSWWWTnYtkwHIEK+l1prXbJ3ajK16V317xMfXoHehaY4+utvsIoECK1Bauz8mjd moaTLvtlKCQq7ekft3iWrGnG8gD0H+lb28Yxo6CrIL+c7RTxqFM+UDUxqBw5NGKjq5cE dpOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B/IcWlT+PDOAuKFhHBO22sb+SfpqtrQ61LlKL6Ry12Q=; b=xmgNErUVAmMl0YccfrIGlwcmdvOb/laI9VzKn6o0q2EIL972GQ1jB3GoEAyidm5OlJ bBf5ilXmHbMWDpiLOY7Iovc8xA0ZD04tARPvdIKibCDgCS1qhjDYxyCQZX4nunqv1PJ3 4p1Iti452BZ5tAb/DoQRq9dh47xBsIk6yYrZHUe9/t6nMDH/k9Rj4rygLV7PzGDEWIjt uwZuYCdVFvf3+wmwr6/t0KJT05mzk37MAAg1w64yHiwf4F6huFo3zKee8ODflBcOBuwn 92X9LFo0ROqJI6N9sCr1UTFFoah8SxmpWvw4a5qEYfGXcGn71JVBf9o5HWpH0wkXDEsf tiiQ== X-Gm-Message-State: AOAM531k6g7OIO/aK+35gpdPIbKqq4Q8AIfkWjTRmv41u7dz5zhExnR5 x0rXkK0EkY8HvyrGTWMWEmRw X-Received: by 2002:a17:902:dacc:b0:151:c216:2772 with SMTP id q12-20020a170902dacc00b00151c2162772mr23086584plx.107.1646838954708; Wed, 09 Mar 2022 07:15:54 -0800 (PST) Received: from localhost.localdomain ([117.193.208.22]) by smtp.gmail.com with ESMTPSA id p25-20020a637419000000b0037fa57520adsm2727425pgc.27.2022.03.09.07.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 07:15:54 -0800 (PST) From: Manivannan Sadhasivam To: rafael@kernel.org, viresh.kumar@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org Cc: bjorn.andersson@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, angelogioacchino.delregno@somainline.org, Manivannan Sadhasivam , Hector Yuan , Sudeep Holla Subject: [PATCH v2 1/2] dt-bindings: dvfs: Use MediaTek CPUFREQ HW as an example Date: Wed, 9 Mar 2022 20:45:40 +0530 Message-Id: <20220309151541.139511-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309151541.139511-1-manivannan.sadhasivam@linaro.org> References: <20220309151541.139511-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Qcom CPUFREQ HW don't have the support for generic performance domains yet. So use MediaTek CPUFREQ HW that has the support available in mainline. This also silences the below dtschema warnings for "cpufreq-qcom-hw.yaml": Documentation/devicetree/bindings/dvfs/performance-domain.example.dt.yaml: performance-controller@12340000: reg: [[305397760, 4096]] is too short From schema: Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml Documentation/devicetree/bindings/dvfs/performance-domain.example.dt.yaml: performance-controller@12340000: 'clocks' is a required property From schema: Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml Documentation/devicetree/bindings/dvfs/performance-domain.example.dt.yaml: performance-controller@12340000: 'clock-names' is a required property From schema: Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml Documentation/devicetree/bindings/dvfs/performance-domain.example.dt.yaml: performance-controller@12340000: '#freq-domain-cells' is a required property From schema: Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml Documentation/devicetree/bindings/dvfs/performance-domain.example.dt.yaml: performance-controller@12340000: '#performance-domain-cells' does not match any of the regexes: 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml Cc: Hector Yuan Cc: Sudeep Holla Signed-off-by: Manivannan Sadhasivam --- .../bindings/dvfs/performance-domain.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/dvfs/performance-domain.yaml b/Documentation/devicetree/bindings/dvfs/performance-domain.yaml index c8b91207f34d..9e0bcf1a89fe 100644 --- a/Documentation/devicetree/bindings/dvfs/performance-domain.yaml +++ b/Documentation/devicetree/bindings/dvfs/performance-domain.yaml @@ -52,10 +52,16 @@ additionalProperties: true examples: - | - performance: performance-controller@12340000 { - compatible = "qcom,cpufreq-hw"; - reg = <0x12340000 0x1000>; - #performance-domain-cells = <1>; + soc { + #address-cells = <2>; + #size-cells = <2>; + + performance: performance-controller@11bc00 { + compatible = "mediatek,cpufreq-hw"; + reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>; + + #performance-domain-cells = <1>; + }; }; // The node above defines a performance controller that is a performance -- 2.25.1