xref: /freebsd/sys/contrib/device-tree/Bindings/sound/nxp,tfa989x.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/nxp,tfa989x.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: NXP/Goodix TFA989X (TFA1) Audio Amplifiers
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Stephan Gerhold <stephan@gerhold.net>
115956d97fSEmmanuel Vadot
128cc087a1SEmmanuel VadotallOf:
13*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
148cc087a1SEmmanuel Vadot
155956d97fSEmmanuel Vadotproperties:
165956d97fSEmmanuel Vadot  compatible:
175956d97fSEmmanuel Vadot    enum:
18b97ee269SEmmanuel Vadot      - nxp,tfa9890
195956d97fSEmmanuel Vadot      - nxp,tfa9895
205956d97fSEmmanuel Vadot      - nxp,tfa9897
215956d97fSEmmanuel Vadot
225956d97fSEmmanuel Vadot  reg:
235956d97fSEmmanuel Vadot    maxItems: 1
245956d97fSEmmanuel Vadot
255956d97fSEmmanuel Vadot  '#sound-dai-cells':
265956d97fSEmmanuel Vadot    const: 0
275956d97fSEmmanuel Vadot
28e67e8565SEmmanuel Vadot  rcv-gpios:
29e67e8565SEmmanuel Vadot    description: optional GPIO to be asserted when receiver mode is enabled.
30e67e8565SEmmanuel Vadot
318cc087a1SEmmanuel Vadot  sound-name-prefix: true
325956d97fSEmmanuel Vadot
335956d97fSEmmanuel Vadot  vddd-supply:
345956d97fSEmmanuel Vadot    description: regulator phandle for the VDDD power supply.
355956d97fSEmmanuel Vadot
36e67e8565SEmmanuel Vadotif:
37e67e8565SEmmanuel Vadot  not:
38e67e8565SEmmanuel Vadot    properties:
39e67e8565SEmmanuel Vadot      compatible:
40e67e8565SEmmanuel Vadot        const: nxp,tfa9897
41e67e8565SEmmanuel Vadotthen:
42e67e8565SEmmanuel Vadot  properties:
43e67e8565SEmmanuel Vadot    rcv-gpios: false
44e67e8565SEmmanuel Vadot
455956d97fSEmmanuel Vadotrequired:
465956d97fSEmmanuel Vadot  - compatible
475956d97fSEmmanuel Vadot  - reg
485956d97fSEmmanuel Vadot  - '#sound-dai-cells'
495956d97fSEmmanuel Vadot
505956d97fSEmmanuel VadotadditionalProperties: false
515956d97fSEmmanuel Vadot
525956d97fSEmmanuel Vadotexamples:
535956d97fSEmmanuel Vadot  - |
545956d97fSEmmanuel Vadot    i2c {
555956d97fSEmmanuel Vadot      #address-cells = <1>;
565956d97fSEmmanuel Vadot      #size-cells = <0>;
575956d97fSEmmanuel Vadot
585956d97fSEmmanuel Vadot      audio-codec@34 {
595956d97fSEmmanuel Vadot        compatible = "nxp,tfa9895";
605956d97fSEmmanuel Vadot        reg = <0x34>;
615956d97fSEmmanuel Vadot        sound-name-prefix = "Speaker Left";
625956d97fSEmmanuel Vadot        #sound-dai-cells = <0>;
635956d97fSEmmanuel Vadot      };
645956d97fSEmmanuel Vadot      audio-codec@36 {
655956d97fSEmmanuel Vadot        compatible = "nxp,tfa9895";
665956d97fSEmmanuel Vadot        reg = <0x36>;
675956d97fSEmmanuel Vadot        sound-name-prefix = "Speaker Right";
685956d97fSEmmanuel Vadot        #sound-dai-cells = <0>;
695956d97fSEmmanuel Vadot      };
705956d97fSEmmanuel Vadot    };
71e67e8565SEmmanuel Vadot
72e67e8565SEmmanuel Vadot  - |
73e67e8565SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
74e67e8565SEmmanuel Vadot    i2c {
75e67e8565SEmmanuel Vadot      #address-cells = <1>;
76e67e8565SEmmanuel Vadot      #size-cells = <0>;
77e67e8565SEmmanuel Vadot
78e67e8565SEmmanuel Vadot      speaker_codec_top: audio-codec@34 {
79e67e8565SEmmanuel Vadot        compatible = "nxp,tfa9897";
80e67e8565SEmmanuel Vadot        reg = <0x34>;
81e67e8565SEmmanuel Vadot        vddd-supply = <&pm8916_l6>;
82e67e8565SEmmanuel Vadot        rcv-gpios = <&msmgpio 50 GPIO_ACTIVE_HIGH>;
83e67e8565SEmmanuel Vadot        pinctrl-names = "default";
84e67e8565SEmmanuel Vadot        pinctrl-0 = <&speaker_top_default>;
85e67e8565SEmmanuel Vadot        sound-name-prefix = "Speaker Top";
86e67e8565SEmmanuel Vadot        #sound-dai-cells = <0>;
87e67e8565SEmmanuel Vadot      };
88e67e8565SEmmanuel Vadot
89e67e8565SEmmanuel Vadot      speaker_codec_bottom: audio-codec@36 {
90e67e8565SEmmanuel Vadot        compatible = "nxp,tfa9897";
91e67e8565SEmmanuel Vadot        reg = <0x36>;
92e67e8565SEmmanuel Vadot        vddd-supply = <&pm8916_l6>;
93e67e8565SEmmanuel Vadot        rcv-gpios = <&msmgpio 111 GPIO_ACTIVE_HIGH>;
94e67e8565SEmmanuel Vadot        pinctrl-names = "default";
95e67e8565SEmmanuel Vadot        pinctrl-0 = <&speaker_bottom_default>;
96e67e8565SEmmanuel Vadot        sound-name-prefix = "Speaker Bottom";
97e67e8565SEmmanuel Vadot        #sound-dai-cells = <0>;
98e67e8565SEmmanuel Vadot      };
99e67e8565SEmmanuel Vadot    };
100