mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
This doesn't yet do anything in the tools, but make it explicit so we can check either 'unevaluatedProperties' or 'additionalProperties' is present in schemas. 'unevaluatedProperties' is appropriate when including another schema (via '$ref') and all possible properties and/or child nodes are not explicitly listed in the schema with the '$ref'. This is in preparation to add a meta-schema to check for missing 'unevaluatedProperties' or 'additionalProperties'. This has been a constant source of review issues. Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Wolfram Sang <wsa@kernel.org> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-By: Vinod Koul <vkoul@kernel.org> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://lore.kernel.org/r/20201005183830.486085-2-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
93 lines
2.2 KiB
YAML
93 lines
2.2 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Fixed Voltage regulators
|
|
|
|
maintainers:
|
|
- Liam Girdwood <lgirdwood@gmail.com>
|
|
- Mark Brown <broonie@kernel.org>
|
|
|
|
description:
|
|
Any property defined as part of the core regulator binding, defined in
|
|
regulator.yaml, can also be used. However a fixed voltage regulator is
|
|
expected to have the regulator-min-microvolt and regulator-max-microvolt
|
|
to be the same.
|
|
|
|
allOf:
|
|
- $ref: "regulator.yaml#"
|
|
|
|
if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: regulator-fixed-clock
|
|
required:
|
|
- clocks
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- regulator-fixed
|
|
- regulator-fixed-clock
|
|
|
|
regulator-name: true
|
|
|
|
gpio:
|
|
description: gpio to use for enable control
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
description:
|
|
clock to use for enable control. This binding is only available if
|
|
the compatible is chosen to regulator-fixed-clock. The clock binding
|
|
is mandatory if compatible is chosen to regulator-fixed-clock.
|
|
maxItems: 1
|
|
|
|
startup-delay-us:
|
|
description: startup time in microseconds
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
off-on-delay-us:
|
|
description: off delay time in microseconds
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
|
|
enable-active-high:
|
|
description:
|
|
Polarity of GPIO is Active high. If this property is missing,
|
|
the default assumed is Active low.
|
|
type: boolean
|
|
|
|
gpio-open-drain:
|
|
description:
|
|
GPIO is open drain type. If this property is missing then default
|
|
assumption is false.
|
|
type: boolean
|
|
|
|
vin-supply:
|
|
description: Input supply phandle.
|
|
|
|
required:
|
|
- compatible
|
|
- regulator-name
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
reg_1v8: regulator-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "1v8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
gpio = <&gpio1 16 0>;
|
|
startup-delay-us = <70000>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
gpio-open-drain;
|
|
vin-supply = <&parent_reg>;
|
|
};
|
|
...
|