I\'m working on Linux Kernel 4.9.13 build with Buildroot for an embedded device. I want to detect if my ttyS0 to ttyS3 is mapped with a rs232 or a rs422 serial line from a b