[ Upstream commit 6d435a94ba5bb4f2ad381c0828fbae89c66b50fe ] The MT6315 PMIC dt-binding should enforce that one of the valid regulator-compatible is set in each regulator node. However it was mistakenly matching against regulator-name instead. Fix the typo. This not only fixes the compatible verification, but also lifts the regulator-name restriction, so that more meaningful names can be set for each platform. Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Link: https://lore.kernel.org/r/20220429201325.2205799-1-nfraprado@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
# 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 <hsin-hsiung.wang@mediatek.com>
|
|
|
|
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-compatible:
|
|
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>;
|
|
};
|
|
};
|
|
};
|