I understand it is PTS violation and no validation is done. In the given scenario the hardware is already done and therefore it is required to get the RTS changed to GPIO7.
I have been able to change the GPIO and verify the change in the new DTB. I request for the information on the Internal Qualcomm GPIO numbers for RTS and CTS. Preferred is if for both the UARTS the information is shared.
I understand that the change will be done at my risk but would like to change it and get the board working.
We can use it for RAW data transfer over UART and it works fine. But in the end application libmodbus is used which handles the DE signal using RTS for read and write over the serial port. you can have a look at the modus rtu code in modbus-rtu.c line 254 here:
#if HAVE_DECL_TIOCM_RTS
static void _modbus_rtu_ioctl_rts(modbus_t *ctx, int on)
{
int fd = ctx->s;
int flags;
What do you recommend Changing the modbus-rtu.c or the DTS?
If the modbus-rtu.c has to be changed can you let me know how it can be done for GPIO7 as generally the GPIO7 would be available from Legato Application with LE_GPIO services.
so do we need to connect to legato services from libmodbus?
OKay I will try this way as well. but for the interest to try and use GPIO7 as RTS or in Sierra Case CTS signal can you let me know the exact GPIO number to UART 2 RTS and CTS
BTW, if it is kernel driver, you can go to here to see (priority_test.rar) on how to control GPIO in kernel driver
According to gpiolib-sysfs.c in WP76 FW R13.3 yocto source, GPIO7 of WP76 module is connecting to GPIO_16 of qualcomm chipset internally.
So in case you use this in kernel driver layer, you need to use this number instead of GPIO7.
This is a user space so your suggestion to use sysfs may work. also as an alternate way can you let me know GPIO number for CTS/RTS signal for UART2 to verify if replacing the GPIO7 in the DTS works correctly ?
please let me know if the system() call (application layer) or the priority_test.rar (kernel driver layer) working on your side first.
As changing the DTS might have side effect or potential issue, this should be the last step