Re: [PATCH v3 4/7] mfd: arizona: Move binding over to dtschema

From: Rob Herring
Date: Wed May 27 2020 - 15:43:34 EST


On Wed, May 13, 2020 at 10:57:17AM +0100, Charles Keepax wrote:
> Signed-off-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>
> ---
>
> Changes since v2:
> - Removed a couple more redundant descriptions
>
> Thanks,
> Charles
>
> Documentation/devicetree/bindings/mfd/arizona.txt | 101 -------
> .../devicetree/bindings/mfd/wlf,arizona.yaml | 289 +++++++++++++++++++++
> MAINTAINERS | 8 +-
> 3 files changed, 293 insertions(+), 105 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/mfd/arizona.txt
> create mode 100644 Documentation/devicetree/bindings/mfd/wlf,arizona.yaml


> diff --git a/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml b/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml
> new file mode 100644
> index 0000000000000..14b6aac64a7e0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/wlf,arizona.yaml
> @@ -0,0 +1,289 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/wlf,arizona.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
> +
> +maintainers:
> + - patches@xxxxxxxxxxxxxxxxxxxxx
> +
> +description: |
> + These devices are audio SoCs with extensive digital capabilities and a
> + range of analogue I/O.
> +
> +allOf:
> + - $ref: /schemas/sound/wlf,arizona.yaml#
> + - $ref: /schemas/regulator/wlf,arizona.yaml#
> + - $ref: /schemas/extcon/wlf,arizona.yaml#
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - cirrus,cs47l24
> + - wlf,wm1831
> + then:
> + required:
> + - DCVDD-supply
> + - MICVDD-supply
> + else:
> + properties:
> + LDOVDD-supply:
> + description:
> + Digital power supply, used internally to generate DCVDD when
> + internally supplied.
> + $ref: /schemas/types.yaml#/definitions/phandle

Don't need a type. *-supply has one already.

I'll fix up when applying.

Rob