Commit 4d1976c79946cdf6ba3b53e26992ea0c0abf03da

Authored by Kuninori Morimoto
Committed by Mark Brown
1 parent c3936ba9e0

ASoC: dt-bindings: ak4613: switch to yaml base Documentation

This patch switches from .txt base to .yaml base Document.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/87mu4cxlo2.wl-kuninori.morimoto.gx@renesas.com
Link: https://lore.kernel.org/r/87o8pf3923.wl-kuninori.morimoto.gx@renesas.com
Link: https://lore.kernel.org/r/873659bpbk.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

Showing 2 changed files with 49 additions and 27 deletions Side-by-side Diff

Documentation/devicetree/bindings/sound/ak4613.txt
1   -AK4613 I2C transmitter
2   -
3   -This device supports I2C mode only.
4   -
5   -Required properties:
6   -
7   -- compatible : "asahi-kasei,ak4613"
8   -- reg : The chip select number on the I2C bus
9   -
10   -Optional properties:
11   -- asahi-kasei,in1-single-end : Boolean. Indicate input / output pins are single-ended.
12   -- asahi-kasei,in2-single-end rather than differential.
13   -- asahi-kasei,out1-single-end
14   -- asahi-kasei,out2-single-end
15   -- asahi-kasei,out3-single-end
16   -- asahi-kasei,out4-single-end
17   -- asahi-kasei,out5-single-end
18   -- asahi-kasei,out6-single-end
19   -
20   -Example:
21   -
22   -&i2c {
23   - ak4613: ak4613@10 {
24   - compatible = "asahi-kasei,ak4613";
25   - reg = <0x10>;
26   - };
27   -};
Documentation/devicetree/bindings/sound/ak4613.yaml
  1 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 +%YAML 1.2
  3 +---
  4 +$id: http://devicetree.org/schemas/sound/ak4613.yaml#
  5 +$schema: http://devicetree.org/meta-schemas/core.yaml#
  6 +
  7 +title: AK4613 I2C transmitter Device Tree Bindings
  8 +
  9 +maintainers:
  10 + - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  11 +
  12 +properties:
  13 + compatible:
  14 + const: asahi-kasei,ak4613
  15 +
  16 + reg:
  17 + maxItems: 1
  18 +
  19 + clocks:
  20 + maxItems: 1
  21 +
  22 + "#sound-dai-cells":
  23 + const: 0
  24 +
  25 +patternProperties:
  26 + "^asahi-kasei,in[1-2]-single-end$":
  27 + description: Input Pin 1 - 2.
  28 + $ref: /schemas/types.yaml#/definitions/flag
  29 +
  30 + "^asahi-kasei,out[1-6]-single-end$":
  31 + description: Output Pin 1 - 6.
  32 + $ref: /schemas/types.yaml#/definitions/flag
  33 +
  34 +required:
  35 + - compatible
  36 + - reg
  37 +
  38 +additionalProperties: false
  39 +
  40 +examples:
  41 + - |
  42 + i2c {
  43 + #address-cells = <1>;
  44 + #size-cells = <0>;
  45 + ak4613: codec@10 {
  46 + compatible = "asahi-kasei,ak4613";
  47 + reg = <0x10>;
  48 + };
  49 + };