Skip to content
Snippets Groups Projects
Commit 560a76a3 authored by Marc-Oliver Westerburg's avatar Marc-Oliver Westerburg
Browse files

imx8mp d18/levy: add support for TAS2505 audio-codec on ModularVision

This patch adds the necessary device-tree settings for the ModularVision
carrier board to support the TAS2505 audio-codec.

Note: Also requires CONFIG_SND_SOC_TLV320AIC32X4_I2C to be enabled in
kernel defconfig (the tlva320aic32x4 driver also provides support for
the TAS2505 codec).
parent ce8ad0b4
No related branches found
No related tags found
2 merge requests!455CI: Update gitlab-ci,!451imx8mp d18/levy: add support for TAS2505 audio-codec on ModularVision
Pipeline #105329 passed with stage
in 7 seconds
......@@ -3,46 +3,53 @@
*/
/ {
/* Expect that &sai2 and &sdma2 are active in base devicetree */
sound: tas2505 {
compatible = "simple-audio-card";
simple-audio-card,name = "tas2505-audio";
simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&cpudai>;
reg_audio: regulator-soc-audio {
compatible = "regulator-fixed";
regulator-name = "tas2505_supply";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "tlv-audio";
simple-audio-card,frame-master = <&cpudai>;
simple-audio-card,bitclock-master = <&cpudai>;
cpudai: simple-audio-card,cpu {
sound-dai = <&sai2>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
sound-dai = <&sai2>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
simple-audio-card,codec {
sound-dai = <&tas2505>;
clocks = <&clk IMX8MP_CLK_SAI2_ROOT>;
sound-dai = <&tlvcodec 0>;
};
};
};
&sai2 {
assigned-clocks = <&clk IMX8MP_CLK_SAI2>;
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
assigned-clock-rates = <22579200>;
status = "okay";
};
&i2c5 {
/*
* @TODO: We don't have a working driver for the tas2505 yet.
* Enable the correct configuration when a working driver
* was added.
*/
tas2505: tas2505@18 {
tlvcodec: tas2505@18 {
#sound-dai-cells = <0>;
status = "okay";
compatible = "ti,tas2505";
reg = <0x18>;
/*
vbat-supply = <&reg_board_5v>;
iovdd-supply = <&buck4_reg>;
avdd-supply = <&buck5_reg>;
enable-gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audio_enable>;
*/
ldoin-supply = <&reg_audio>;
iov-supply = <&reg_audio>;
av-supply = <&reg_audio>;
dv-supply = <&reg_audio>;
clocks = <&clk IMX8MP_CLK_SAI2_ROOT>;
clock-names = "mclk";
route-on-lineout;
};
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment