Skip to content

Commit 81d4c53

Browse files
akhilr-nvWolfram Sang
authored andcommitted
i2c: tegra: Update Tegra256 timing parameters
Update the timing parameters of Tegra256 so that the signals are complaint with the I2C specification for SCL low time. Signed-off-by: Akhil R <akhilrajeev@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 8b80b61 commit 81d4c53

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

drivers/i2c/busses/i2c-tegra.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ static const struct tegra_i2c_hw_feature tegra256_i2c_hw = {
16841684
.clk_divisor_hs_mode = 7,
16851685
.clk_divisor_std_mode = 0x7a,
16861686
.clk_divisor_fast_mode = 0x40,
1687-
.clk_divisor_fast_plus_mode = 0x19,
1687+
.clk_divisor_fast_plus_mode = 0x14,
16881688
.has_config_load_reg = true,
16891689
.has_multi_master_mode = true,
16901690
.has_slcg_override_reg = true,
@@ -1695,14 +1695,13 @@ static const struct tegra_i2c_hw_feature tegra256_i2c_hw = {
16951695
.has_apb_dma = false,
16961696
.tlow_std_mode = 0x8,
16971697
.thigh_std_mode = 0x7,
1698-
.tlow_fast_mode = 0x3,
1699-
.thigh_fast_mode = 0x3,
1700-
.tlow_fastplus_mode = 0x3,
1701-
.thigh_fastplus_mode = 0x3,
1698+
.tlow_fast_mode = 0x4,
1699+
.thigh_fast_mode = 0x2,
1700+
.tlow_fastplus_mode = 0x4,
1701+
.thigh_fastplus_mode = 0x4,
17021702
.setup_hold_time_std_mode = 0x08080808,
1703-
.setup_hold_time_fast_mode = 0x02020202,
1704-
.setup_hold_time_fastplus_mode = 0x02020202,
1705-
.setup_hold_time_hs_mode = 0x090909,
1703+
.setup_hold_time_fast_mode = 0x04010101,
1704+
.setup_hold_time_fastplus_mode = 0x04020202,
17061705
.has_interface_timing_reg = true,
17071706
};
17081707

0 commit comments

Comments
 (0)