1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/amlogic,gx-sound-card.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Amlogic GX sound card 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Jerome Brunet <jbrunet@baylibre.com> 11c66ec88fSEmmanuel Vadot 12*aa1a8ff2SEmmanuel VadotallOf: 13*aa1a8ff2SEmmanuel Vadot - $ref: sound-card-common.yaml# 14*aa1a8ff2SEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot compatible: 17c66ec88fSEmmanuel Vadot items: 18c66ec88fSEmmanuel Vadot - const: amlogic,gx-sound-card 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot audio-aux-devs: 21c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 22c66ec88fSEmmanuel Vadot description: list of auxiliary devices 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot audio-widgets: 25c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/non-unique-string-array 26c66ec88fSEmmanuel Vadot minItems: 2 27c66ec88fSEmmanuel Vadot description: |- 28c66ec88fSEmmanuel Vadot A list off component DAPM widget. Each entry is a pair of strings, 29c66ec88fSEmmanuel Vadot the first being the widget type, the second being the widget name 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel VadotpatternProperties: 32c66ec88fSEmmanuel Vadot "^dai-link-[0-9]+$": 33c66ec88fSEmmanuel Vadot type: object 347ef62cebSEmmanuel Vadot additionalProperties: false 35c66ec88fSEmmanuel Vadot description: |- 36c66ec88fSEmmanuel Vadot dai-link child nodes: 37c66ec88fSEmmanuel Vadot Container for dai-link level properties and the CODEC sub-nodes. 38c66ec88fSEmmanuel Vadot There should be at least one (and probably more) subnode of this type 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot properties: 41c66ec88fSEmmanuel Vadot dai-format: 42c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 43c66ec88fSEmmanuel Vadot enum: [ i2s, left-j, dsp_a ] 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot mclk-fs: 46c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 47c66ec88fSEmmanuel Vadot description: |- 48c66ec88fSEmmanuel Vadot Multiplication factor between the frame rate and master clock 49c66ec88fSEmmanuel Vadot rate 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot sound-dai: 52c9ccf3a3SEmmanuel Vadot maxItems: 1 53c66ec88fSEmmanuel Vadot description: phandle of the CPU DAI 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot patternProperties: 56cb7aa33aSEmmanuel Vadot "^codec(-[0-9]+)?$": 57c66ec88fSEmmanuel Vadot type: object 587ef62cebSEmmanuel Vadot additionalProperties: false 59c66ec88fSEmmanuel Vadot description: |- 60c66ec88fSEmmanuel Vadot Codecs: 61c66ec88fSEmmanuel Vadot dai-link representing backend links should have at least one subnode. 62c66ec88fSEmmanuel Vadot One subnode for each codec of the dai-link. dai-link representing 63c66ec88fSEmmanuel Vadot frontend links have no codec, therefore have no subnodes 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot properties: 66c66ec88fSEmmanuel Vadot sound-dai: 67c9ccf3a3SEmmanuel Vadot maxItems: 1 68c66ec88fSEmmanuel Vadot description: phandle of the codec DAI 69c66ec88fSEmmanuel Vadot 70c66ec88fSEmmanuel Vadot required: 71c66ec88fSEmmanuel Vadot - sound-dai 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot required: 74c66ec88fSEmmanuel Vadot - sound-dai 75c66ec88fSEmmanuel Vadot 76c66ec88fSEmmanuel Vadotrequired: 77c66ec88fSEmmanuel Vadot - model 78c66ec88fSEmmanuel Vadot - dai-link-0 79c66ec88fSEmmanuel Vadot 80*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false 816be33864SEmmanuel Vadot 82c66ec88fSEmmanuel Vadotexamples: 83c66ec88fSEmmanuel Vadot - | 84c66ec88fSEmmanuel Vadot sound { 85c66ec88fSEmmanuel Vadot compatible = "amlogic,gx-sound-card"; 86c66ec88fSEmmanuel Vadot model = "GXL-ACME-S905X-FOO"; 87c66ec88fSEmmanuel Vadot audio-aux-devs = <&>; 88c66ec88fSEmmanuel Vadot audio-routing = "I2S ENCODER I2S IN", "I2S FIFO Playback"; 89c66ec88fSEmmanuel Vadot 90c66ec88fSEmmanuel Vadot dai-link-0 { 91c66ec88fSEmmanuel Vadot sound-dai = <&i2s_fifo>; 92c66ec88fSEmmanuel Vadot }; 93c66ec88fSEmmanuel Vadot 94c66ec88fSEmmanuel Vadot dai-link-1 { 95c66ec88fSEmmanuel Vadot sound-dai = <&i2s_encoder>; 96c66ec88fSEmmanuel Vadot dai-format = "i2s"; 97c66ec88fSEmmanuel Vadot mclk-fs = <256>; 98c66ec88fSEmmanuel Vadot 99c66ec88fSEmmanuel Vadot codec-0 { 100c66ec88fSEmmanuel Vadot sound-dai = <&codec0>; 101c66ec88fSEmmanuel Vadot }; 102c66ec88fSEmmanuel Vadot 103c66ec88fSEmmanuel Vadot codec-1 { 104c66ec88fSEmmanuel Vadot sound-dai = <&codec1>; 105c66ec88fSEmmanuel Vadot }; 106c66ec88fSEmmanuel Vadot }; 107c66ec88fSEmmanuel Vadot }; 108