Javier Vela Posted March 15, 2022 Posted March 15, 2022 I have attached sc16is740 to the I2C port of BPI. sc16is740 is a device that lets me work with i2c like a uart. The device is detected with the comand: sudo i2cdetect -y 0 nº48 00: – -- – -- – -- – -- – -- – -- – 10: – -- – -- – -- – -- – -- – -- – -- – -- 20: – -- – -- – -- – -- – -- – -- – -- – -- 30: – -- – -- – -- – -- – -- – -- – -- – -- 40: 40 – -- – -- – -- – 48 – -- – -- – -- – 50: – -- – -- – -- – -- – -- – -- – -- – -- 60: – -- – -- – -- – -- – -- – -- – -- – -- 70: 70 – -- – -- – -- – Then I have load the driver with: sudo modprobe sc16is7xx 0x48 Using: sudo modprobe sc16is7xx I see the module sc16is7xx loaded using: sudo lsmod However, the system does not created a new interface like ttySC0 and I do not know how to tell the driver which IRQ Pin should use. I have tested also: sudo modprobe i2c:sc16is740 int_pin=4 addr=0x48 Then, I have added the module to: /etc/modules-load.d/module_name.conf I am missing some steps. Could someone help to load this driver? PSD: I have try also to load this driver in an Radxa Zero. Same result Thanks
Javier Vela Posted March 18, 2022 Author Posted March 18, 2022 sudo cat /proc/tty/drivers /dev/tty /dev/tty 5 0 system:/dev/tty /dev/console /dev/console 5 1 system:console dev/ptmx /dev/ptmx 5 2 system /dev/vc/0 /dev/vc/0 4 0 system:vtmaster usbserial /dev/ttyUSB 188 0-511 serial g_serial /dev/ttyGS 242 0-7 serial unknown /dev/ttySC 243 0-7 serial serial /dev/ttyS 4 64-71 serial pty_slave /dev/pts 136 0-1048575 pty:slave pty_master /dev/ptm 128 0-1048575 pty:master unknown /dev/tty 4 1-63 console
Recommended Posts