mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-08 13:44:01 +08:00
2bdfd4fbcb
There's several cases of json-schema 'additionalProperties' at the wrong indentation level which has the effect of making them DT properties. This is harmless, but let's fix them so a meta-schema check for this can be added. In all the cases, either the 'additionalProperties' was extra or doesn't work because there's a $ref to more properties. In the latter case, we can use 'unevaluatedProperties' instead. Reported-by: Iskren Chernev <iskren.chernev@gmail.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Saravanan Sekar <sravanhome@gmail.com> Cc: Liam Girdwood <lgirdwood@gmail.com> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
102 lines
3.3 KiB
YAML
102 lines
3.3 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/regulator/rohm,bd71847-regulator.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: ROHM BD71847 and BD71850 Power Management Integrated Circuit regulators
|
|
|
|
maintainers:
|
|
- Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
|
|
|
|
description: |
|
|
List of regulators provided by this controller. BD71847 regulators node
|
|
should be sub node of the BD71847 MFD node. See BD71847 MFD bindings at
|
|
Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
|
|
Regulator nodes should be named to BUCK_<number> and LDO_<number>. The
|
|
definition for each of these nodes is defined using the standard
|
|
binding for regulators at
|
|
Documentation/devicetree/bindings/regulator/regulator.txt.
|
|
Note that if BD71847 starts at RUN state you probably want to use
|
|
regulator-boot-on at least for BUCK5. LDO6 is supplied by it and it must
|
|
not be disabled by driver at startup. If BUCK5 is disabled at startup the
|
|
voltage monitoring for LDO5/LDO6 can cause PMIC to reset.
|
|
|
|
#The valid names for BD71847 regulator nodes are:
|
|
#BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6
|
|
#LDO1, LDO2, LDO3, LDO4, LDO5, LDO6
|
|
|
|
patternProperties:
|
|
"^LDO[1-6]$":
|
|
type: object
|
|
allOf:
|
|
- $ref: regulator.yaml#
|
|
description:
|
|
Properties for single LDO regulator.
|
|
|
|
properties:
|
|
regulator-name:
|
|
pattern: "^ldo[1-6]$"
|
|
description:
|
|
should be "ldo1", ..., "ldo6"
|
|
|
|
unevaluatedProperties: false
|
|
|
|
"^BUCK[1-6]$":
|
|
type: object
|
|
allOf:
|
|
- $ref: regulator.yaml#
|
|
description:
|
|
Properties for single BUCK regulator.
|
|
|
|
properties:
|
|
regulator-name:
|
|
pattern: "^buck[1-6]$"
|
|
description:
|
|
should be "buck1", ..., "buck6"
|
|
|
|
rohm,dvs-run-voltage:
|
|
allOf:
|
|
- $ref: "/schemas/types.yaml#/definitions/uint32"
|
|
- minimum: 0
|
|
maximum: 1300000
|
|
description:
|
|
PMIC default "RUN" state voltage in uV. See below table for
|
|
bucks which support this. 0 means disabled.
|
|
|
|
rohm,dvs-idle-voltage:
|
|
allOf:
|
|
- $ref: "/schemas/types.yaml#/definitions/uint32"
|
|
- minimum: 0
|
|
maximum: 1300000
|
|
description:
|
|
PMIC default "IDLE" state voltage in uV. See below table for
|
|
bucks which support this. 0 means disabled.
|
|
|
|
rohm,dvs-suspend-voltage:
|
|
allOf:
|
|
- $ref: "/schemas/types.yaml#/definitions/uint32"
|
|
- minimum: 0
|
|
maximum: 1300000
|
|
description:
|
|
PMIC default "SUSPEND" state voltage in uV. See below table for
|
|
bucks which support this. 0 means disabled.
|
|
|
|
# Supported default DVS states:
|
|
#
|
|
# BD71847:
|
|
# buck | dvs-run-voltage | dvs-idle-voltage | dvs-suspend-voltage
|
|
# ----------------------------------------------------------------
|
|
# 1 | supported | supported | supported
|
|
# ----------------------------------------------------------------
|
|
# 2 | supported | supported | not supported
|
|
# ----------------------------------------------------------------
|
|
# rest | not supported | not supported | not supported
|
|
|
|
required:
|
|
- regulator-name
|
|
|
|
unevaluatedProperties: false
|
|
|
|
additionalProperties: false
|