mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 13:29:33 +00:00
* Move Meson64 to 5.6.y * Move Meson64 U-boot to 2020.04 Tested on Odroid C2 * Merge, replace and update patches from Khadas branch
138 lines
4 KiB
Diff
138 lines
4 KiB
Diff
From 8801f9ef8160ffcd4c742eae11ffc4a51ae6ab5b Mon Sep 17 00:00:00 2001
|
|
From: Jerome Brunet <jbrunet@baylibre.com>
|
|
Date: Thu, 13 Feb 2020 16:51:58 +0100
|
|
Subject: [PATCH 019/101] FROMGIT: ASoC: meson: gx: add sound card dt-binding
|
|
documentation
|
|
|
|
Add the dt-binding documentation of sound card supporting the amlogic
|
|
GX SoC family
|
|
|
|
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
|
|
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
|
---
|
|
.../bindings/sound/amlogic,gx-sound-card.yaml | 113 ++++++++++++++++++
|
|
1 file changed, 113 insertions(+)
|
|
create mode 100644 Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
|
|
|
|
diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
|
|
new file mode 100644
|
|
index 000000000000..fb374c659be1
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml
|
|
@@ -0,0 +1,113 @@
|
|
+# SPDX-License-Identifier: GPL-2.0
|
|
+%YAML 1.2
|
|
+---
|
|
+$id: http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml#
|
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
+
|
|
+title: Amlogic GX sound card
|
|
+
|
|
+maintainers:
|
|
+ - Jerome Brunet <jbrunet@baylibre.com>
|
|
+
|
|
+properties:
|
|
+ compatible:
|
|
+ items:
|
|
+ - const: amlogic,gx-sound-card
|
|
+
|
|
+ audio-aux-devs:
|
|
+ $ref: /schemas/types.yaml#/definitions/phandle-array
|
|
+ description: list of auxiliary devices
|
|
+
|
|
+ audio-routing:
|
|
+ $ref: /schemas/types.yaml#/definitions/non-unique-string-array
|
|
+ minItems: 2
|
|
+ description: |-
|
|
+ A list of the connections between audio components. Each entry is a
|
|
+ pair of strings, the first being the connection's sink, the second
|
|
+ being the connection's source.
|
|
+
|
|
+ audio-widgets:
|
|
+ $ref: /schemas/types.yaml#/definitions/non-unique-string-array
|
|
+ minItems: 2
|
|
+ description: |-
|
|
+ A list off component DAPM widget. Each entry is a pair of strings,
|
|
+ the first being the widget type, the second being the widget name
|
|
+
|
|
+ model:
|
|
+ $ref: /schemas/types.yaml#/definitions/string
|
|
+ description: User specified audio sound card name
|
|
+
|
|
+patternProperties:
|
|
+ "^dai-link-[0-9]+$":
|
|
+ type: object
|
|
+ description: |-
|
|
+ dai-link child nodes:
|
|
+ Container for dai-link level properties and the CODEC sub-nodes.
|
|
+ There should be at least one (and probably more) subnode of this type
|
|
+
|
|
+ properties:
|
|
+ dai-format:
|
|
+ $ref: /schemas/types.yaml#/definitions/string
|
|
+ enum: [ i2s, left-j, dsp_a ]
|
|
+
|
|
+ mclk-fs:
|
|
+ $ref: /schemas/types.yaml#/definitions/uint32
|
|
+ description: |-
|
|
+ Multiplication factor between the frame rate and master clock
|
|
+ rate
|
|
+
|
|
+ sound-dai:
|
|
+ $ref: /schemas/types.yaml#/definitions/phandle
|
|
+ description: phandle of the CPU DAI
|
|
+
|
|
+ patternProperties:
|
|
+ "^codec-[0-9]+$":
|
|
+ type: object
|
|
+ description: |-
|
|
+ Codecs:
|
|
+ dai-link representing backend links should have at least one subnode.
|
|
+ One subnode for each codec of the dai-link. dai-link representing
|
|
+ frontend links have no codec, therefore have no subnodes
|
|
+
|
|
+ properties:
|
|
+ sound-dai:
|
|
+ $ref: /schemas/types.yaml#/definitions/phandle
|
|
+ description: phandle of the codec DAI
|
|
+
|
|
+ required:
|
|
+ - sound-dai
|
|
+
|
|
+ required:
|
|
+ - sound-dai
|
|
+
|
|
+required:
|
|
+ - model
|
|
+ - dai-link-0
|
|
+
|
|
+examples:
|
|
+ - |
|
|
+ sound {
|
|
+ compatible = "amlogic,gx-sound-card";
|
|
+ model = "GXL-ACME-S905X-FOO";
|
|
+ audio-aux-devs = <&>;
|
|
+ audio-routing = "I2S ENCODER I2S IN", "I2S FIFO Playback";
|
|
+
|
|
+ dai-link-0 {
|
|
+ sound-dai = <&i2s_fifo>;
|
|
+ };
|
|
+
|
|
+ dai-link-1 {
|
|
+ sound-dai = <&i2s_encoder>;
|
|
+ dai-format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&codec0>;
|
|
+ };
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&codec1>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
--
|
|
2.17.1
|
|
|