Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1328352pxj; Sat, 29 May 2021 09:54:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq9ScNvp8hYVpdpTx64gmwleKaD7aJMV5iS+Oyl2a99DFjmAyPGBu3y1OOXzgXOQm9Uk3b X-Received: by 2002:aa7:d893:: with SMTP id u19mr16751778edq.258.1622307271720; Sat, 29 May 2021 09:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622307271; cv=none; d=google.com; s=arc-20160816; b=VmUWkgBTn4iagCvORCH4Ly0kB0gc7p2AAsCCLOd2OrG+UIQ0oDB8Xo5s/ci1hiVphS ublmF8x1FtKEXMx62HvIlIMtNYESE82WPcR57eGeK28pJDtDrzpIcHCAoiBSiyZGeIbm h1/Yb9Z3fcxWTq2PfiO/x4NOV4VjsheR6RGa51rYbrcryT43Te1Qux3kWAx7XAncc/wx 8SHKSrKxH+GG04iKISgj7i+108YF/vpB9iV3UEZ4NTOABcBOCvIHaiASExXrd64nsW0l 3M75sE2enrNxUI4Fq9cS8VhpnKCfN2zvoStAvCyuSJrLQBfaXWwzofEARBKyfnO3qFGn TzIg== 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=QJCJNGTfcgGQBWom66nfTfx7Wf2vsg4nYo2Q+OqFVqE=; b=pZV9Ki48h4eOwmWoQ7HVEqGKQCs6KbepCRcAWWwuNuCyPhnTk3KvdLvSSPjacjc2Nd 5Je3G9TSzwi0zoUSN6lCm066RzxGtBfGjijO7XEP5kpagV9PkC00EN2Mku3NP5UZzAiQ oxKHwy23GJxZtfoaEEBiVhwBWCfExdrq+MB3dHUsLXw7e+ZHaU171zIT8PY11m8pqPw6 0mvuiMGhnNbL/B+XWuzoeZcfr+GFy1rMSxxMyks6dZhhpJ+MJX+1NwTnNNAimgHr3YHf 5IbEOyHRgER3l+Njjv9MEHx70OGVPC9pbWSTYWOMPhSkb6oZMehfc5GZLiJIuDECieiV oUpw== 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 lx17si675274ejb.539.2021.05.29.09.54.09; Sat, 29 May 2021 09:54:31 -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 S229826AbhE2QyZ (ORCPT + 99 others); Sat, 29 May 2021 12:54:25 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34595 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229809AbhE2QyZ (ORCPT ); Sat, 29 May 2021 12:54:25 -0400 X-UUID: db3c99f1919b40569edf4c8d830425ab-20210530 X-UUID: db3c99f1919b40569edf4c8d830425ab-20210530 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 460399988; Sun, 30 May 2021 00:52:46 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 30 May 2021 00:52:44 +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; Sun, 30 May 2021 00:52:45 +0800 From: Hector Yuan To: , , , "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , Rob Herring , , CC: , Subject: [PATCH v12 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW Date: Sun, 30 May 2021 00:52:33 +0800 Message-ID: <1622307153-3639-3-git-send-email-hector.yuan@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1622307153-3639-1-git-send-email-hector.yuan@mediatek.com> References: <1622307153-3639-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 | 71 ++++++++++++++++++++ 1 file changed, 71 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..1aa4d54 --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml @@ -0,0 +1,71 @@ +# 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 0 for nodes + representing a single performance domain and 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. + enum: [ 0, 1 ] + +required: + - compatible + - reg + - "#performance-domain-cells" + +additionalProperties: true + +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