1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/sound/samsung,odroid.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec 8 9maintainers: 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Sylwester Nawrocki <s.nawrocki@samsung.com> 12 13properties: 14 compatible: 15 oneOf: 16 - const: hardkernel,odroid-xu3-audio 17 18 - const: hardkernel,odroid-xu4-audio 19 deprecated: true 20 21 - const: samsung,odroid-xu3-audio 22 deprecated: true 23 24 - const: samsung,odroid-xu4-audio 25 deprecated: true 26 27 model: 28 $ref: /schemas/types.yaml#/definitions/string 29 description: The user-visible name of this sound complex. 30 31 assigned-clock-parents: true 32 assigned-clock-rates: true 33 assigned-clocks: true 34 clocks: true 35 36 cpu: 37 type: object 38 properties: 39 sound-dai: 40 description: phandles to the I2S controllers 41 42 codec: 43 type: object 44 properties: 45 sound-dai: 46 minItems: 1 47 items: 48 - description: phandle of the HDMI IP block node 49 - description: phandle of the MAX98090 CODEC 50 51 samsung,audio-routing: 52 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 53 description: | 54 List of the connections between audio 55 components; each entry is a pair of strings, the first being the 56 connection's sink, the second being the connection's source; 57 valid names for sources and sinks are the MAX98090's pins (as 58 documented in its binding), and the jacks on the board. 59 For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC" 60 For Odroid U3, XU3: "Headphone Jack", "Speakers" 61 For Odroid XU4: no entries 62 63 samsung,audio-widgets: 64 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 65 description: | 66 This property specifies off-codec audio elements 67 like headphones or speakers, for details see widgets.txt 68 69required: 70 - compatible 71 - model 72 - cpu 73 - codec 74 75additionalProperties: false 76 77examples: 78 - | 79 sound { 80 compatible = "hardkernel,odroid-xu3-audio"; 81 model = "Odroid-XU3"; 82 samsung,audio-routing = 83 "Headphone Jack", "HPL", 84 "Headphone Jack", "HPR", 85 "IN1", "Mic Jack", 86 "Mic Jack", "MICBIAS"; 87 88 cpu { 89 sound-dai = <&i2s0 0>; 90 }; 91 92 codec { 93 sound-dai = <&hdmi>, <&max98090>; 94 }; 95 }; 96