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