From: Cory Keitz Subject: [PATCH 0/2] i2c: qcom-cci: Add DT property for SCL clock stretching Date: Thu, 05 Mar 2026 14:40:11 +0000 Message-Id: <20260305-cci-scl-stretch-v1-0-8412abc65745@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMuVqWkC/x3MwQpAQBCA4VfRnE2NtZa8ihw0BlNCO5KSd7c5f of/f8Akqhi02QNRLjXdt4Qiz4CXYZsFdUwGRy5QSR6ZFY1XtDPKyQuKIwoUmsrXAVJ1RJn0/o9 d/74fBwln8WEAAAA= X-Change-ID: 20260304-cci-scl-stretch-e20060685476 To: Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Cory Keitz X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772721621; l=1527; i=ckeitz@amazon.com; s=20260304; h=from:subject:message-id; bh=T44TqUGQHAS6MoU9t8A/e6FFFdz/hXwGMdo23WQE5fA=; b=4cdbvmbs5JF2fGM4AsVaLsAJwz7x/99K89vsMzMIBe3uzJLDnKpaYrQM2WjRjawcAxknCZsS1 T2VRxY6sYVBBQFvuZfouUC7BVpFz1zDInb9UXjMXYFOy4cTbCkpErUW X-Developer-Key: i=ckeitz@amazon.com; a=ed25519; pk=IWSPbPI9mzOdPU5zG2ROe/O75E4ckVxuBLNJVYVZCag= X-Endpoint-Received: by B4 Relay for ckeitz@amazon.com/20260304 with auth_id=662 List-Id: B4 Relay Submissions The Qualcomm CCI I2C controller has an SCL clock stretch enable bit in the MISC_CTL register. Currently the driver hardcodes this off in per-SoC hw_params tables, with no way to enable it from the device tree on a per-master basis. Clock stretching is required for GMSL configurations where the deserializer uses it to absorb the latency imposed by forwarding I2C transactions across the serial link. Without it, the CCI master exhibits intermittent transaction failure. This series adds a "qcom,scl-stretch-enable" boolean DT property to individual CCI i2c-bus sub-nodes. The property ORs with the existing hw_params default so it is purely additive and does not affect masters that do not set it. Tested on sa8775p using the qcom,sm8250-cci compatible string with two CCI buses connected to one max96724/max96717 GMSL2 pair each. Enabling this property eliminated intermittent NACK errors during serializer and/or deserializer probe. Signed-off-by: Cory Keitz --- Cory Keitz (2): dt-bindings: i2c: qcom-cci: Document qcom,scl-stretch-enable property i2c: qcom-cci: Add DT property for SCL clock stretching Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 8 ++++++++ drivers/i2c/busses/i2c-qcom-cci.c | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) --- base-commit: ecc64d2dc9ff9738d2a896beb68e02c2feaf9a02 change-id: 20260304-cci-scl-stretch-e20060685476 Best regards, -- Cory Keitz