Just as unevaluatedProperties or additionalProperties are required at the top level of schemas, they should (and will) also be required for child node schemas. That ensures only documented properties are present. Add unevaluatedProperties or additionalProperties as appropriate, and then add any missing properties flagged by the addition. Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Lee Jones <lee@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230124230228.372305-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
113 lines
2.8 KiB
YAML
113 lines
2.8 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: MediaTek MT6357 PMIC
|
|
|
|
maintainers:
|
|
- Flora Fu <flora.fu@mediatek.com>
|
|
- Alexandre Mergnat <amergnat@baylibre.com>
|
|
|
|
description: |
|
|
MT6357 is a power management system chip containing 5 buck
|
|
converters and 29 LDOs. Supported features are audio codec,
|
|
USB battery charging, fuel gauge, RTC
|
|
|
|
This is a multifunction device with the following sub modules:
|
|
- Regulator
|
|
- RTC
|
|
- Keys
|
|
|
|
It is interfaced to host controller using SPI interface by a proprietary hardware
|
|
called PMIC wrapper or pwrap. This MFD is a child device of pwrap.
|
|
See the following for pwrap node definitions:
|
|
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml
|
|
|
|
properties:
|
|
compatible:
|
|
const: mediatek,mt6357
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
interrupt-controller: true
|
|
|
|
"#interrupt-cells":
|
|
const: 2
|
|
|
|
regulators:
|
|
type: object
|
|
$ref: /schemas/regulator/mediatek,mt6357-regulator.yaml
|
|
description:
|
|
List of MT6357 BUCKs and LDOs regulators.
|
|
|
|
rtc:
|
|
type: object
|
|
$ref: /schemas/rtc/rtc.yaml#
|
|
unevaluatedProperties: false
|
|
description:
|
|
MT6357 Real Time Clock.
|
|
properties:
|
|
compatible:
|
|
const: mediatek,mt6357-rtc
|
|
start-year: true
|
|
required:
|
|
- compatible
|
|
|
|
keys:
|
|
type: object
|
|
$ref: /schemas/input/mediatek,pmic-keys.yaml
|
|
description:
|
|
MT6357 power and home keys.
|
|
|
|
required:
|
|
- compatible
|
|
- regulators
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
pwrap {
|
|
pmic {
|
|
compatible = "mediatek,mt6357";
|
|
|
|
interrupt-parent = <&pio>;
|
|
interrupts = <145 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
|
|
regulators {
|
|
mt6357_vproc_reg: buck-vproc {
|
|
regulator-name = "vproc";
|
|
regulator-min-microvolt = <518750>;
|
|
regulator-max-microvolt = <1312500>;
|
|
regulator-ramp-delay = <6250>;
|
|
regulator-enable-ramp-delay = <220>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
// ...
|
|
|
|
mt6357_vusb33_reg: ldo-vusb33 {
|
|
regulator-name = "vusb33";
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-max-microvolt = <3100000>;
|
|
regulator-enable-ramp-delay = <264>;
|
|
};
|
|
};
|
|
|
|
rtc {
|
|
compatible = "mediatek,mt6357-rtc";
|
|
};
|
|
|
|
keys {
|
|
compatible = "mediatek,mt6357-keys";
|
|
};
|
|
};
|
|
};
|