mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
eaae2ea735
The driver is used for Rockchip rk3288-based boards using a configurable analog output (can be an headphone) and the built-in HDMI audio output that is part of the RK3288 SoCs and use the Alsa HDMI codec driver. For some rk3288-based boards the analog output and the hdmi audio are plugged on the same i2s line, so we have to do the same in the driver by using a DAI link CPU to multicodecs. This configuration can be found for example on the Radxa Rock2 or the Firefly-RK3288. This commit is based on the initial work that was done by Sjoerd Simons <sjoerd.simons@collabora.com> with some improvements. Signed-off-by: Romain Perier <romain.perier@collabora.com> Signed-off-by: Mark Brown <broonie@kernel.org>
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
ROCKCHIP RK3288 with HDMI and analog audio
|
|
|
|
Required properties:
|
|
- compatible: "rockchip,rk3288-hdmi-analog"
|
|
- rockchip,model: The user-visible name of this sound complex
|
|
- rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's
|
|
connected to the CODEC
|
|
- rockchip,audio-codec: The phandle of the analog audio codec.
|
|
- rockchip,routing: A list of the connections between audio components.
|
|
Each entry is a pair of strings, the first being the
|
|
connection's sink, the second being the connection's
|
|
source. For this driver the first string should always be
|
|
"Analog".
|
|
|
|
Optionnal properties:
|
|
- rockchip,hp-en-gpios = The phandle of the GPIO that power up/down the
|
|
headphone (when the analog output is an headphone).
|
|
- rockchip,hp-det-gpios = The phandle of the GPIO that detects the headphone
|
|
(when the analog output is an headphone).
|
|
- pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
|
|
|
|
Example:
|
|
|
|
sound {
|
|
compatible = "rockchip,rockchip-audio-es8388";
|
|
rockchip,model = "Analog audio output";
|
|
rockchip,i2s-controller = <&i2s>;
|
|
rockchip,audio-codec = <&es8388>;
|
|
rockchip,routing = "Analog", "LOUT2",
|
|
"Analog", "ROUT2";
|
|
rockchip,hp-en-gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
|
|
rockchip,hp-det-gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&headphone>;
|
|
};
|
|
|