Message ID | 20200804095926.205643-2-codrin.ciubotariu@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | i2c: core: add generic GPIO bus recovery | expand |
On Tue, Aug 04, 2020 at 12:59:23PM +0300, Codrin Ciubotariu wrote: > The I2C GPIO bus recovery properties consist of two GPIOS and one extra > pinctrl state ("gpio" or "recovery"). "recovery" pinctrl state is > considered deprecated and "gpio" should be used instead. > Not all are mandatory for recovery. > > Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Kept the alphabetical sorting, added a space before '(', took the liberty to add Rob's review from last version (no significant change IMO) and applied to for-next, thanks!
diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt index 438ae123107e..150a67da633d 100644 --- a/Documentation/devicetree/bindings/i2c/i2c.txt +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -77,6 +77,16 @@ wants to support one of the below features, it should adapt these bindings. this information to detect a stalled bus more reliably, for example. Can not be combined with 'multi-master'. +- scl-gpios + specify the gpio related to SCL pin. Used for GPIO bus recovery. + +- sda-gpios + specify the gpio related to SDA pin. Optional for GPIO bus recovery. + +- pinctrl + add extra pinctrl to configure SCL/SDA pins to GPIO function for bus + recovery, call it "gpio" or "recovery"(deprecated) state + Required properties (per child device) --------------------------------------
The I2C GPIO bus recovery properties consist of two GPIOS and one extra pinctrl state ("gpio" or "recovery"). "recovery" pinctrl state is considered deprecated and "gpio" should be used instead. Not all are mandatory for recovery. Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> --- Changes from RFC: - "recovery" pinctrl state marked as deprecated; updated description to reflect this; Documentation/devicetree/bindings/i2c/i2c.txt | 10 ++++++++++ 1 file changed, 10 insertions(+)