xref: /openbmc/linux/Documentation/devicetree/bindings/sound/pcm512x.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
15a3af129SMark BrownPCM512x audio CODECs
25a3af129SMark Brown
35a3af129SMark BrownThese devices support both I2C and SPI (configured with pin strapping
45a3af129SMark Brownon the board).
55a3af129SMark Brown
65a3af129SMark BrownRequired properties:
75a3af129SMark Brown
8ba5295e5SPeter Rosin  - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141" or
9ba5295e5SPeter Rosin                 "ti,pcm5142"
105a3af129SMark Brown
115a3af129SMark Brown  - reg : the I2C address of the device for I2C, the chip select
125a3af129SMark Brown          number for SPI.
135a3af129SMark Brown
145a3af129SMark Brown  - AVDD-supply, DVDD-supply, and CPVDD-supply : power supplies for the
155a3af129SMark Brown    device, as covered in bindings/regulator/regulator.txt
165a3af129SMark Brown
175a3af129SMark BrownOptional properties:
185a3af129SMark Brown
195a3af129SMark Brown  - clocks : A clock specifier for the clock connected as SCLK.  If this
20*f086ba9dSPeter Rosin    is absent the device will be configured to clock from BCLK.  If pll-in
21*f086ba9dSPeter Rosin    and pll-out are specified in addition to a clock, the device is
22*f086ba9dSPeter Rosin    configured to accept clock input on a specified gpio pin.
235a3af129SMark Brown
24*f086ba9dSPeter Rosin  - pll-in, pll-out : gpio pins used to connect the pll using <1>
25*f086ba9dSPeter Rosin    through <6>.  The device will be configured for clock input on the
26*f086ba9dSPeter Rosin    given pll-in pin and PLL output on the given pll-out pin.  An
27*f086ba9dSPeter Rosin    external connection from the pll-out pin to the SCLK pin is assumed.
28*f086ba9dSPeter Rosin
29*f086ba9dSPeter RosinExamples:
305a3af129SMark Brown
315a3af129SMark Brown	pcm5122: pcm5122@4c {
325a3af129SMark Brown		compatible = "ti,pcm5122";
335a3af129SMark Brown		reg = <0x4c>;
345a3af129SMark Brown
355a3af129SMark Brown		AVDD-supply = <&reg_3v3_analog>;
365a3af129SMark Brown		DVDD-supply = <&reg_1v8>;
375a3af129SMark Brown		CPVDD-supply = <&reg_3v3>;
385a3af129SMark Brown	};
39*f086ba9dSPeter Rosin
40*f086ba9dSPeter Rosin
41*f086ba9dSPeter Rosin	pcm5142: pcm5142@4c {
42*f086ba9dSPeter Rosin		compatible = "ti,pcm5142";
43*f086ba9dSPeter Rosin		reg = <0x4c>;
44*f086ba9dSPeter Rosin
45*f086ba9dSPeter Rosin		AVDD-supply = <&reg_3v3_analog>;
46*f086ba9dSPeter Rosin		DVDD-supply = <&reg_1v8>;
47*f086ba9dSPeter Rosin		CPVDD-supply = <&reg_3v3>;
48*f086ba9dSPeter Rosin
49*f086ba9dSPeter Rosin		clocks = <&sck>;
50*f086ba9dSPeter Rosin		pll-in = <3>;
51*f086ba9dSPeter Rosin		pll-out = <6>;
52*f086ba9dSPeter Rosin	};
53