2023-03-21 05:34 AM
I am trying to use the 40 pin GPIO, namely pin 48 and pin 40 which are PF11 and PI6. PI6 is assigned to sai2. I've disabled sai2. However, the DTB will not compile because there is still a reference to the sai2 pins here:
sound:sound{
compatible = "audio-graph-card";
label = "STM32MP15-DK";
routing = "Playback", "MCLK",
"Capture", "MCLK",
"MICL", "Mic Bias";
dais = <&sai2a_port &sai2b_port &i2s2_port>;
status = "okay";
};
I've tried removing I2S2, which in turn removes SPI2. But the section still exists.
What do I need to do to have this section not generated from CubeMX?
2023-03-21 05:48 AM
So, this is actually in the "USER CODE" area. Removing it manually did not solve build issue.
In another area of the file there is a sound hardware reference, the cs42151, under i2c. This has an sai2 clock reference. Removing that section allowed the build to complete.