xref: /freebsd/sys/contrib/device-tree/Bindings/sound/ti,pcm512x.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/ti,pcm512x.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: PCM512x and TAS575x audio CODECs/amplifiers
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Animesh Agarwal <animeshagarwal28@gmail.com>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel VadotallOf:
13*b2d2a78aSEmmanuel Vadot  - $ref: dai-common.yaml#
14*b2d2a78aSEmmanuel Vadot
15*b2d2a78aSEmmanuel Vadotproperties:
16*b2d2a78aSEmmanuel Vadot  compatible:
17*b2d2a78aSEmmanuel Vadot    enum:
18*b2d2a78aSEmmanuel Vadot      - ti,pcm5121
19*b2d2a78aSEmmanuel Vadot      - ti,pcm5122
20*b2d2a78aSEmmanuel Vadot      - ti,pcm5141
21*b2d2a78aSEmmanuel Vadot      - ti,pcm5142
22*b2d2a78aSEmmanuel Vadot      - ti,pcm5242
23*b2d2a78aSEmmanuel Vadot      - ti,tas5754
24*b2d2a78aSEmmanuel Vadot      - ti,tas5756
25*b2d2a78aSEmmanuel Vadot
26*b2d2a78aSEmmanuel Vadot  reg:
27*b2d2a78aSEmmanuel Vadot    maxItems: 1
28*b2d2a78aSEmmanuel Vadot
29*b2d2a78aSEmmanuel Vadot  AVDD-supply: true
30*b2d2a78aSEmmanuel Vadot
31*b2d2a78aSEmmanuel Vadot  DVDD-supply: true
32*b2d2a78aSEmmanuel Vadot
33*b2d2a78aSEmmanuel Vadot  CPVDD-supply: true
34*b2d2a78aSEmmanuel Vadot
35*b2d2a78aSEmmanuel Vadot  clocks:
36*b2d2a78aSEmmanuel Vadot    maxItems: 1
37*b2d2a78aSEmmanuel Vadot    description: A clock specifier for the clock connected as SCLK. If this is
38*b2d2a78aSEmmanuel Vadot      absent the device will be configured to clock from BCLK. If pll-in and
39*b2d2a78aSEmmanuel Vadot      pll-out are specified in addition to a clock, the device is configured to
40*b2d2a78aSEmmanuel Vadot      accept clock input on a specified gpio pin.
41*b2d2a78aSEmmanuel Vadot
42*b2d2a78aSEmmanuel Vadot  '#sound-dai-cells':
43*b2d2a78aSEmmanuel Vadot    const: 0
44*b2d2a78aSEmmanuel Vadot
45*b2d2a78aSEmmanuel Vadot  pll-in:
46*b2d2a78aSEmmanuel Vadot    description: GPIO pin used to connect the pll using <1> through <6>. The
47*b2d2a78aSEmmanuel Vadot      device will be configured for clock input on the given pll-in pin.
48*b2d2a78aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
49*b2d2a78aSEmmanuel Vadot    minimum: 1
50*b2d2a78aSEmmanuel Vadot    maximum: 6
51*b2d2a78aSEmmanuel Vadot
52*b2d2a78aSEmmanuel Vadot  pll-out:
53*b2d2a78aSEmmanuel Vadot    description: GPIO pin used to connect the pll using <1> through <6>. The
54*b2d2a78aSEmmanuel Vadot      device will be configured for PLL output on the given pll-out pin.  An
55*b2d2a78aSEmmanuel Vadot      external connection from the pll-out pin to the SCLK pin is assumed.
56*b2d2a78aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
57*b2d2a78aSEmmanuel Vadot    minimum: 1
58*b2d2a78aSEmmanuel Vadot    maximum: 6
59*b2d2a78aSEmmanuel Vadot
60*b2d2a78aSEmmanuel Vadotrequired:
61*b2d2a78aSEmmanuel Vadot  - compatible
62*b2d2a78aSEmmanuel Vadot  - reg
63*b2d2a78aSEmmanuel Vadot  - AVDD-supply
64*b2d2a78aSEmmanuel Vadot  - DVDD-supply
65*b2d2a78aSEmmanuel Vadot  - CPVDD-supply
66*b2d2a78aSEmmanuel Vadot
67*b2d2a78aSEmmanuel Vadotif:
68*b2d2a78aSEmmanuel Vadot  properties:
69*b2d2a78aSEmmanuel Vadot    compatible:
70*b2d2a78aSEmmanuel Vadot      contains:
71*b2d2a78aSEmmanuel Vadot        enum:
72*b2d2a78aSEmmanuel Vadot          - ti,tas5754
73*b2d2a78aSEmmanuel Vadot          - ti,tas5756
74*b2d2a78aSEmmanuel Vadot
75*b2d2a78aSEmmanuel Vadotthen:
76*b2d2a78aSEmmanuel Vadot  properties:
77*b2d2a78aSEmmanuel Vadot    pll-in:
78*b2d2a78aSEmmanuel Vadot      maximum: 3
79*b2d2a78aSEmmanuel Vadot
80*b2d2a78aSEmmanuel Vadot    pll-out:
81*b2d2a78aSEmmanuel Vadot      maximum: 3
82*b2d2a78aSEmmanuel Vadot
83*b2d2a78aSEmmanuel VadotunevaluatedProperties: false
84*b2d2a78aSEmmanuel Vadot
85*b2d2a78aSEmmanuel Vadotexamples:
86*b2d2a78aSEmmanuel Vadot  - |
87*b2d2a78aSEmmanuel Vadot    i2c {
88*b2d2a78aSEmmanuel Vadot        #address-cells = <1>;
89*b2d2a78aSEmmanuel Vadot        #size-cells = <0>;
90*b2d2a78aSEmmanuel Vadot        codec@4c {
91*b2d2a78aSEmmanuel Vadot            compatible = "ti,pcm5142";
92*b2d2a78aSEmmanuel Vadot            reg = <0x4c>;
93*b2d2a78aSEmmanuel Vadot            AVDD-supply = <&reg_3v3_analog>;
94*b2d2a78aSEmmanuel Vadot            DVDD-supply = <&reg_1v8>;
95*b2d2a78aSEmmanuel Vadot            CPVDD-supply = <&reg_3v3>;
96*b2d2a78aSEmmanuel Vadot            #sound-dai-cells = <0>;
97*b2d2a78aSEmmanuel Vadot            clocks = <&sck>;
98*b2d2a78aSEmmanuel Vadot            pll-in = <3>;
99*b2d2a78aSEmmanuel Vadot            pll-out = <6>;
100*b2d2a78aSEmmanuel Vadot        };
101*b2d2a78aSEmmanuel Vadot    };
102