Commit fab54649 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Lee Jones

dt-bindings: mfd: motorola-cpcap: Document audio-codec

This adds the DT binding for the audio-codec sub-module found
inside the Motorola CPCAP PMIC.
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent eef2b53a
...@@ -12,6 +12,30 @@ Required properties: ...@@ -12,6 +12,30 @@ Required properties:
- spi-max-frequency : Typically set to 3000000 - spi-max-frequency : Typically set to 3000000
- spi-cs-high : SPI chip select direction - spi-cs-high : SPI chip select direction
Optional subnodes:
The sub-functions of CPCAP get their own node with their own compatible values,
which are described in the following files:
- ../power/supply/cpcap-battery.txt
- ../power/supply/cpcap-charger.txt
- ../regulator/cpcap-regulator.txt
- ../phy/phy-cpcap-usb.txt
- ../input/cpcap-pwrbutton.txt
- ../rtc/cpcap-rtc.txt
- ../leds/leds-cpcap.txt
- ../iio/adc/cpcap-adc.txt
The only exception is the audio codec. Instead of a compatible value its
node must be named "audio-codec".
Required properties for the audio-codec subnode:
- #sound-dai-cells = <1>;
The audio-codec provides two DAIs. The first one is connected to the
Stereo HiFi DAC and the second one is connected to the Voice DAC.
Example: Example:
&mcspi1 { &mcspi1 {
...@@ -26,6 +50,24 @@ Example: ...@@ -26,6 +50,24 @@ Example:
#size-cells = <0>; #size-cells = <0>;
spi-max-frequency = <3000000>; spi-max-frequency = <3000000>;
spi-cs-high; spi-cs-high;
audio-codec {
#sound-dai-cells = <1>;
/* HiFi */
port@0 {
endpoint {
remote-endpoint = <&cpu_dai1>;
};
};
/* Voice */
port@1 {
endpoint {
remote-endpoint = <&cpu_dai2>;
};
};
};
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment