Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3135728pxb; Sat, 6 Feb 2021 22:18:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuKrOig63EWBpjNNuBDDWjzCt+Bm0KjUEpRx3Qh8pnDshpyTtUhoHSuDne/TxFolilwxC9 X-Received: by 2002:a17:906:b6cc:: with SMTP id ec12mr11340394ejb.520.1612678715768; Sat, 06 Feb 2021 22:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612678715; cv=none; d=google.com; s=arc-20160816; b=o3q2NjlW7nSivPHXbBPnTHVJuzCv/FpxHizMQNHPgn8rydIyHnST4wRgGP9hEcXAIx VnlHC/biQEv6R4wW7YK4KshYtSEfyLewxKygtu5WW/2YFtXVllVK3hulAmivyoXPeBdf 2ZHm2+b4Tgy6Q4zIGV8mHMnOteF4d8gUYpvnzBoIvjvi0gi1QlPdZRyPf/44WZcwfE6f 9urNgFhNWE6eXNw3kcFyuC4nKGqa3QsybY7fowQatJ6brJWRAP64XDKUrP3RzOsjNByD 9TVkpzZIKi/NvfnyVpjHO+O5LzwNEsU9QXb4HVve9yX0tAKsiRX2Zi0tJgYFkrucpPFj 6TYw== 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=CPMKJ+uOMI4N4N0f6acKNKiyaL7Z/gQE/PjYEgd4FkI=; b=xo91eIzyF3rrI1Itvma5+8baKEAvZTaoYn5KmZYwTw/GeP8nVVSIWB9jCwBLp6eqg3 KNDWELW1FupmEd371jFIor73hubgsBbIQm4AX/rawATtpFkgu+Hvzxcz5Dab/NqOxWhT w5uWdObhEvsdnTDdfYFDSVNUa6vISIyVfeXBdJ7giwa2CLnJRBxaRNc6Z0F9g7dQHz/k PAV2CWVrMbWZuGYJ4E+FYyoCfWHENVBoTlN5KG6hROLL2B+d24txziCd49uLz1o6HaGN CQ7tXdJHpi8HS/sf5S4hmfOXH8qNlBQTMx9mNaAxp8HwmrivzZE1E2O0ysfZ4ptGIvKL 6TjA== 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 f7si8485451ejx.19.2021.02.06.22.18.13; Sat, 06 Feb 2021 22:18:35 -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 S229681AbhBGGPb (ORCPT + 99 others); Sun, 7 Feb 2021 01:15:31 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:51217 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229510AbhBGGPX (ORCPT ); Sun, 7 Feb 2021 01:15:23 -0500 X-UUID: 0da339e9e67344f09bff9a3f937221a7-20210207 X-UUID: 0da339e9e67344f09bff9a3f937221a7-20210207 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] 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 906172753; Sun, 07 Feb 2021 14:14:20 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 7 Feb 2021 14:14:18 +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; Sun, 7 Feb 2021 14:14:19 +0800 From: Hsin-Hsiung Wang To: Liam Girdwood , Mark Brown , Rob Herring , Matthias Brugger , CC: Hsin-Hsiung Wang , , , , , , Subject: [PATCH v4 1/3] dt-bindings: regulator: document binding for MT6315 regulator Date: Sun, 7 Feb 2021 14:14:15 +0800 Message-ID: <1612678457-11548-2-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1612678457-11548-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1612678457-11548-1-git-send-email-hsin-hsiung.wang@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 Add device tree binding information for MT6315 regulator driver. Example bindings for MT6315 are added. Signed-off-by: Hsin-Hsiung Wang --- changes since v3: - correct the yaml file name. - remove unused description. - update the example. --- .../bindings/regulator/mt6315-regulator.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml new file mode 100644 index 000000000000..61dd5af80db6 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mt6315-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT6315 Regulator + +maintainers: + - Hsin-Hsiung Wang + +description: | + The MT6315 is a power management IC (PMIC) configurable with SPMI. + that contains 4 BUCKs output which can combine with each other + by different efuse settings. + +properties: + compatible: + const: mediatek,mt6315-regulator + + reg: + maxItems: 1 + + regulators: + type: object + description: List of regulators and its properties + + patternProperties: + "^vbuck[1-4]$": + type: object + $ref: "regulator.yaml#" + + properties: + regulator-name: + pattern: "^vbuck[1-4]$" + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + pmic@6 { + compatible = "mediatek,mt6315-regulator"; + reg = <0x6 0>; + + regulators { + vbuck1 { + regulator-compatible = "vbuck1"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1193750>; + regulator-enable-ramp-delay = <256>; + regulator-allowed-modes = <0 1 2 4>; + }; + + vbuck3 { + regulator-compatible = "vbuck3"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1193750>; + regulator-enable-ramp-delay = <256>; + regulator-allowed-modes = <0 1 2 4>; + }; + }; + }; -- 2.18.0