Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2220551pxb; Sat, 28 Aug 2021 08:03:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTtGHB39gunaeGxUKyQ+uJ9y/76oxqX1RXsZ6f/rjI71d8Ip9ftxchhKCU+lk+l1EUpVVF X-Received: by 2002:a17:907:9604:: with SMTP id gb4mr16057448ejc.142.1630163030979; Sat, 28 Aug 2021 08:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630163030; cv=none; d=google.com; s=arc-20160816; b=eU2Yt+EE4xUymtLIKQk31oSggQuqgYV0wiASMKLoDIuBwJnTzU79C4X8Rca0HHBvTA R150YrXSxpHj9FKQqeYFYDNmjrLSiQM5G4GOXaTevBvTwYKJh7JI2NdxSvqPEtxexkzB eiKlQOFPrhpdMuuHGYj7tbDiLUgCippu8ygzKOECvIgjq1z1q6HIKkWLLzIMlgDqRX92 gU3iVILz84zuBe9867rzPoR/zmiS5MujwOtJoUAVB4d2txqWq0VjxxUKko+87FerLnDR zQkXAOl0BIDib692ryWifpmm5tsxGHVml0BRvoXfJzPxVGunRo/BXTruqXqhKbLQW1mz ZYaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=W0XccDfYavcc/fNV4ZXd7D3FEWyCsz41FkFNOMSRcLU=; b=F8ptoTkeEX0SHrR/Gaf5TmCzfV66vzs/vTS0X2pP/Ejy/sMR6cVBKnp+sQUDwjvNE8 RULgATVZn1QX93ZNC3v+x6NBYVfFaJA3d+lahfGBB9V6SlmkB4xFaMRt6HVf6i7v1Lt7 kNo7g+9uHcUhxaz1DZcwJ+iGcRJYuVdfcT7O3AhFbr43kkfHZEkzNguRgE3qTze3AsVI ZAHg86XcbtdjDI3oe5uSfym9Zf+2NDEVqk5vOsdgyVhubiSZGe4Q9nBxCyBsYocdyL1C 915AXXRscjTr/ZMoWph1JUijs8Uif7S+h+X4E+rolpR0GpF9f6U33hfE49HHHQJPhic8 7VGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc27si2035908ejc.640.2021.08.28.08.03.15; Sat, 28 Aug 2021 08:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234429AbhH1PCR (ORCPT + 99 others); Sat, 28 Aug 2021 11:02:17 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:51282 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229852AbhH1PCL (ORCPT ); Sat, 28 Aug 2021 11:02:11 -0400 X-UUID: 0b4ced830b4a469db5757d88f4a0e869-20210828 X-UUID: 0b4ced830b4a469db5757d88f4a0e869-20210828 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 360118344; Sat, 28 Aug 2021 23:01:17 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 28 Aug 2021 23:01:16 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 28 Aug 2021 23:01:16 +0800 From: Hector Yuan To: , , , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , CC: , , Subject: [PATCH v14 1/3] ndings: cpufreq: add bindings for MediaTek cpufreq HW Date: Sat, 28 Aug 2021 23:01:10 +0800 Message-ID: <1630162872-25452-2-git-send-email-hector.yuan@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1630162872-25452-1-git-send-email-hector.yuan@mediatek.com> References: <1630162872-25452-1-git-send-email-hector.yuan@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Hector.Yuan" Add devicetree bindings for MediaTek HW driver. Signed-off-by: Hector.Yuan --- .../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 70 ++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml new file mode 100644 index 0000000..9cd42a6 --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/cpufreq/cpufreq-mediatek-hw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek's CPUFREQ Bindings + +maintainers: + - Hector Yuan + +description: + CPUFREQ HW is a hardware engine used by MediaTek SoCs to + manage frequency in hardware. It is capable of controlling + frequency for multiple clusters. + +properties: + compatible: + const: mediatek,cpufreq-hw + + reg: + minItems: 1 + maxItems: 2 + description: + Addresses and sizes for the memory of the HW bases in + each frequency domain. Each entry corresponds to + a register bank for each frequency domain present. + + "#performance-domain-cells": + description: + Number of cells in a performance domain specifier. + Set const to 1 here for nodes providing multiple + performance domains. + const: 1 + +required: + - compatible + - reg + - "#performance-domain-cells" + +additionalProperties: false + +examples: + - | + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a55"; + enable-method = "psci"; + performance-domains = <&performance 0>; + reg = <0x000>; + }; + }; + + /* ... */ + + 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>; + }; + }; -- 1.7.9.5