xref: /openbmc/linux/Documentation/devicetree/bindings/sound/rt5660.txt (revision 0cce284537fb42d9c28b9b31038ffc9b464555f5)
1*2b26dd4cSOder ChiouRT5660 audio CODEC
2*2b26dd4cSOder Chiou
3*2b26dd4cSOder ChiouThis device supports I2C only.
4*2b26dd4cSOder Chiou
5*2b26dd4cSOder ChiouRequired properties:
6*2b26dd4cSOder Chiou
7*2b26dd4cSOder Chiou- compatible : "realtek,rt5660".
8*2b26dd4cSOder Chiou
9*2b26dd4cSOder Chiou- reg : The I2C address of the device.
10*2b26dd4cSOder Chiou
11*2b26dd4cSOder ChiouOptional properties:
12*2b26dd4cSOder Chiou
13*2b26dd4cSOder Chiou- clocks: The phandle of the master clock to the CODEC
14*2b26dd4cSOder Chiou- clock-names: Should be "mclk"
15*2b26dd4cSOder Chiou
16*2b26dd4cSOder Chiou- realtek,in1-differential
17*2b26dd4cSOder Chiou- realtek,in3-differential
18*2b26dd4cSOder Chiou  Boolean. Indicate MIC1/3 input are differential, rather than single-ended.
19*2b26dd4cSOder Chiou
20*2b26dd4cSOder Chiou- realtek,poweroff-in-suspend
21*2b26dd4cSOder Chiou  Boolean. If the codec will be powered off in suspend, the resume should be
22*2b26dd4cSOder Chiou  added delay time for waiting codec power ready.
23*2b26dd4cSOder Chiou
24*2b26dd4cSOder Chiou- realtek,dmic1-data-pin
25*2b26dd4cSOder Chiou  0: dmic1 is not used
26*2b26dd4cSOder Chiou  1: using GPIO2 pin as dmic1 data pin
27*2b26dd4cSOder Chiou  2: using IN1P pin as dmic1 data pin
28*2b26dd4cSOder Chiou
29*2b26dd4cSOder ChiouPins on the device (for linking into audio routes) for RT5660:
30*2b26dd4cSOder Chiou
31*2b26dd4cSOder Chiou  * DMIC L1
32*2b26dd4cSOder Chiou  * DMIC R1
33*2b26dd4cSOder Chiou  * IN1P
34*2b26dd4cSOder Chiou  * IN1N
35*2b26dd4cSOder Chiou  * IN2P
36*2b26dd4cSOder Chiou  * IN3P
37*2b26dd4cSOder Chiou  * IN3N
38*2b26dd4cSOder Chiou  * SPO
39*2b26dd4cSOder Chiou  * LOUTL
40*2b26dd4cSOder Chiou  * LOUTR
41*2b26dd4cSOder Chiou
42*2b26dd4cSOder ChiouExample:
43*2b26dd4cSOder Chiou
44*2b26dd4cSOder Chiourt5660 {
45*2b26dd4cSOder Chiou	compatible = "realtek,rt5660";
46*2b26dd4cSOder Chiou	reg = <0x1c>;
47*2b26dd4cSOder Chiou};
48