2a17ddfdca
Several regulator schemas are missing 'unevaluatedProperties' constraint which means any extra properties are allowed. Upon adding the constraint, there's numerous warnings from using the deprecated 'regulator-compatible' property. Remove the usage as examples shouldn't be using long since deprecated properties. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Lee Jones <lee@kernel.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://lore.kernel.org/r/20221206211554.92005-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/supply/mt6360_charger.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Battery charger driver for MT6360 PMIC from MediaTek Integrated.
|
|
|
|
maintainers:
|
|
- Gene Chen <gene_chen@richtek.com>
|
|
|
|
description: |
|
|
This module is part of the MT6360 MFD device.
|
|
Provides Battery Charger, Boost for OTG devices and BC1.2 detection.
|
|
|
|
properties:
|
|
compatible:
|
|
const: mediatek,mt6360-chg
|
|
|
|
richtek,vinovp-microvolt:
|
|
description: Maximum CHGIN regulation voltage in uV.
|
|
enum: [ 5500000, 6500000, 11000000, 14500000 ]
|
|
|
|
|
|
usb-otg-vbus-regulator:
|
|
type: object
|
|
description: OTG boost regulator.
|
|
$ref: /schemas/regulator/regulator.yaml#
|
|
unevaluatedProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
mt6360_charger: charger {
|
|
compatible = "mediatek,mt6360-chg";
|
|
richtek,vinovp-microvolt = <14500000>;
|
|
|
|
otg_vbus_regulator: usb-otg-vbus-regulator {
|
|
regulator-name = "usb-otg-vbus";
|
|
regulator-min-microvolt = <4425000>;
|
|
regulator-max-microvolt = <5825000>;
|
|
};
|
|
};
|
|
...
|