xref: /freebsd/sys/contrib/device-tree/Bindings/sound/pcm512x.txt (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
1PCM512x and TAS575x audio CODECs/amplifiers
2
3These devices support both I2C and SPI (configured with pin strapping
4on the board). The TAS575x devices only support I2C.
5
6Required properties:
7
8  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141",
9                 "ti,pcm5142", "ti,tas5754" or "ti,tas5756"
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    Caution: the TAS-desvices only support gpios 1,2 and 3
29
30Examples:
31
32	pcm5122: pcm5122@4c {
33		compatible = "ti,pcm5122";
34		reg = <0x4c>;
35
36		AVDD-supply = <&reg_3v3_analog>;
37		DVDD-supply = <&reg_1v8>;
38		CPVDD-supply = <&reg_3v3>;
39	};
40
41
42	pcm5142: pcm5142@4c {
43		compatible = "ti,pcm5142";
44		reg = <0x4c>;
45
46		AVDD-supply = <&reg_3v3_analog>;
47		DVDD-supply = <&reg_1v8>;
48		CPVDD-supply = <&reg_3v3>;
49
50		clocks = <&sck>;
51		pll-in = <3>;
52		pll-out = <6>;
53	};
54