Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp275105pxb; Fri, 3 Sep 2021 01:41:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypqtFLXa7t41NwnCeTrJc27xKqlYcmBfocYopaP0PpGeEI3gKyYeZlKoccMA0eNapyawm1 X-Received: by 2002:a17:907:2d1e:: with SMTP id gs30mr2959336ejc.448.1630658492296; Fri, 03 Sep 2021 01:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630658492; cv=none; d=google.com; s=arc-20160816; b=0oJC73A3F09URR8QJw/iHU3scO0yY2dk/3HOWlgFE02NcytJZxmC17il16xt8s+iPk IdHkKtnzPqTz8EM7mT/Bt57jRxpQpY/vC2OQ9d9+sENNA7YXKU7tGCEGdyLHttrW5qY8 HBZq4QjOLaR6SgVikvMAGQ5S2j5lfbZcgwW/LlciVg3KZJ2dcNWFUc9vwBFAYy/GxXOy 5gghagvjAWBGDfmNFr0r/HEe9BonbDcN8kPSSLp9z/adrJOxO/XHTTgFFzX/78lAf3/S PC49ydGDuhHSahO6pUHjiRfw0eNPx9yMawd3r1fCTD2vuvY8+U8/KwLwOGCiyBKFgWy4 yzJw== 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=kMHeOx5sf3Gz1/S4iNtL4A3kkytv9/Whgt1gJC3ffwwopJyjBirSa61jmslHKTDDRr aiLGy25gTZe2H5dgAvQDkOVhcEAATAmpPQGvNo/7CoeWQ4/h0/vBmYC8/C/C44/MmfAb 4Yv7wKgvJZXHNwcuXdgcn3QdJm0KNkUYfUGMT7DR/5uNbzE2YWHkc4oU0rhe+FEOe5bR Bc/z5ZDVUvp7xgE1fmEEc54y+Ofy9BJk6bAteH4KqOHotTj6pzSFBYUALcLHInX0F+9H IQDiHnw4aOjcX4lxQLY6532mbJlglrZX1eEnjWziR1P/TDzd/9VlbKzQaHnmBrYNoVx9 eutA== 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 s21si4717621ejm.623.2021.09.03.01.41.09; Fri, 03 Sep 2021 01:41:32 -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 S1348353AbhICIkj (ORCPT + 99 others); Fri, 3 Sep 2021 04:40:39 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:46792 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1348355AbhICIke (ORCPT ); Fri, 3 Sep 2021 04:40:34 -0400 X-UUID: 3be6918d984b42049be2d233d76833a1-20210903 X-UUID: 3be6918d984b42049be2d233d76833a1-20210903 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1357772836; Fri, 03 Sep 2021 16:39:30 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 3 Sep 2021 16:39:29 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 3 Sep 2021 16:39:29 +0800 From: Hector Yuan To: , , , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , CC: , , Subject: [PATCH v15 1/3] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW Date: Fri, 3 Sep 2021 16:39:22 +0800 Message-ID: <1630658364-6192-2-git-send-email-hector.yuan@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1630658364-6192-1-git-send-email-hector.yuan@mediatek.com> References: <1630658364-6192-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