Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp786804ybe; Fri, 6 Sep 2019 07:19:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaS1ZeC4JT2xd8kW11NloCUae9xIOS2O2aXBzUFyzsDfe6G5iGYBheoQXuwNCDK8usS4AJ X-Received: by 2002:a17:90a:c687:: with SMTP id n7mr9512766pjt.3.1567779579008; Fri, 06 Sep 2019 07:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567779579; cv=none; d=google.com; s=arc-20160816; b=kSZKF3FKRkZw8jwPfJ9X/mwv6H5SmOWfPY9BrfuT9umBc2lIiOyMBg0kQl27VQFsV5 xad0Hk9MH1igHkElAf55wkQ1BHmVUyYF+VECuKI4nex95IX6QQkrZs6QeKeZvaK2+Ti1 DZFqP2fTtyJbT6DKRY4McSGKxP7mIR4y74ENCLDdlul1dT99y5qXJud76EdBH7tj+41k 5qDusYFPU+uQplaPj1PZIALD4HJtNkcnA18XCcHTRq20gvZTSIY+39kZuvkdIYMMqk6h zPzS5HWNzKAFI/HUaQP98605eDUxJNw52T3GnAPUTh2iiHvGWWYqzbvzVWN1ZRw/GXei GioA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=1NRHXbMWsh9RbCI2cXnNpoG/tLlp6nbTGHFjhyplmwg=; b=e0EX93EoiIovXfzKuzKXmYGmnEZ3az+HarxAqcInnPNsnHmaTy+YLMhYuY1uiSLsrY fr6Ytvp6Z7h/emYq8BrAs+m9yOAygRo5tmVKmAgCXpnoZDZI412aLb6kQrAqtGeWAfez LytUJcHKdOsLQxSL2o2GNHbRFNYsD/pODJoIlH275scOKJW/lMJDgqJM9WKRTy7AK4gn ChquOxhQQeN5qvHDu6vlxXo765esBMrhTo1XUp2yTkcTaeHkhLSmAX3N/t9L/W0gBAwt x9QjyQRKRboRRzyXGtY0jpBvZE3KGJHVbixTG5ifmOYZzpHROnqU0R0kMrRdlqFQoUVe E5dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d16si5018927pll.123.2019.09.06.07.19.22; Fri, 06 Sep 2019 07:19:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389105AbfIFKFq (ORCPT + 99 others); Fri, 6 Sep 2019 06:05:46 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:27184 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731943AbfIFKFp (ORCPT ); Fri, 6 Sep 2019 06:05:45 -0400 X-UUID: 772fc6cf6220486c9844593c7ea48682-20190906 X-UUID: 772fc6cf6220486c9844593c7ea48682-20190906 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1923528875; Fri, 06 Sep 2019 18:05:40 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 6 Sep 2019 18:05:36 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 6 Sep 2019 18:05:36 +0800 From: Roger Lu To: Kevin Hilman , Rob Herring , Nicolas Boichat , Stephen Boyd CC: Fan Chen , HenryC Chen , , Angus Lin , Mark Rutland , Matthias Brugger , Nishanth Menon , Roger Lu , , , , , Subject: [PATCH v5 1/3] dt-bindings: soc: add mtk svs dt-bindings Date: Fri, 6 Sep 2019 18:05:13 +0800 Message-ID: <20190906100514.30803-2-roger.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190906100514.30803-1-roger.lu@mediatek.com> References: <20190906100514.30803-1-roger.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the binding for enabling mtk svs on MediaTek SoC. Signed-off-by: Roger Lu --- .../devicetree/bindings/power/mtk-svs.txt | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/mtk-svs.txt diff --git a/Documentation/devicetree/bindings/power/mtk-svs.txt b/Documentation/devicetree/bindings/power/mtk-svs.txt new file mode 100644 index 000000000000..6a71992ef162 --- /dev/null +++ b/Documentation/devicetree/bindings/power/mtk-svs.txt @@ -0,0 +1,88 @@ +* Mediatek Smart Voltage Scaling (MTK SVS) + +This describes the device tree binding for the MTK SVS controller (bank) +which helps provide the optimized CPU/GPU/CCI voltages. This device also +needs thermal data to calculate thermal slope for accurately compensate +the voltages when temperature change. + +Required properties: +- compatible: + - "mediatek,mt8183-svs" : For MT8183 family of SoCs +- reg: Address range of the MTK SVS controller. +- interrupts: IRQ for the MTK SVS controller. +- clocks, clock-names: Clocks needed for the svs controller. required + clocks are: + "main_clk": Main clock needed for register access +- nvmem-cells: Phandle to the calibration data provided by a nvmem device. +- nvmem-cell-names: Should be "svs-calibration-data" and "calibration-data" + +Subnodes: +- svs_cpu_little: SVS bank device node of little CPU + compatible: "mediatek,mt8183-svs-cpu-little" + operating-points-v2: OPP table hooked by SVS little CPU bank. + SVS will optimze this OPP table voltage part. + vcpu-little-supply: PMIC buck of little CPU +- svs_cpu_big: SVS bank device node of big CPU + compatible: "mediatek,mt8183-svs-cpu-big" + operating-points-v2: OPP table hooked by SVS big CPU bank. + SVS will optimze this OPP table voltage part. + vcpu-big-supply: PMIC buck of big CPU +- svs_cci: SVS bank device node of CCI + compatible: "mediatek,mt8183-svs-cci" + operating-points-v2: OPP table hooked by SVS CCI bank. + SVS will optimze this OPP table voltage part. + vcci-supply: PMIC buck of CCI +- svs_gpu: SVS bank device node of GPU + compatible: "mediatek,mt8183-svs-gpu" + operating-points-v2: OPP table hooked by SVS GPU bank. + SVS will optimze this OPP table voltage part. + vgpu-spply: PMIC buck of GPU + +Example: + + svs: svs@1100b000 { + compatible = "mediatek,mt8183-svs"; + reg = <0 0x1100b000 0 0x1000>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_THERM>; + clock-names = "main_clk"; + nvmem-cells = <&svs_calibration>, <&thermal_calibration>; + nvmem-cell-names = "svs-calibration-data", "calibration-data"; + + svs_cpu_little: svs_cpu_little { + compatible = "mediatek,mt8183-svs-cpu-little"; + operating-points-v2 = <&cluster0_opp>; + }; + + svs_cpu_big: svs_cpu_big { + compatible = "mediatek,mt8183-svs-cpu-big"; + operating-points-v2 = <&cluster1_opp>; + }; + + svs_cci: svs_cci { + compatible = "mediatek,mt8183-svs-cci"; + operating-points-v2 = <&cci_opp>; + }; + + svs_gpu: svs_gpu { + compatible = "mediatek,mt8183-svs-gpu"; + power-domains = <&scpsys MT8183_POWER_DOMAIN_MFG_2D>; + operating-points-v2 = <&gpu_opp_table>; + }; + }; + + &svs_cpu_little { + vcpu-little-supply = <&mt6358_vproc12_reg>; + }; + + &svs_cpu_big { + vcpu-big-supply = <&mt6358_vproc11_reg>; + }; + + &svs_cci { + vcci-supply = <&mt6358_vproc12_reg>; + }; + + &svs_gpu { + vgpu-spply = <&mt6358_vgpu_reg>; + }; -- 2.18.0