STM32MP1 UART custom baud rates (Linux)
Apparently it is not possible to set a custom baud rates for UARTs on the STM32MP1.
ioctl TIOCSSERIAL fails. With a USB UART dongle that supports custom baud rates this works. Is there a something that can be changed in the device tree or config to enable custom baud rate support on the STM32MP1 U(S)ARTS ? The base rate seems 4MHz so that should be sufficient for several custom baud rates. Looked at stm32-usart.c but did not find supporting code. Custom baud rate is crucial as the serial device connected must be used with a non standard baud rate.
Edit: after looking at stm32-uart.c it seems it is not supporting ioctl. Adding this support looks to be pretty straightforward by adding the ioctl call and the 2 or 3 needed functions to set and get the user info together with the magic baudrate hack. The driver seems to use uart structure instead of the tty structures so I did not get far changing the driver.. A developer familiar with the driver probably could do this in a day. If STM could reply this post with a beta version of such stm32-uart.c that would be great to be able to move forward.
Edit : Since no reply from ST, have no other option and have started to change the driver myself to add the ioctcl's... and related code.
