summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml
blob: b6a4360ab845dd2e2ed37c5e4f2d95a284e00a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/ti,pcm3168a.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments PCM3168A Audio Codec

maintainers:
  - Damien Horsley <Damien.Horsley@imgtec.com>
  - Geert Uytterhoeven <geert+renesas@glider.be>
  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

description:
  The Texas Instruments PCM3168A is a 24-bit Multi-channel Audio CODEC with
  96/192kHz sampling rate, supporting both SPI and I2C bus access.

properties:
  compatible:
    const: ti,pcm3168a

  reg:
    maxItems: 1

  clocks:
    items:
      - description: System clock input

  clock-names:
    items:
      - const: scki

  reset-gpios:
    items:
      - description: |
          GPIO line connected to the active-low RST pin of the codec.
            RST = low: device power-down
            RST = high: device is enabled

  "#sound-dai-cells":
    enum: [0, 1]

  VDD1-supply:
    description: Digital power supply regulator 1 (+3.3V)

  VDD2-supply:
    description: Digital power supply regulator 2 (+3.3V)

  VCCAD1-supply:
    description: ADC power supply regulator 1 (+5V)

  VCCAD2-supply:
    description: ADC power supply regulator 2 (+5V)

  VCCDA1-supply:
    description: DAC power supply regulator 1 (+5V)

  VCCDA2-supply:
    description: DAC power supply regulator 2 (+5V)

  ports:
    $ref: audio-graph-port.yaml#/definitions/port-base
    properties:
      port@0:
        $ref: audio-graph-port.yaml#
        description: Audio input port.

      port@1:
        $ref: audio-graph-port.yaml#
        description: Audio output port.

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - VDD1-supply
  - VDD2-supply
  - VCCAD1-supply
  - VCCAD2-supply
  - VCCDA1-supply
  - VCCDA2-supply

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        pcm3168a: audio-codec@44 {
            compatible = "ti,pcm3168a";
            reg = <0x44>;
            reset-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
            clocks = <&clk_core 42>;
            clock-names = "scki";
            VDD1-supply = <&supply3v3>;
            VDD2-supply = <&supply3v3>;
            VCCAD1-supply = <&supply5v0>;
            VCCAD2-supply = <&supply5v0>;
            VCCDA1-supply = <&supply5v0>;
            VCCDA2-supply = <&supply5v0>;
        };
    };