xref: /freebsd/sys/contrib/device-tree/Bindings/sound/google,sc7180-trogdor.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/google,sc7180-trogdor.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Google SC7180-Trogdor ASoC sound card driver
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
10f126890aSEmmanuel Vadot  - Rohit kumar <quic_rohkumar@quicinc.com>
115def4c47SEmmanuel Vadot  - Cheng-Yi Chiang <cychiang@chromium.org>
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadotdescription:
145def4c47SEmmanuel Vadot  This binding describes the SC7180 sound card which uses LPASS for audio.
155def4c47SEmmanuel Vadot
16*aa1a8ff2SEmmanuel VadotallOf:
17*aa1a8ff2SEmmanuel Vadot  - $ref: sound-card-common.yaml#
18*aa1a8ff2SEmmanuel Vadot
195def4c47SEmmanuel Vadotproperties:
205def4c47SEmmanuel Vadot  compatible:
215def4c47SEmmanuel Vadot    enum:
225def4c47SEmmanuel Vadot      - google,sc7180-trogdor
235def4c47SEmmanuel Vadot      - google,sc7180-coachz
245def4c47SEmmanuel Vadot
255def4c47SEmmanuel Vadot  "#address-cells":
265def4c47SEmmanuel Vadot    const: 1
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot  "#size-cells":
295def4c47SEmmanuel Vadot    const: 0
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  dmic-gpios:
325def4c47SEmmanuel Vadot    maxItems: 1
335def4c47SEmmanuel Vadot    description: GPIO for switching between DMICs
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel VadotpatternProperties:
365def4c47SEmmanuel Vadot  "^dai-link(@[0-9])?$":
375def4c47SEmmanuel Vadot    description:
385def4c47SEmmanuel Vadot      Each subnode represents a dai link. Subnodes of each dai links would be
395def4c47SEmmanuel Vadot      cpu/codec dais.
405def4c47SEmmanuel Vadot
415def4c47SEmmanuel Vadot    type: object
425def4c47SEmmanuel Vadot
435def4c47SEmmanuel Vadot    properties:
445def4c47SEmmanuel Vadot      link-name:
455def4c47SEmmanuel Vadot        description: Indicates dai-link name and PCM stream name.
465def4c47SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/string
475def4c47SEmmanuel Vadot        maxItems: 1
485def4c47SEmmanuel Vadot
495def4c47SEmmanuel Vadot      reg:
505def4c47SEmmanuel Vadot        maxItems: 1
515def4c47SEmmanuel Vadot        description: dai link address.
525def4c47SEmmanuel Vadot
535def4c47SEmmanuel Vadot      cpu:
545def4c47SEmmanuel Vadot        description: Holds subnode which indicates cpu dai.
555def4c47SEmmanuel Vadot        type: object
567ef62cebSEmmanuel Vadot        additionalProperties: false
577ef62cebSEmmanuel Vadot
585def4c47SEmmanuel Vadot        properties:
59c9ccf3a3SEmmanuel Vadot          sound-dai:
60c9ccf3a3SEmmanuel Vadot            maxItems: 1
615def4c47SEmmanuel Vadot
625def4c47SEmmanuel Vadot      codec:
635def4c47SEmmanuel Vadot        description: Holds subnode which indicates codec dai.
645def4c47SEmmanuel Vadot        type: object
657ef62cebSEmmanuel Vadot        additionalProperties: false
667ef62cebSEmmanuel Vadot
675def4c47SEmmanuel Vadot        properties:
68c9ccf3a3SEmmanuel Vadot          sound-dai:
69f126890aSEmmanuel Vadot            minItems: 1
70f126890aSEmmanuel Vadot            maxItems: 4
715def4c47SEmmanuel Vadot
725def4c47SEmmanuel Vadot    required:
735def4c47SEmmanuel Vadot      - link-name
745def4c47SEmmanuel Vadot      - cpu
755def4c47SEmmanuel Vadot      - codec
765def4c47SEmmanuel Vadot
775def4c47SEmmanuel Vadot    additionalProperties: false
785def4c47SEmmanuel Vadot
795def4c47SEmmanuel Vadotrequired:
805def4c47SEmmanuel Vadot  - compatible
815def4c47SEmmanuel Vadot  - "#address-cells"
825def4c47SEmmanuel Vadot  - "#size-cells"
835def4c47SEmmanuel Vadot
84*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false
855def4c47SEmmanuel Vadot
865def4c47SEmmanuel Vadotexamples:
875def4c47SEmmanuel Vadot
885def4c47SEmmanuel Vadot  - |
895def4c47SEmmanuel Vadot    sound {
905def4c47SEmmanuel Vadot        compatible = "google,sc7180-trogdor";
915def4c47SEmmanuel Vadot        model = "sc7180-rt5682-max98357a-2mic";
925def4c47SEmmanuel Vadot
935def4c47SEmmanuel Vadot        audio-routing =
945def4c47SEmmanuel Vadot                    "Headphone Jack", "HPOL",
955def4c47SEmmanuel Vadot                    "Headphone Jack", "HPOR";
965def4c47SEmmanuel Vadot
975def4c47SEmmanuel Vadot        #address-cells = <1>;
985def4c47SEmmanuel Vadot        #size-cells = <0>;
995def4c47SEmmanuel Vadot
1005def4c47SEmmanuel Vadot        dmic-gpios = <&tlmm 86 0>;
1015def4c47SEmmanuel Vadot
1025def4c47SEmmanuel Vadot        dai-link@0 {
1035def4c47SEmmanuel Vadot            link-name = "MultiMedia0";
1045def4c47SEmmanuel Vadot            reg = <0>;
1055def4c47SEmmanuel Vadot            cpu {
1065def4c47SEmmanuel Vadot                sound-dai = <&lpass_cpu 0>;
1075def4c47SEmmanuel Vadot            };
1085def4c47SEmmanuel Vadot
1095def4c47SEmmanuel Vadot            codec {
1105def4c47SEmmanuel Vadot                sound-dai = <&alc5682 0>;
1115def4c47SEmmanuel Vadot            };
1125def4c47SEmmanuel Vadot        };
1135def4c47SEmmanuel Vadot
1145def4c47SEmmanuel Vadot        dai-link@1 {
1155def4c47SEmmanuel Vadot            link-name = "MultiMedia1";
1165def4c47SEmmanuel Vadot            reg = <1>;
1175def4c47SEmmanuel Vadot            cpu {
1185def4c47SEmmanuel Vadot                sound-dai = <&lpass_cpu 1>;
1195def4c47SEmmanuel Vadot            };
1205def4c47SEmmanuel Vadot
1215def4c47SEmmanuel Vadot            codec {
1225def4c47SEmmanuel Vadot                sound-dai = <&max98357a>;
1235def4c47SEmmanuel Vadot            };
1245def4c47SEmmanuel Vadot        };
1255def4c47SEmmanuel Vadot
1265def4c47SEmmanuel Vadot        dai-link@2 {
1275def4c47SEmmanuel Vadot            link-name = "MultiMedia2";
1285def4c47SEmmanuel Vadot            reg = <2>;
1295def4c47SEmmanuel Vadot            cpu {
1305def4c47SEmmanuel Vadot                sound-dai = <&lpass_hdmi 0>;
1315def4c47SEmmanuel Vadot            };
1325def4c47SEmmanuel Vadot
1335def4c47SEmmanuel Vadot            codec {
1345def4c47SEmmanuel Vadot                sound-dai = <&msm_dp>;
1355def4c47SEmmanuel Vadot            };
1365def4c47SEmmanuel Vadot        };
1375def4c47SEmmanuel Vadot    };
138