diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2023-01-18 22:55:12 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-01-23 23:18:54 +0100 |
commit | 8786b095df02c1b881643146869a7d6f80411e6a (patch) | |
tree | 541f37aca6742f571b6bb44098818675c916d984 /drivers/i2c/busses/i2c-designware-slave.c | |
parent | i2c: algo: bit: allow getsda to be NULL (diff) | |
download | linux-8786b095df02c1b881643146869a7d6f80411e6a.tar.xz linux-8786b095df02c1b881643146869a7d6f80411e6a.zip |
i2c: gpio: support write-only sda/scl w/o pull-up
There are slave devices that understand I2C but have read-only SDA and
SCL. Examples are FD650 7-segment LED controller and its derivatives.
Typical board designs don't even have a pull-up for both pins.
Handle the new attributes for write-only SDA and missing pull-up on
SDA/SCL.
For either pin the open-drain and has-no-pullup properties are
mutually-exclusive, what is documented in the DT property documentation.
We don't add an extra warning here because the open-drain properties
are marked deprecated anyway.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
[wsa: switched to device properties]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-slave.c')
0 files changed, 0 insertions, 0 deletions