Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp119008pxb; Thu, 7 Jan 2021 23:52:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0c2TqtROPs++O4/V9nn6WeNshfsgozIbOeJt7y9ds+iBHuibkIC7KiR1aaO5qWwdhDSJb X-Received: by 2002:a17:906:60c3:: with SMTP id f3mr1829529ejk.65.1610092345469; Thu, 07 Jan 2021 23:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610092345; cv=none; d=google.com; s=arc-20160816; b=c10oj2yUXeGZ7n1DzGlvdOqnFRu06RP6bOnqGLaj3XD+Xs3Xfb7fMYnIogl5ted1DR 8K5BaaAjTExTjED8p49YuFxnrR//HCNaXsxy19VbY8nrt9HXz2E2lxa/gE7fwFo9V14L +1UCa4hQtG2sbopDXq2+L1Cuar1ixLn7cpxUQfJsTKnLEEbZBYMpizt1OwnWAFLCE+fA /2HGM2SiAJTKXakre8EbYv9GZGoIHPWuVk+IaUr98ZASVaqrOhWSgsblEqArlYOiQJfo jGxcCVVLZxSyrJpCGjL2bAF206TcPy56DXSkj0FeYdRXJuICSuOWcZb57UTt7n5r7JZY SBbw== 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=QLKEOQCq6LxOWCvUOfTGLHqYLIvyLXVpNGkWYkT5PTM=; b=SsCMy/b//QUIaZZCJxY1Xue3vZiaaA+dM1loRTKpOc3zPcpe+A4rD8PJzX3M+wS/gS 2CN35HKZs17J6zIfliIQ4Zrr7HkeWXXRh9Rp5mIDJQpWrOSyDmpSCDGR5TuUudYhmkbo 9j016tRESvnaC6RQhFNjxY76CBvo10/IkMUuHk6Qk7YLP/7Af1t/FNp7F6D6Zl7gr3Zu vru8XxQejlzJSg5lqkl2/kTMt1gxlVbwORzHb5+0c8NV5C9JdqQhIG/hc4QEcXIZ76OE an0e8A4ICbq3Ih0+0eqHfQ9Q7lzMVY5PPTeIHLH9GCit/3h5fYMWJOsmQUN5UuvLwz9t 7QXw== 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 i6si3525280ejs.659.2021.01.07.23.52.01; Thu, 07 Jan 2021 23:52:25 -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 S1727985AbhAHHt5 (ORCPT + 99 others); Fri, 8 Jan 2021 02:49:57 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:45669 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727416AbhAHHt4 (ORCPT ); Fri, 8 Jan 2021 02:49:56 -0500 X-UUID: b7c86f10e2b2425fa592af5c2827d27b-20210108 X-UUID: b7c86f10e2b2425fa592af5c2827d27b-20210108 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] 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 921979528; Fri, 08 Jan 2021 15:48:21 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 8 Jan 2021 15:48:19 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 8 Jan 2021 15:48:19 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Stephen Boyd , Ryan Case , Mark Brown CC: Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , , , , , , Henry Chen Subject: [PATCH V7 01/13] dt-bindings: soc: Add dvfsrc driver bindings Date: Fri, 8 Jan 2021 15:48:03 +0800 Message-ID: <1610092095-5113-2-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1610092095-5113-1-git-send-email-henryc.chen@mediatek.com> References: <1610092095-5113-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F1ECC0EEE3CA26308E40AD586395996065F407322B65FC1FD3987900641B45122000:8 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 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml diff --git a/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml b/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml new file mode 100644 index 0000000..0b746a8 --- /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: + description: DVFSRC common register address and length. + + compatible: + enum: + - mediatek,mt6873-dvfsrc + - mediatek,mt8183-dvfsrc + - mediatek,mt8192-dvfsrc + + '#interconnect-cells': + const: 1 + +patternProperties: + 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; + }; + }; + }; -- 1.9.1