diff options
author | Ben Fennema <fennema@google.com> | 2023-07-04 22:21:43 -0700 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-13 02:59:35 +0000 |
commit | 1e906bc0e9010b7626f65278dac5283bf2e1c7f4 (patch) | |
tree | 00a147fb11cc941b09aab93293cd91f39b49b81e | |
parent | 1fb686aa0ff55e873336440b2172a8f38a458aad (diff) | |
download | devicetree-1e906bc0e9010b7626f65278dac5283bf2e1c7f4.tar.gz |
Apply android13-5.15-2023-06_r2 devicetree/bindings changes into android13-msm-pixelwatch-5.15
msm-google symlinks msm-google/Documentation/devicetree/bindings to
msm-google-extra/devicetree/bindings, so changes can't be applied. Apply
the equivalent changes to devicetree/bindings.
Bug: 289943313
Signed-off-by: Ben Fennema <fennema@google.com>
(cherry picked from https://partner-android-review.googlesource.com/q/commit:40f09dce04ef8c0a16cc603d244262f2cd9ec4d9)
Merged-In: I1001b008eeef78eaa5b484ea7b1d51a1fc8d5624
Change-Id: I1001b008eeef78eaa5b484ea7b1d51a1fc8d5624
-rwxr-xr-x | bindings/sound/amlogic,gx-sound-card.yaml | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/bindings/sound/amlogic,gx-sound-card.yaml b/bindings/sound/amlogic,gx-sound-card.yaml new file mode 100755 index 00000000..89e3819c --- /dev/null +++ b/bindings/sound/amlogic,gx-sound-card.yaml @@ -0,0 +1,115 @@ +# 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-array + 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-array + description: phandle of the codec DAI + + required: + - sound-dai + + required: + - sound-dai + +required: + - model + - dai-link-0 + +additionalProperties: false + +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>; + }; + }; + }; + |