Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp936504pxb; Wed, 3 Mar 2021 21:43:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAxhyIzDaRMm3XwqhAYCI0RO6gi4T4qK5QXx/0xbfg3Pu+1+6ealqI2Xjc092So8uGP12L X-Received: by 2002:a05:6402:5203:: with SMTP id s3mr2522566edd.79.1614836628029; Wed, 03 Mar 2021 21:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614836628; cv=none; d=google.com; s=arc-20160816; b=vO+J98k6PESLxosGwwbII+dlmKVxFVNeHk6YYjxBpzqMZ5H/7enS5KBMtBPGGM5JzF 1RciulV6Daxib11IRDM84lrqTmD8d6+U0XOra4EXn0G7oogeWuOBzj48zvO7VBhoi5kI +wImtQESimXt8zykfP/bsHETZSQrwOcLxmKwInv8RtMFhOITjNXhaOVap9tQoIikkR2p qpJ0aIzIkI8w6HsinoOdaG6EOG18O0iRL8xNIMW9G/fjNE5LVMkk0bNtQQd4Zy0HtHFb wIl3DcUf7GPax13OfmF92xCTlOciTtZaTsJApX63+3XZl4WUfVRe3H1z6y6uAQylP48B EKKA== 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=otewFknnvdXJ2hpzAWkgabtuf7oI9G1ib9lJpbTt8aU=; b=wvJNxGr28p8OTb+hNKeWzY7ieDkUrpanHTCiPWip71pl4MvBylk0Iob4+3EYYNpXyS WOwGzhnH+O2wtjH0oPi/sHpjtyDcnQxJb5sLzzEnFFaddgmgrLfjlsLnYd75yIUYmDTJ 22hG+ta/gOCKe1vVB9RWD1GMkuujTtstcUBJlLTvAG0VplaHy4ooOFzTP7U+2saj3yUU SEPW22lK9hndEq9ZHYQiwpBLPbJ6DJinUwOl9H1/R78W3F1OD+TzUvmIHVbIgavPv69H m+JT5ZsD9uqRzBCO+6v1tao9RVtDTfN5W2U9vkgha7DO4X7byDJ87B2lVMBj1Iy3ym2U TtKg== 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 a2si18982666eda.350.2021.03.03.21.43.25; Wed, 03 Mar 2021 21:43:48 -0800 (PST) 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 S1576991AbhCBFf0 (ORCPT + 99 others); Tue, 2 Mar 2021 00:35:26 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40922 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1574551AbhCBDrt (ORCPT ); Mon, 1 Mar 2021 22:47:49 -0500 X-UUID: 7f6f4ea22477436f92926f211e7c5d15-20210302 X-UUID: 7f6f4ea22477436f92926f211e7c5d15-20210302 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1494284475; Tue, 02 Mar 2021 11:47:45 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Mar 2021 11:47:44 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 2 Mar 2021 11:47:44 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Stephen Boyd , Ryan Case CC: Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , , , , , , Henry Chen Subject: [PATCH V9 01/12] dt-bindings: soc: Add dvfsrc driver bindings Date: Tue, 2 Mar 2021 11:47:32 +0800 Message-ID: <1614656863-8530-2-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1614656863-8530-1-git-send-email-henryc.chen@mediatek.com> References: <1614656863-8530-1-git-send-email-henryc.chen@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 Document the binding for enabling dvfsrc on MediaTek SoC. Signed-off-by: Henry Chen --- .../devicetree/bindings/soc/mediatek/dvfsrc.yaml | 67 ++++++++++++++++++++++ include/dt-bindings/interconnect/mtk,mt8183-emi.h | 21 +++++++ 2 files changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml create mode 100644 include/dt-bindings/interconnect/mtk,mt8183-emi.h diff --git a/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml b/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml new file mode 100644 index 0000000..f2b67b9 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/mediatek/dvfsrc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek dynamic voltage and frequency scaling resource collector (DVFSRC) + +description: | + The Dynamic Voltage and Frequency Scaling Resource Collector (DVFSRC) is a + HW module which is used to collect all the requests from both software and + hardware and turn into the decision of minimum operating voltage and minimum + DRAM frequency to fulfill those requests. + +maintainers: + - henryc.chen + +properties: + reg: + maxItems: 1 + description: DVFSRC common register address and length. + + compatible: + enum: + - mediatek,mt6873-dvfsrc + - mediatek,mt8183-dvfsrc + - mediatek,mt8192-dvfsrc + + '#interconnect-cells': + const: 1 + + dvfsrc-vcore: + type: object + description: + The DVFSRC regulator is modelled as a subdevice of the DVFSRC. + Because DVFSRC can request power directly via register read/write, likes + vcore which is a core power of mt8183. As such, the DVFSRC regulator + requires that DVFSRC nodes be present. + $ref: /schemas/regulator/regulator.yaml# + +required: + - compatible + - reg + - "#interconnect-cells" + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + dvfsrc@10012000 { + compatible = "mediatek,mt8183-dvfsrc"; + reg = <0 0x10012000 0 0x1000>; + #interconnect-cells = <1>; + dvfsrc_vcore: dvfsrc-vcore { + regulator-name = "dvfsrc-vcore"; + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <800000>; + regulator-always-on; + }; + }; + }; diff --git a/include/dt-bindings/interconnect/mtk,mt8183-emi.h b/include/dt-bindings/interconnect/mtk,mt8183-emi.h new file mode 100644 index 0000000..dfd143f --- /dev/null +++ b/include/dt-bindings/interconnect/mtk,mt8183-emi.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (c) 2021 MediaTek Inc. + */ + +#ifndef __DT_BINDINGS_INTERCONNECT_MTK_MT8183_EMI_H +#define __DT_BINDINGS_INTERCONNECT_MTK_MT8183_EMI_H + +#define MT8183_SLAVE_DDR_EMI 0 +#define MT8183_MASTER_MCUSYS 1 +#define MT8183_MASTER_GPU 2 +#define MT8183_MASTER_MMSYS 3 +#define MT8183_MASTER_MM_VPU 4 +#define MT8183_MASTER_MM_DISP 5 +#define MT8183_MASTER_MM_VDEC 6 +#define MT8183_MASTER_MM_VENC 7 +#define MT8183_MASTER_MM_CAM 8 +#define MT8183_MASTER_MM_IMG 9 +#define MT8183_MASTER_MM_MDP 10 + +#endif -- 1.9.1