xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/max98357a.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMaxim MAX98357A/MAX98360A audio DAC
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis node models the Maxim MAX98357A/MAX98360A DAC.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired properties:
6*4882a593Smuzhiyun- compatible   : "maxim,max98357a" for MAX98357A.
7*4882a593Smuzhiyun                 "maxim,max98360a" for MAX98360A.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun- sdmode-gpios : GPIO specifier for the chip's SD_MODE pin.
11*4882a593Smuzhiyun        If this option is not specified then driver does not manage
12*4882a593Smuzhiyun        the pin state (e.g. chip is always on).
13*4882a593Smuzhiyun- sdmode-delay : specify delay time for SD_MODE pin.
14*4882a593Smuzhiyun        If this option is specified, which means it's required i2s clocks
15*4882a593Smuzhiyun        ready before SD_MODE is unmuted in order to avoid the speaker pop noise.
16*4882a593Smuzhiyun        It's observed that 5ms is sufficient.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunmax98357a {
21*4882a593Smuzhiyun	compatible = "maxim,max98357a";
22*4882a593Smuzhiyun	sdmode-gpios = <&qcom_pinmux 25 0>;
23*4882a593Smuzhiyun};
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunmax98360a {
26*4882a593Smuzhiyun	compatible = "maxim,max98360a";
27*4882a593Smuzhiyun	sdmode-gpios = <&qcom_pinmux 25 0>;
28*4882a593Smuzhiyun};
29