Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6225766pxv; Thu, 29 Jul 2021 09:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxSvXPkneVxLxEAxC8CdTHURhWc0CjR82tDibsmVLRpK1+fp+C+kvtaSXBxfAlrpZ89oxq X-Received: by 2002:a17:906:11ca:: with SMTP id o10mr5185905eja.21.1627575353956; Thu, 29 Jul 2021 09:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627575353; cv=none; d=google.com; s=arc-20160816; b=kr7ZnH/AyJNDAazvmpyJfiBRWzO2n4zRsqlwOlLY1NRpu9W3nWuZIh2wqLySU4OdjR zl8GBzVIpKIXSzFtCvpRSvxgTWKBsUJkAs6l24YdMOrnXESCgVWzSIEMlMX3W2vsGLFS /Uckuyd8PYETPsFgMWlwn9gNpA6Rb/9RRyRtXU7CAmgew6JD8pY85A6nh8n6D3vvTYAN LsYgI2MQbJ+PqwAxUgdnKbee/C//MsaHRgWhClELsP9lOIl/kM9Haj1L77jdAupZ1Bcb aA1aiEiGndvZhpQhC0NKjndJ+asfq2MJ909DpTZMNDlaEdyVvQdaQykKAlr9tGZGAqms CF0Q== 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=iDXN1H2rTyTYPAUmjO9Cc1wt/rHO1b8RkdRz8ffFMM0=; b=zG6KI1S0gP5Om2syvQZZhmDNPDTDDzo+GH9rjW0U9ZptJtkHISD4Y7plzKGQKccYN/ gYlqv28EEm3XARACyNViKMEbpoQuqD+Lfg+kOa8ifvWsWFvaNJlMtTHwTz3c3wKEXnqE MngsVBJKs0uWm8xm2hRx8OdRGFr+6tAFDkuUcP2i7RhBYAlpz954RvSLGCGbmZm7i/6o 54lgh7t/E3XiHQmOZ2zNZ3rzCOK378JtssRdh0anwnE3eW9XsxIX00w5r7yRJ/lW9vyJ RYx4itH/r7Xb3bOjMh3axbHgqsbg8OO1UQGRGcB7+7z1U1Kl05XxZXieCUsJolg9tTxu 00ag== 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 l3si3613738ejo.634.2021.07.29.09.15.28; Thu, 29 Jul 2021 09:15:53 -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 S232464AbhG2QL2 (ORCPT + 99 others); Thu, 29 Jul 2021 12:11:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44718 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234019AbhG2QJw (ORCPT ); Thu, 29 Jul 2021 12:09:52 -0400 X-UUID: 42e6f1a8bda4468fbaa26d88e0366fb2-20210730 X-UUID: 42e6f1a8bda4468fbaa26d88e0366fb2-20210730 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 932944710; Fri, 30 Jul 2021 00:08:19 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 30 Jul 2021 00:08:18 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 30 Jul 2021 00:08:17 +0800 From: Hector Yuan To: , , , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , CC: , , Subject: [PATCH v13 1/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW Date: Fri, 30 Jul 2021 00:08:10 +0800 Message-ID: <1627574891-26514-2-git-send-email-hector.yuan@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1627574891-26514-1-git-send-email-hector.yuan@mediatek.com> References: <1627574891-26514-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..6bb2c97 --- /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. + + "#performance-domain-cells": + description: + Number of cells in a performance domain specifier. Typically 1 for nodes + providing multiple performance domains (e.g. performance controllers), + but can be any value as specified by device tree binding documentation + of particular provider. + 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