Mauro Carvalho Chehab | 9cdd273 | 2019-07-31 17:08:50 -0300 | [diff] [blame] | 1 | =========================== |
Guenter Roeck | 3ce8859 | 2012-08-18 09:06:27 -0700 | [diff] [blame] | 2 | Kernel driver spi-sc18is602 |
| 3 | =========================== |
| 4 | |
| 5 | Supported chips: |
Mauro Carvalho Chehab | 9cdd273 | 2019-07-31 17:08:50 -0300 | [diff] [blame] | 6 | |
Guenter Roeck | 3ce8859 | 2012-08-18 09:06:27 -0700 | [diff] [blame] | 7 | * NXP SI18IS602/602B/603 |
Mauro Carvalho Chehab | 9cdd273 | 2019-07-31 17:08:50 -0300 | [diff] [blame] | 8 | |
Alexander A. Klimov | 3ea4eac | 2020-07-08 21:44:00 +0200 | [diff] [blame] | 9 | Datasheet: https://www.nxp.com/documents/data_sheet/SC18IS602_602B_603.pdf |
Guenter Roeck | 3ce8859 | 2012-08-18 09:06:27 -0700 | [diff] [blame] | 10 | |
| 11 | Author: |
| 12 | Guenter Roeck <linux@roeck-us.net> |
| 13 | |
| 14 | |
| 15 | Description |
| 16 | ----------- |
| 17 | |
| 18 | This driver provides connects a NXP SC18IS602/603 I2C-bus to SPI bridge to the |
| 19 | kernel's SPI core subsystem. |
| 20 | |
| 21 | The driver does not probe for supported chips, since the SI18IS602/603 does not |
| 22 | support Chip ID registers. You will have to instantiate the devices explicitly. |
Mauro Carvalho Chehab | ccf988b | 2019-07-26 09:51:16 -0300 | [diff] [blame] | 23 | Please see Documentation/i2c/instantiating-devices.rst for details. |
Guenter Roeck | 3ce8859 | 2012-08-18 09:06:27 -0700 | [diff] [blame] | 24 | |
| 25 | |
| 26 | Usage Notes |
| 27 | ----------- |
| 28 | |
| 29 | This driver requires the I2C adapter driver to support raw I2C messages. I2C |
| 30 | adapter drivers which can only handle the SMBus protocol are not supported. |
| 31 | |
| 32 | The maximum SPI message size supported by SC18IS602/603 is 200 bytes. Attempts |
| 33 | to initiate longer transfers will fail with -EINVAL. EEPROM read operations and |
| 34 | similar large accesses have to be split into multiple chunks of no more than |
| 35 | 200 bytes per SPI message (128 bytes of data per message is recommended). This |
| 36 | means that programs such as "cp" or "od", which automatically use large block |
| 37 | sizes to access a device, can not be used directly to read data from EEPROM. |
| 38 | Programs such as dd, where the block size can be specified, should be used |
| 39 | instead. |