summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-07-28 17:34:35 +0100
committerMark Brown <broonie@kernel.org>2020-07-28 17:34:35 +0100
commite0c6ecf2d859c6a2c7697ebb8973d11b74e70754 (patch)
treeeb6c665400e5cbdac7579253f96af25452482eb8
parent92a007944e37a6de8820dca83e802f35c6faca3a (diff)
ASoC: ak4613: Undo conversion to YAML bindings
Revert 5b235b5522bf38 ("ASoC: dt-bindings: ak4613: switch to yaml base Documentation") for the time being since it depends on other conversions. Reported-by: Rob Herring <robh+dt@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/sound/ak4613.txt27
-rw-r--r--Documentation/devicetree/bindings/sound/ak4613.yaml65
2 files changed, 27 insertions, 65 deletions
diff --git a/Documentation/devicetree/bindings/sound/ak4613.txt b/Documentation/devicetree/bindings/sound/ak4613.txt
new file mode 100644
index 000000000000..49a2e74fd9cb
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ak4613.txt
@@ -0,0 +1,27 @@
+AK4613 I2C transmitter
+
+This device supports I2C mode only.
+
+Required properties:
+
+- compatible : "asahi-kasei,ak4613"
+- reg : The chip select number on the I2C bus
+
+Optional properties:
+- asahi-kasei,in1-single-end : Boolean. Indicate input / output pins are single-ended.
+- asahi-kasei,in2-single-end rather than differential.
+- asahi-kasei,out1-single-end
+- asahi-kasei,out2-single-end
+- asahi-kasei,out3-single-end
+- asahi-kasei,out4-single-end
+- asahi-kasei,out5-single-end
+- asahi-kasei,out6-single-end
+
+Example:
+
+&i2c {
+ ak4613: ak4613@10 {
+ compatible = "asahi-kasei,ak4613";
+ reg = <0x10>;
+ };
+};
diff --git a/Documentation/devicetree/bindings/sound/ak4613.yaml b/Documentation/devicetree/bindings/sound/ak4613.yaml
deleted file mode 100644
index 5aae6126c540..000000000000
--- a/Documentation/devicetree/bindings/sound/ak4613.yaml
+++ /dev/null
@@ -1,65 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/sound/ak4613.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: AK4613 I2C transmitter Device Tree Bindings
-
-maintainers:
- - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
-
-properties:
- compatible:
- const: asahi-kasei,ak4613
-
- reg:
- maxItems: 1
-
- clocks:
- maxItems: 1
-
- "#sound-dai-cells":
- const: 0
-
- # for OF-graph
- port:
- $ref: "audio-graph-card.yaml#definitions/port"
- ports:
- $ref: "audio-graph-card.yaml#definitions/ports"
-
-# use patternProperties to avoid naming "xxx,yyy" issue
-patternProperties:
- "^asahi-kasei,in1-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,in2-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,out1-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,out2-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,out3-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,out4-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,out5-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
- "^asahi-kasei,out6-single-end$":
- $ref: /schemas/types.yaml#/definitions/flag
-
-required:
- - compatible
- - reg
-
-additionalProperties: false
-
-examples:
- - |
- i2c {
- #address-cells = <1>;
- #size-cells = <0>;
- ak4613: codec@10 {
- compatible = "asahi-kasei,ak4613";
- reg = <0x10>;
- };
- };