Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6327539pxu; Wed, 23 Dec 2020 22:11:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSY17mRIcQHuLcy4qI2QDXldBpQNO+UdBme4YpynXVQp4Rc8zUv8YMatzrqR9nlY7KMEVL X-Received: by 2002:a17:907:2d0f:: with SMTP id gs15mr26403192ejc.455.1608790318935; Wed, 23 Dec 2020 22:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608790318; cv=none; d=google.com; s=arc-20160816; b=FFV5Rq1f9XyTgXw7cNCWTfLfC5321DL/hhKtLbaRGxPql00k7mlJjh1anunKyL1LpZ CddJ5Zefxl+Xgwjwq9V8Lc9pCULIO6qNZ9FZ1u/HLe+GducAvIPS9vCOX2m5Ves52D47 TD+JTZVBb2KngB5uT6TcuVxlKSknEtQoLA50HQ7nFTuVU3ZRNiOo2WDwH6wVfGKzrCGL AFHBJ8XsTHcZT8nZMh5bJZpH+uqpPoOeJhZG4SfwKAsuIrSdNy1hT6qv+eyplvFYWo0S KJIHU645jNT3QsSsqVTfCXLYCGaNMArKMLGG4/l/z1PjZ0IFzcDhCtshgA5Nl5XQKYFp xpNg== 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=AYJztVKklU9pOJP90k6Mq1RZ68fTsP/Cr7br8p1vU/E=; b=wheUEMqf/JV8NpteteLLBFWM/CmJ7Rnw8llEzoSSYLD+SRTu0GyDGwFqLM9DDwDDjc tnQy8nUd6Tuz79sDZfR48lbSPlCkMJR/Zewx3GKBIC5l/5OMSdqSZaW35vYRbA4UxnUs 3VH47zwf+/gLwRAEXyvdtgfrGtPpkPE7RemtVQgiielgIq56MLfK7hj4g4egFMACIYEh NmcUwmX/yqxtCR67+w2GLe0Pgm/9yfn2Y4X7WVXIWLau0PVfmptghgIgqBubS0oOtPDU lVUaIaGouMyOGyamQSoJ1YZJCLhTV9NMB7j1s0N63FFEL4Uy1oTmnd4ZoPQQ+JVq6HAU qt2g== 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 b11si15160234edz.485.2020.12.23.22.11.36; Wed, 23 Dec 2020 22:11:58 -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 S1727187AbgLXGKA (ORCPT + 99 others); Thu, 24 Dec 2020 01:10:00 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:59071 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726338AbgLXGJ7 (ORCPT ); Thu, 24 Dec 2020 01:09:59 -0500 X-UUID: 4243d9d593604d4d83322e3bc6623576-20201224 X-UUID: 4243d9d593604d4d83322e3bc6623576-20201224 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.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 1963684905; Thu, 24 Dec 2020 14:08:58 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 24 Dec 2020 14:08:55 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 24 Dec 2020 14:08:57 +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 V6 01/13] dt-bindings: soc: Add dvfsrc driver bindings Date: Thu, 24 Dec 2020 14:08:42 +0800 Message-ID: <1608790134-27425-2-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1608790134-27425-1-git-send-email-henryc.chen@mediatek.com> References: <1608790134-27425-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 1E126D6CA7E69C15CFF57DEC5B4CDCF39BE7DD0F95E2F63FCBE502A2572686892000: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 | 68 ++++++++++++++++++++++ 1 file changed, 68 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..60e0b7c --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml @@ -0,0 +1,68 @@ +# 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 + #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