xref: /freebsd/sys/contrib/device-tree/Bindings/sound/pcm512x.txt (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1PCM512x audio CODECs
2
3These devices support both I2C and SPI (configured with pin strapping
4on the board).
5
6Required properties:
7
8  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141" or
9                 "ti,pcm5142"
10
11  - reg : the I2C address of the device for I2C, the chip select
12          number for SPI.
13
14  - AVDD-supply, DVDD-supply, and CPVDD-supply : power supplies for the
15    device, as covered in bindings/regulator/regulator.txt
16
17Optional properties:
18
19  - clocks : A clock specifier for the clock connected as SCLK.  If this
20    is absent the device will be configured to clock from BCLK.  If pll-in
21    and pll-out are specified in addition to a clock, the device is
22    configured to accept clock input on a specified gpio pin.
23
24  - pll-in, pll-out : gpio pins used to connect the pll using <1>
25    through <6>.  The device will be configured for clock input on the
26    given pll-in pin and PLL output on the given pll-out pin.  An
27    external connection from the pll-out pin to the SCLK pin is assumed.
28
29Examples:
30
31	pcm5122: pcm5122@4c {
32		compatible = "ti,pcm5122";
33		reg = <0x4c>;
34
35		AVDD-supply = <&reg_3v3_analog>;
36		DVDD-supply = <&reg_1v8>;
37		CPVDD-supply = <&reg_3v3>;
38	};
39
40
41	pcm5142: pcm5142@4c {
42		compatible = "ti,pcm5142";
43		reg = <0x4c>;
44
45		AVDD-supply = <&reg_3v3_analog>;
46		DVDD-supply = <&reg_1v8>;
47		CPVDD-supply = <&reg_3v3>;
48
49		clocks = <&sck>;
50		pll-in = <3>;
51		pll-out = <6>;
52	};
53