spi-sc18is602.rst 1.3 KB

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