]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: i2c: snps,designware-i2c: declare bus capacitance and clk freq optimized
authorMichael Wu <michael.wu@kneron.us>
Thu, 3 Oct 2024 11:15:23 +0000 (19:15 +0800)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 24 Nov 2024 15:03:51 +0000 (16:03 +0100)
commitbbc89a6e837f291e7ad04cea50915c71110e781a
tree1f94786d63d03a3e3d71ce1b4ee02662f766e167
parent4fb1b640d68dba271e6b580582ac5c1381c6157a
dt-bindings: i2c: snps,designware-i2c: declare bus capacitance and clk freq optimized

Since there are no registers controlling the hardware parameters
IC_CAP_LOADING and IC_CLK_FREQ_OPTIMIZATION, their values can only be
declared in the device tree.

snps,bus-capacitance-pf indicates the bus capacitance in picofarads (pF).
It affects the high and low pulse width of SCL line in high speed mode.
The legal values for this property are 100 and 400 only, and default
value is 100. This property corresponds to IC_CAP_LOADING.

snps,clk-freq-optimized indicates whether the hardware reduce its
internal clock frequency by reducing the internal latency required to
generate the high period and low period of SCL line. This property
corresponds to IC_CLK_FREQ_OPTIMIZATION.

The driver can calculate the high period count and low period count of
SCL line for high speed mode based on these two properties.

Signed-off-by: Michael Wu <michael.wu@kneron.us>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml