xref: /freebsd/sys/contrib/device-tree/Bindings/sound/wm8741.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotWM8741 audio CODEC
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis device supports both I2C and SPI (configured with pin strapping
4*c66ec88fSEmmanuel Vadoton the board).
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot  - compatible : "wlf,wm8741"
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel Vadot  - reg : the I2C address of the device for I2C, the chip select
11*c66ec88fSEmmanuel Vadot          number for SPI.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot  - diff-mode: Differential output mode configuration. Default value for field
16*c66ec88fSEmmanuel Vadot    DIFF in register R8 (MODE_CONTROL_2). If absent, the default is 0, shall be:
17*c66ec88fSEmmanuel Vadot    0 = stereo
18*c66ec88fSEmmanuel Vadot    1 = mono left
19*c66ec88fSEmmanuel Vadot    2 = stereo reversed
20*c66ec88fSEmmanuel Vadot    3 = mono right
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotExample:
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadotwm8741: codec@1a {
25*c66ec88fSEmmanuel Vadot	compatible = "wlf,wm8741";
26*c66ec88fSEmmanuel Vadot	reg = <0x1a>;
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot	diff-mode = <3>;
29*c66ec88fSEmmanuel Vadot};
30