2022-06-28 02:26 AM
Hi, Is there any way to give a more meaningful name to a serial port with the device tree, so that is shows up in the linux kernel?
Right now, in a device tree, it is possible to choose an alias in the alias node. But they do show up as ttySTMx in the /dev directory.
Is there a way to make it work so that it gets a more intutive name like rs232?
/ {
aliases {
serial1 = &usart1;
};
}; /*root*/
// Instead
/ {
aliases {
rs232 = &usart1;
};
}; /*root*/
Solved! Go to Solution.
2022-07-10 10:27 PM
Hi @JOhn ,
Serial name presented by the SoC is defined in the serial driver source code :
drivers/tty/serial/stm32-usart.h:#define STM32_SERIAL_NAME "ttySTM"
Olivier
2022-07-10 10:27 PM
Hi @JOhn ,
Serial name presented by the SoC is defined in the serial driver source code :
drivers/tty/serial/stm32-usart.h:#define STM32_SERIAL_NAME "ttySTM"
Olivier