Hello Everyone,
I'm using a custom board with AM3352 processor and have 2 UARTs that are required for my application. UART0 is setup as default for console and debug purposes. UART1 is required to be a RS485 interface with custom hardware connected on this bus.
I would like to write a device driver that builds on top of the existing omap-serial.c driver for the UART to handle the custom hardware. To do this, I'd like to take the approach that other drivers have taken with I2C (eg: SHT21), where they use the built-in functions to send and receive data over a given i2c bus.
How can I do this for a UART and also set it up as a RS485 port? Is there any documentation that I can read or examples that I can use to understand the setup procedure.
Any help is much appreciated.
Thank you
Regards
Santhosh