Skip to contentSkip to conversation

dt-bindings: i2c: Add device clock-stretch time via dts

PATCH In review [email protected] 2 participants 3 messages Mar 13, 2021 – Mar 26, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: i2c: Add device clock-stretch time via dts

From: Qii Wang <[email protected]>

tSU,STA/tHD,STA/tSU,STOP maybe out of spec due to device clock-stretching or circuit loss, we could get device clock-stretch time from dts to adjust these parameters to meet the spec via EXT_CONF register.

---
 Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +1 -0
index 7f0194f..97f66f0 100644
@@ -32,6 +32,7 @@ Optional properties:
   - mediatek,have-pmic: platform can control i2c form special pmic side.
     Only mt6589 and mt8135 support this feature.
   - mediatek,use-push-pull: IO config use push-pull mode.
+  - clock-stretch-ns: Slave device clock-stretch time.
 
 Example:
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 17 lines · On Sat, Mar 13, 2021 at 04:07:09PM +0800, [email protected] wrote:

From: Qii Wang <[email protected]>

tSU,STA/tHD,STA/tSU,STOP maybe out of spec due to device clock-stretching or circuit loss, we could get device clock-stretch time from dts to adjust these parameters to meet the spec via EXT_CONF register.

---
 Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +0 -0
index 7f0194f..97f66f0 100644

Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt Optional properties: · line 35

Quoted 4 lines
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +1 -0
@@ -32,6 +32,7 @@ Optional properties:
   - mediatek,have-pmic: platform can control i2c form special pmic side.
     Only mt6589 and mt8135 support this feature.
   - mediatek,use-push-pull: IO config use push-pull mode.
+  - clock-stretch-ns: Slave device clock-stretch time.

Should be a common I2C property?

Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +0 -0
 Example:
 
Signature · 1 line
1.9.1

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

author
#2 lore raw
Quoted 13 lines · Rob Herring
Quoted 12 lines · On Sat, Mar 13, 2021 at 04:07:09PM +0800, [email protected] wrote:

From: Qii Wang <[email protected]>

tSU,STA/tHD,STA/tSU,STOP maybe out of spec due to device clock-stretching or circuit loss, we could get device clock-stretch time from dts to adjust these parameters to meet the spec via EXT_CONF register.

---
 Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt Optional properties: · line 35

Quoted 9 lines
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +1 -0
index 7f0194f..97f66f0 100644
@@ -32,6 +32,7 @@ Optional properties:
   - mediatek,have-pmic: platform can control i2c form special pmic side.
     Only mt6589 and mt8135 support this feature.
   - mediatek,use-push-pull: IO config use push-pull mode.
+  - clock-stretch-ns: Slave device clock-stretch time.

Should be a common I2C property?

Wolfram Sang will look at this next and think about it. I hope it would be a common I2C property.

Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt +0 -0
 Example:
 
Signature · 1 line
1.9.1

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek