forked from Minki/linux
defcd98b16
In addtion expand the table to handle other values of sysclk. Instead of making the table 3D, expand it to a more descriptive struct. The divisors are specified in Table 19 of the 98090 data sheet version 0p94. The dmic frequency was previously assumed. Instead make it explicit and configurable through device tree. This now handles independently set pclk and dmic frequency. Based on downstream work by Ralph Birt. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
52 lines
768 B
Plaintext
52 lines
768 B
Plaintext
MAX98090 audio CODEC
|
|
|
|
This device supports I2C only.
|
|
|
|
Required properties:
|
|
|
|
- compatible : "maxim,max98090" or "maxim,max98091".
|
|
|
|
- reg : The I2C address of the device.
|
|
|
|
- interrupts : The CODEC's interrupt output.
|
|
|
|
Optional properties:
|
|
|
|
- clocks: The phandle of the master clock to the CODEC
|
|
|
|
- clock-names: Should be "mclk"
|
|
|
|
- maxim,dmic-freq: Frequency at which to clock DMIC
|
|
|
|
Pins on the device (for linking into audio routes):
|
|
|
|
* MIC1
|
|
* MIC2
|
|
* DMICL
|
|
* DMICR
|
|
* IN1
|
|
* IN2
|
|
* IN3
|
|
* IN4
|
|
* IN5
|
|
* IN6
|
|
* IN12
|
|
* IN34
|
|
* IN56
|
|
* HPL
|
|
* HPR
|
|
* SPKL
|
|
* SPKR
|
|
* RCVL
|
|
* RCVR
|
|
* MICBIAS
|
|
|
|
Example:
|
|
|
|
audio-codec@10 {
|
|
compatible = "maxim,max98090";
|
|
reg = <0x10>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
|
|
};
|