[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260114141352.103425-3-jie.i.li@nokia.com>
Date: Wed, 14 Jan 2026 15:13:52 +0100
From: Jie Li <lj29312931@...il.com>
To: wsa@...nel.org
Cc: linux-i2c@...r.kernel.org,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
devicetree@...r.kernel.org,
linus.walleij@...aro.org,
linux-kernel@...r.kernel.org,
Jie Li <jie.i.li@...ia.com>
Subject: [PATCH v1 2/2] dt-bindings: i2c: add force-set-sda property
Document the new "force-set-sda" optional property.
This property is used for hardware where the SDA line is open-drain
but the standard driver-level check (like gpiod_get_direction) might
not correctly reflect the ability to drive the line for bus recovery.
Signed-off-by: Jie Li <jie.i.li@...ia.com>
---
Documentation/devicetree/bindings/i2c/i2c-gpio.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml b/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
index afd4925c2a7d..82713fcf87e4 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
+++ b/Documentation/devicetree/bindings/i2c/i2c-gpio.yaml
@@ -37,6 +37,13 @@ properties:
description: sda as output only
type: boolean
+ force-set-sda:
+ type: boolean
+ description:
+ Force the use of the SDA output toggle during I2C bus recovery.
+ This is needed for some hardware where the SDA pin is open-drain
+ but the GPIO subsystem cannot automatically detect its output capability.
+
i2c-gpio,scl-output-only:
description: scl as output only
type: boolean
--
2.43.0
Powered by blists - more mailing lists