xref: /freebsd/sys/contrib/device-tree/Bindings/sound/ti,pcm3168a.yaml (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/ti,pcm3168a.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments PCM3168A Audio Codec
8
9maintainers:
10  - Damien Horsley <Damien.Horsley@imgtec.com>
11  - Geert Uytterhoeven <geert+renesas@glider.be>
12  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
13
14description:
15  The Texas Instruments PCM3168A is a 24-bit Multi-channel Audio CODEC with
16  96/192kHz sampling rate, supporting both SPI and I2C bus access.
17
18properties:
19  compatible:
20    const: ti,pcm3168a
21
22  reg:
23    maxItems: 1
24
25  clocks:
26    items:
27      - description: System clock input
28
29  clock-names:
30    items:
31      - const: scki
32
33  reset-gpios:
34    items:
35      - description: |
36          GPIO line connected to the active-low RST pin of the codec.
37            RST = low: device power-down
38            RST = high: device is enabled
39
40  "#sound-dai-cells":
41    enum: [0, 1]
42
43  VDD1-supply:
44    description: Digital power supply regulator 1 (+3.3V)
45
46  VDD2-supply:
47    description: Digital power supply regulator 2 (+3.3V)
48
49  VCCAD1-supply:
50    description: ADC power supply regulator 1 (+5V)
51
52  VCCAD2-supply:
53    description: ADC power supply regulator 2 (+5V)
54
55  VCCDA1-supply:
56    description: DAC power supply regulator 1 (+5V)
57
58  VCCDA2-supply:
59    description: DAC power supply regulator 2 (+5V)
60
61  ports:
62    $ref: audio-graph-port.yaml#/definitions/port-base
63    properties:
64      port@0:
65        $ref: audio-graph-port.yaml#
66        description: Audio input port.
67
68      port@1:
69        $ref: audio-graph-port.yaml#
70        description: Audio output port.
71
72required:
73  - compatible
74  - reg
75  - clocks
76  - clock-names
77  - VDD1-supply
78  - VDD2-supply
79  - VCCAD1-supply
80  - VCCAD2-supply
81  - VCCDA1-supply
82  - VCCDA2-supply
83
84additionalProperties: false
85
86examples:
87  - |
88    #include <dt-bindings/gpio/gpio.h>
89
90    i2c {
91        #address-cells = <1>;
92        #size-cells = <0>;
93
94        pcm3168a: audio-codec@44 {
95            compatible = "ti,pcm3168a";
96            reg = <0x44>;
97            reset-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
98            clocks = <&clk_core 42>;
99            clock-names = "scki";
100            VDD1-supply = <&supply3v3>;
101            VDD2-supply = <&supply3v3>;
102            VCCAD1-supply = <&supply5v0>;
103            VCCAD2-supply = <&supply5v0>;
104            VCCDA1-supply = <&supply5v0>;
105            VCCDA2-supply = <&supply5v0>;
106        };
107    };
108