Other Parts Discussed in Thread: TLV320AIC3120
We are using TLV320AIC3120EVM-U connected to SDTM32MP135-DK.
Only the speaker is connected to LV320AIC3120EVM-U, no microphone is used.
The connections are below:
We have the following error:
The sound card does not find the MCLK1 and the clock are not enabled.
The device tree is below:
sound: sound {
compatible = "audio-graph-card";
label = "STM32MP135F-DK";
routing = "Playback", "MCLK1";
dais = <&sai1a_port>;
status = "okay";
};
&i2c1{
tlv320aic31xx: tlv320aic31xx@18 {
compatible = "ti,tlv320aic3120";
reg = <0x18>;
ai31xx-micbias-vg = <MICBIAS_2_5V>;
reset-gpios = <&gpioe 5 GPIO_ACTIVE_LOW>;
HPVDD-supply = <&scmi_vdd>;
SPRVDD-supply = <&scmi_vdd>;
SPLVDD-supply = <&scmi_vdd>;
AVDD-supply = <&scmi_vdd>;
IOVDD-supply = <&scmi_vdd>;
DVDD-supply = <&scmi_v1v8_periph>;
clocks = <&sai1a>;
clock-names = "MCLK1";
ports {
#address-cells = <1>;
#size-cells = <0>;
tlv320aic31xx_tx_port: port@0 {
reg = <0>;
tlv320aic31xx_tx_endpoint: endpoint {
remote-endpoint = <&sai1a_endpoint>;
};
};
};
};
};
&sai1{
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sai1a_pins_mx>;
pinctrl-1 = <&sai1a_sleep_pins_mx>;
status = "okay";
/* USER CODE BEGIN sai1 */
clocks = <&rcc SAI1>, <&scmi_clk CK_SCMI_PLL3_Q>, <&scmi_clk CK_SCMI_PLL3_R>;
clock-names = "pclk", "x8k", "x11k";
/* USER CODE END sai1 */
sai1a:audio-controller@4400a004{
status = "okay";
/* USER CODE BEGIN sai1a */
compatible = "st,stm32-sai-sub-a";
#clock-cells = <0>;
dma-names = "tx";
clocks = <&rcc SAI1_K>;
clock-names = "sai_ck";
sai1a_port: port {
sai1a_endpoint: endpoint {
remote-endpoint = <&tlv320aic31xx_tx_endpoint>;
format = "i2s";
mclk-fs = <512>;
};
};
/* USER CODE END sai1a */
};
};
To create the device tree we use as reference the page: SAI device tree configuration - stm32mpu, "3.3.1 Setting SAI as a master clock provide"
How can we solve this problem? Do you suggest to change the device tree or the HW connections?
Regards