xref: /freebsd/sys/contrib/device-tree/Bindings/sound/cs42xx8.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCS42448/CS42888 audio CODEC
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot  - compatible : must contain one of "cirrus,cs42448" and "cirrus,cs42888"
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot  - reg : the I2C address of the device for I2C
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot  - clocks : a list of phandles + clock-specifiers, one for each entry in
10*c66ec88fSEmmanuel Vadot    clock-names
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot  - clock-names : must contain "mclk"
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot  - VA-supply, VD-supply, VLS-supply, VLC-supply: power supplies for the device,
15*c66ec88fSEmmanuel Vadot    as covered in Documentation/devicetree/bindings/regulator/regulator.txt
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotOptional properties:
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot  - reset-gpios : a GPIO spec to define which pin is connected to the chip's
20*c66ec88fSEmmanuel Vadot    !RESET pin
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotExample:
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadotcs42888: codec@48 {
25*c66ec88fSEmmanuel Vadot	compatible = "cirrus,cs42888";
26*c66ec88fSEmmanuel Vadot	reg = <0x48>;
27*c66ec88fSEmmanuel Vadot	clocks = <&codec_mclk 0>;
28*c66ec88fSEmmanuel Vadot	clock-names = "mclk";
29*c66ec88fSEmmanuel Vadot	VA-supply = <&reg_audio>;
30*c66ec88fSEmmanuel Vadot	VD-supply = <&reg_audio>;
31*c66ec88fSEmmanuel Vadot	VLS-supply = <&reg_audio>;
32*c66ec88fSEmmanuel Vadot	VLC-supply = <&reg_audio>;
33*c66ec88fSEmmanuel Vadot	reset-gpios = <&pca9557_b 1 GPIO_ACTIVE_LOW>;
34*c66ec88fSEmmanuel Vadot};
35