xref: /linux/Documentation/devicetree/bindings/sound/samsung,odroid.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
19ac47908SMaciej Falkowski# SPDX-License-Identifier: GPL-2.0
29ac47908SMaciej Falkowski%YAML 1.2
39ac47908SMaciej Falkowski---
49ac47908SMaciej Falkowski$id: http://devicetree.org/schemas/sound/samsung,odroid.yaml#
59ac47908SMaciej Falkowski$schema: http://devicetree.org/meta-schemas/core.yaml#
69ac47908SMaciej Falkowski
79ac47908SMaciej Falkowskititle: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec
89ac47908SMaciej Falkowski
99ac47908SMaciej Falkowskimaintainers:
109ac47908SMaciej Falkowski  - Krzysztof Kozlowski <krzk@kernel.org>
119ac47908SMaciej Falkowski  - Sylwester Nawrocki <s.nawrocki@samsung.com>
129ac47908SMaciej Falkowski
13*5ddff831SKrzysztof KozlowskiallOf:
14*5ddff831SKrzysztof Kozlowski  - $ref: sound-card-common.yaml#
15*5ddff831SKrzysztof Kozlowski
169ac47908SMaciej Falkowskiproperties:
179ac47908SMaciej Falkowski  compatible:
189ac47908SMaciej Falkowski    oneOf:
199ac47908SMaciej Falkowski      - const: hardkernel,odroid-xu3-audio
209ac47908SMaciej Falkowski
219ac47908SMaciej Falkowski      - const: hardkernel,odroid-xu4-audio
229ac47908SMaciej Falkowski        deprecated: true
239ac47908SMaciej Falkowski
249ac47908SMaciej Falkowski      - const: samsung,odroid-xu3-audio
259ac47908SMaciej Falkowski        deprecated: true
269ac47908SMaciej Falkowski
279ac47908SMaciej Falkowski      - const: samsung,odroid-xu4-audio
289ac47908SMaciej Falkowski        deprecated: true
299ac47908SMaciej Falkowski
309ac47908SMaciej Falkowski  cpu:
319ac47908SMaciej Falkowski    type: object
32e62fc182SRob Herring    additionalProperties: false
339ac47908SMaciej Falkowski    properties:
349ac47908SMaciej Falkowski      sound-dai:
359ac47908SMaciej Falkowski        description: phandles to the I2S controllers
369ac47908SMaciej Falkowski
379ac47908SMaciej Falkowski  codec:
389ac47908SMaciej Falkowski    type: object
39e62fc182SRob Herring    additionalProperties: false
409ac47908SMaciej Falkowski    properties:
419ac47908SMaciej Falkowski      sound-dai:
42cc5be0e5SKrzysztof Kozlowski        minItems: 1
4397709d36SRob Herring        items:
4497709d36SRob Herring          - description: phandle of the HDMI IP block node
45cc5be0e5SKrzysztof Kozlowski          - description: phandle of the MAX98090 CODEC
469ac47908SMaciej Falkowski
479ac47908SMaciej Falkowski  samsung,audio-routing:
489ac47908SMaciej Falkowski    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
49*5ddff831SKrzysztof Kozlowski    deprecated: true
509ac47908SMaciej Falkowski    description: |
519ac47908SMaciej Falkowski      List of the connections between audio
529ac47908SMaciej Falkowski      components;  each entry is a pair of strings, the first being the
539ac47908SMaciej Falkowski      connection's sink, the second being the connection's source;
549ac47908SMaciej Falkowski      valid names for sources and sinks are the MAX98090's pins (as
559ac47908SMaciej Falkowski      documented in its binding), and the jacks on the board.
569ac47908SMaciej Falkowski      For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC"
579ac47908SMaciej Falkowski      For Odroid U3, XU3: "Headphone Jack", "Speakers"
589ac47908SMaciej Falkowski      For Odroid XU4: no entries
59*5ddff831SKrzysztof Kozlowski      Deprecated, use audio-routing.
609ac47908SMaciej Falkowski
619ac47908SMaciej Falkowski  samsung,audio-widgets:
629ac47908SMaciej Falkowski    $ref: /schemas/types.yaml#/definitions/non-unique-string-array
639ac47908SMaciej Falkowski    description: |
649ac47908SMaciej Falkowski      This property specifies off-codec audio elements
659ac47908SMaciej Falkowski      like headphones or speakers, for details see widgets.txt
669ac47908SMaciej Falkowski
679ac47908SMaciej Falkowskirequired:
689ac47908SMaciej Falkowski  - compatible
699ac47908SMaciej Falkowski  - cpu
709ac47908SMaciej Falkowski  - codec
719ac47908SMaciej Falkowski
72*5ddff831SKrzysztof KozlowskiunevaluatedProperties: false
737f464532SRob Herring
749ac47908SMaciej Falkowskiexamples:
759ac47908SMaciej Falkowski  - |
769ac47908SMaciej Falkowski    sound {
779ac47908SMaciej Falkowski        compatible = "hardkernel,odroid-xu3-audio";
789ac47908SMaciej Falkowski        model = "Odroid-XU3";
79*5ddff831SKrzysztof Kozlowski        audio-routing =
809ac47908SMaciej Falkowski                "Headphone Jack", "HPL",
819ac47908SMaciej Falkowski                "Headphone Jack", "HPR",
829ac47908SMaciej Falkowski                "IN1", "Mic Jack",
839ac47908SMaciej Falkowski                "Mic Jack", "MICBIAS";
849ac47908SMaciej Falkowski
859ac47908SMaciej Falkowski        cpu {
869ac47908SMaciej Falkowski            sound-dai = <&i2s0 0>;
879ac47908SMaciej Falkowski        };
889ac47908SMaciej Falkowski
899ac47908SMaciej Falkowski        codec {
909ac47908SMaciej Falkowski            sound-dai = <&hdmi>, <&max98090>;
919ac47908SMaciej Falkowski        };
929ac47908SMaciej Falkowski    };
93