All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: lee.jones@linaro.org, broonie@kernel.org,
	mturquette@baylibre.com, sboyd@kernel.org, jdelvare@suse.com,
	linux@roeck-us.net, linus.walleij@linaro.org,
	lgirdwood@gmail.com, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, patches@opensource.cirrus.com
Subject: Re: [PATCH 2/6] ASoC: lochnagar: Move binding over to dtschema
Date: Fri, 1 May 2020 16:06:13 -0500	[thread overview]
Message-ID: <20200501210613.GD24163@bogus> (raw)
In-Reply-To: <20200427102812.23251-2-ckeepax@opensource.cirrus.com>

On Mon, Apr 27, 2020 at 11:28:08AM +0100, Charles Keepax wrote:
> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
> ---
>  .../devicetree/bindings/sound/cirrus,lochnagar.txt | 39 ---------------
>  .../bindings/sound/cirrus,lochnagar.yaml           | 58 ++++++++++++++++++++++
>  2 files changed, 58 insertions(+), 39 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt b/Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt
> deleted file mode 100644
> index 41ae2699f07a9..0000000000000
> --- a/Documentation/devicetree/bindings/sound/cirrus,lochnagar.txt
> +++ /dev/null
> @@ -1,39 +0,0 @@
> -Cirrus Logic Lochnagar Audio Development Board
> -
> -Lochnagar is an evaluation and development board for Cirrus Logic
> -Smart CODEC and Amp devices. It allows the connection of most Cirrus
> -Logic devices on mini-cards, as well as allowing connection of
> -various application processor systems to provide a full evaluation
> -platform.  Audio system topology, clocking and power can all be
> -controlled through the Lochnagar, allowing the device under test
> -to be used in a variety of possible use cases.
> -
> -This binding document describes the binding for the audio portion
> -of the driver.
> -
> -This binding must be part of the Lochnagar MFD binding:
> -  [4] ../mfd/cirrus,lochnagar.txt
> -
> -Required properties:
> -
> -  - compatible : One of the following strings:
> -                 "cirrus,lochnagar2-soundcard"
> -
> -  - #sound-dai-cells : Must be set to 1.
> -
> -  - clocks : Contains an entry for each entry in clock-names.
> -  - clock-names : Must include the following clocks:
> -      "mclk" Master clock source for the sound card, should normally
> -      be set to LOCHNAGAR_SOUNDCARD_MCLK provided by the Lochnagar
> -      clock driver.
> -
> -Example:
> -
> -lochnagar-sc {
> -	compatible = "cirrus,lochnagar2-soundcard";
> -
> -	#sound-dai-cells = <1>;
> -
> -	clocks = <&lochnagar_clk LOCHNAGAR_SOUNDCARD_MCLK>;
> -	clock-names = "mclk";
> -};
> diff --git a/Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml b/Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml
> new file mode 100644
> index 0000000000000..6a266793ebd16
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/cirrus,lochnagar.yaml
> @@ -0,0 +1,58 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/cirrus,lochnagar.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cirrus Logic Lochnagar Audio Development Board
> +
> +maintainers:
> +  - patches@opensource.cirrus.com
> +
> +description: |
> +  Lochnagar is an evaluation and development board for Cirrus Logic
> +  Smart CODEC and Amp devices. It allows the connection of most Cirrus
> +  Logic devices on mini-cards, as well as allowing connection of various
> +  application processor systems to provide a full evaluation platform.
> +  Audio system topology, clocking and power can all be controlled through
> +  the Lochnagar, allowing the device under test to be used in a variety of
> +  possible use cases.
> +
> +  This binding document describes the binding for the audio portion of the
> +  driver.
> +
> +  This binding must be part of the Lochnagar MFD binding:
> +    [1] ../mfd/cirrus,lochnagar.yaml
> +
> +properties:
> +  lochnagar-sc:
> +    type: object
> +
> +    properties:
> +      compatible:
> +        contains:
> +          enum:
> +            - cirrus,lochnagar2-soundcard
> +
> +      '#sound-dai-cells':
> +        description:
> +          Must be 1. The first cell indicating the audio interface.

'Must be 1' is what the constraint says.

> +        const: 1
> +
> +      clocks:
> +        maxItems: 1
> +        description:
> +          Master clock source for the sound card, should normally be set to
> +          LOCHNAGAR_SOUNDCARD_MCLK provided by the Lochnagar clock driver.

blank line.

> +      clock-names:
> +        const: mclk
> +        description:
> +          Must contain the string mclk.

That's what the constraint says already.

> +
> +    required:
> +      - compatible
> +      - '#sound-dai-cells'
> +      - clocks
> +      - clock-names
> +
> +    additionalProperties: false
> -- 
> 2.11.0
> 

  reply	other threads:[~2020-05-01 21:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27 10:28 [PATCH 1/6] hwmon: lochnagar: Move binding over to dtschema Charles Keepax
2020-04-27 10:28 ` [PATCH 2/6] ASoC: " Charles Keepax
2020-05-01 21:06   ` Rob Herring [this message]
2020-04-27 10:28 ` [PATCH 3/6] pinctrl: " Charles Keepax
2020-05-12 11:40   ` Linus Walleij
2020-04-27 10:28 ` [PATCH 4/6] regulator: " Charles Keepax
2020-04-27 10:28 ` [PATCH 5/6] clk: " Charles Keepax
2020-05-01 21:03   ` Rob Herring
2020-04-27 10:28 ` [PATCH 6/6] mfd: " Charles Keepax
2020-04-27 10:36   ` Charles Keepax
2020-05-01 20:47     ` Rob Herring
2020-05-04  9:55       ` Charles Keepax
2020-05-01 20:55   ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200501210613.GD24163@bogus \
    --to=robh@kernel.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jdelvare@suse.com \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mturquette@baylibre.com \
    --cc=patches@opensource.cirrus.com \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.