Documentation/spi/spi-sc18is602

Chinese translated version of Documentation/spi/spi-sc18is602
 
If you have any comment or update to the content, please contact the
original document maintainer directly.  However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help.  Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.

Chinese maintainer: 马煜晨  380319072@qq.com
---------------------------------------------------------------------
Documentation/spi/spi-sc18is602 的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者: 马煜晨  380319072@qq.com
中文版翻译者: 马煜晨  380319072@qq.com
中文版校译者: 马煜晨  380319072@qq.com
 

以下为正文
---------------------------------------------------------------------

Kernel driver spi-sc18is602
===========================
内核驱动spi-sc18is602

Supported chips:
  * NXP SI18IS602/602B/603
    Datasheet: http://www.nxp.com/documents/data_sheet/SC18IS602_602B_603.pdf

Author:
        Guenter Roeck <linux@roeck-us.net>

支持芯片:
* NXP SI18IS602/602B/603
 数据: http://www.nxp.com/documents/data_sheet/SC18IS602_602B_603.pdf
作者:
        Guenter Roeck <linux@roeck-us.net>
 
Description
-----------

This driver provides connects a NXP SC18IS602/603 I2C-bus to SPI bridge to the
kernel's SPI core subsystem.

The driver does not probe for supported chips, since the SI18IS602/603 does not
support Chip ID registers. You will have to instantiate the devices explicitly.
Please see Documentation/i2c/instantiating-devices for details.

描述
-----
此驱动提供连接NXP SC18IS602/603 I2C-bus和SPI到SPI的核心子系统。
此驱动不支持芯片探测,因此SI18IS602/603不支持芯片ID寄存器。你不得不明确化设备。
细节请参阅Documentation/i2c/instantiating-devices

Usage Notes
-----------

This driver requires the I2C adapter driver to support raw I2C messages. I2C
adapter drivers which can only handle the SMBus protocol are not supported.

The maximum SPI message size supported by SC18IS602/603 is 200 bytes. Attempts
to initiate longer transfers will fail with -EINVAL. EEPROM read operations and
similar large accesses have to be split into multiple chunks of no more than
200 bytes per SPI message (128 bytes of data per message is recommended). This
means that programs such as "cp" or "od", which automatically use large block
sizes to access a device, can not be used directly to read data from EEPROM.
Programs such as dd, where the block size can be specified, should be used
instead.

使用注意事项
-----------
此驱动要求I2C适配器驱动支持原始的I2C消息。只能处理SMBus协议的I2C适配器驱动不
被支持。
SC18IS602/603支持的最大SPI消息是200字节。用-EINVAL尝试启动更长的传输将失败。
EEPROM的读操作和相同大小的访问不得不分成不超过很多200字节SPI消息(建议每封邮件
含128字节的数据)。这意味着如“CP”或“OD”的程序,它会自动使用大数据块大小来访问
设备,不能用于从EEPROM直接读数据。如块大小可以被指定的程序dd,应该被替换掉。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值