Pin MODE for peripherals not set correctly in device tree output file produced by CubeMx
Pin MODE for peripherals are set incorrectly with RSVD instead of correct alternate function definition (AF13).
When building uboot it failed because pin Mode "RSVD" is incorrectly defined.
e.g code from device tree
m4_dcmi_pins_mx: m4_dcmi_mx-0 {
pins {
pinmux = <STM32_PINMUX('A', 6, RSVD)>, /* DCMI_PIXCLK */
<STM32_PINMUX('E', 0, RSVD)>, /* DCMI_D2 */
<STM32_PINMUX('E', 1, RSVD)>, /* DCMI_D3 */
<STM32_PINMUX('F', 11, RSVD)>, /* DCMI_D12 */
<STM32_PINMUX('H', 8, RSVD)>, /* DCMI_HSYNC */
<STM32_PINMUX('H', 9, RSVD)>, /* DCMI_D0 */
<STM32_PINMUX('H', 10, RSVD)>, /* DCMI_D1 */
<STM32_PINMUX('H', 14, RSVD)>, /* DCMI_D4 */
<STM32_PINMUX('H', 15, RSVD)>, /* DCMI_D11 */
<STM32_PINMUX('I', 0, RSVD)>, /* DCMI_D13 */
<STM32_PINMUX('I', 1, RSVD)>, /* DCMI_D8 */
<STM32_PINMUX('I', 2, RSVD)>, /* DCMI_D9 */
<STM32_PINMUX('I', 3, RSVD)>, /* DCMI_D10 */
<STM32_PINMUX('I', 4, RSVD)>, /* DCMI_D5 */
<STM32_PINMUX('I', 5, RSVD)>, /* DCMI_VSYNC */
<STM32_PINMUX('I', 6, RSVD)>, /* DCMI_D6 */
<STM32_PINMUX('I', 7, RSVD)>; /* DCMI_D7 */
};
};
m4_i2c2_pins_mx: m4_i2c2_mx-0 {
pins {
pinmux = <STM32_PINMUX('H', 4, RSVD)>, /* I2C2_SCL */
<STM32_PINMUX('H', 5, RSVD)>; /* I2C2_SDA */
};
};
When checked in CubeMx configuration is correctly set (including GPIO mode), and also in the "pinout view" pins are set with correct Alternate function.
I am using CubeMX version 6.0.1, and working on SM32MP157cac project.
Question is why CubeMx is outputing RSVD instead of AF13 for pin mode?
