| /kernel/linux/linux-5.10/drivers/i2c/algos/ |
| D | i2c-algo-pca.c | 52 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.tlow); in pca_reset() 451 int tlow, thi; in pca_init() local 500 /* The minimum clock that respects the thi/tlow = 134/157 is in pca_init() 501 * 64800 Hz. Below that, we have to fix the tlow to 255 and in pca_init() 505 tlow = 255; in pca_init() 507 thi /= (I2C_PCA_OSC_PER * clock) - tlow; in pca_init() 509 tlow = (1000000 - clock * raise_fall_time) * min_tlow; in pca_init() 510 tlow /= I2C_PCA_OSC_PER * clock * (min_thi + min_tlow); in pca_init() 511 thi = tlow * min_thi / min_tlow; in pca_init() 516 pca_data->bus_settings.tlow = tlow; in pca_init()
|
| /kernel/linux/linux-4.19/drivers/i2c/algos/ |
| D | i2c-algo-pca.c | 61 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.tlow); in pca_reset() 460 int tlow, thi; in pca_init() local 509 /* The minimum clock that respects the thi/tlow = 134/157 is in pca_init() 510 * 64800 Hz. Below that, we have to fix the tlow to 255 and in pca_init() 514 tlow = 255; in pca_init() 516 thi /= (I2C_PCA_OSC_PER * clock) - tlow; in pca_init() 518 tlow = (1000000 - clock * raise_fall_time) * min_tlow; in pca_init() 519 tlow /= I2C_PCA_OSC_PER * clock * (min_thi + min_tlow); in pca_init() 520 thi = tlow * min_thi / min_tlow; in pca_init() 525 pca_data->bus_settings.tlow = tlow; in pca_init()
|
| /kernel/linux/linux-4.19/drivers/i2c/busses/ |
| D | i2c-designware-common.c | 158 u32 i2c_dw_scl_lcnt(u32 ic_clk, u32 tLOW, u32 tf, int offset) in i2c_dw_scl_lcnt() argument 163 * IC_[FS]S_SCL_LCNT + 1 >= IC_CLK * (tLOW + tf) in i2c_dw_scl_lcnt() 166 * of the SCL clock (tLOW) as soon as it pulls the SCL line. in i2c_dw_scl_lcnt() 167 * In order to meet the tLOW timing spec, we need to take into in i2c_dw_scl_lcnt() 171 return ((ic_clk * (tLOW + tf) + 500000) / 1000000) - 1 + offset; in i2c_dw_scl_lcnt()
|
| D | i2c-sh_mobile.c | 207 static u32 sh_mobile_i2c_iccl(unsigned long count_khz, u32 tLOW, u32 tf) in sh_mobile_i2c_iccl() argument 211 * ICCL >= COUNT_CLK * (tLOW + tf) in sh_mobile_i2c_iccl() 214 * the SCL signal (tLOW) as soon as it pulls the SCL line. in sh_mobile_i2c_iccl() 215 * In order to meet the tLOW timing spec, we need to take into in sh_mobile_i2c_iccl() 219 return (((count_khz * (tLOW + tf)) + 5000) / 10000); in sh_mobile_i2c_iccl() 270 u32 tHIGH, tLOW, tf; in sh_mobile_i2c_init() local 275 tLOW = 47; /* tLOW = 4.7 us */ in sh_mobile_i2c_init() 279 tLOW = 13; /* tLOW = 1.3 us */ in sh_mobile_i2c_init() 288 pd->iccl = sh_mobile_i2c_iccl(i2c_clk_khz, tLOW, tf); in sh_mobile_i2c_init()
|
| D | i2c-uniphier.c | 324 * Bit30-16: clock cycles of tLOW. in uniphier_i2c_hw_init() 325 * Standard-mode: tLOW = 4.7 us, tHIGH = 4.0 us in uniphier_i2c_hw_init() 326 * Fast-mode: tLOW = 1.3 us, tHIGH = 0.6 us in uniphier_i2c_hw_init() 327 * "tLow/tHIGH = 5/4" meets both. in uniphier_i2c_hw_init()
|
| D | i2c-uniphier-f.c | 517 * Standard-mode: tLOW + tHIGH = 10 us in uniphier_fi2c_hw_init() 518 * Fast-mode: tLOW + tHIGH = 2.5 us in uniphier_fi2c_hw_init() 522 * Standard-mode: tLOW = 4.7 us, tHIGH = 4.0 us, tBUF = 4.7 us in uniphier_fi2c_hw_init() 523 * Fast-mode: tLOW = 1.3 us, tHIGH = 0.6 us, tBUF = 1.3 us in uniphier_fi2c_hw_init() 524 * "tLow/tHIGH = 5/4" meets both. in uniphier_fi2c_hw_init()
|
| D | i2c-designware-master.c | 65 4700, /* tLOW = 4.7 us */ in i2c_dw_set_timings_master() 102 1300, /* tLOW = 1.3 us */ in i2c_dw_set_timings_master()
|
| D | i2c-designware-core.h | 286 u32 i2c_dw_scl_lcnt(u32 ic_clk, u32 tLOW, u32 tf, int offset);
|
| /kernel/linux/linux-5.10/drivers/i2c/busses/ |
| D | i2c-sh_mobile.c | 204 static u32 sh_mobile_i2c_iccl(unsigned long count_khz, u32 tLOW, u32 tf) in sh_mobile_i2c_iccl() argument 208 * ICCL >= COUNT_CLK * (tLOW + tf) in sh_mobile_i2c_iccl() 211 * the SCL signal (tLOW) as soon as it pulls the SCL line. in sh_mobile_i2c_iccl() 212 * In order to meet the tLOW timing spec, we need to take into in sh_mobile_i2c_iccl() 216 return (((count_khz * (tLOW + tf)) + 5000) / 10000); in sh_mobile_i2c_iccl() 267 u32 tHIGH, tLOW, tf; in sh_mobile_i2c_init() local 272 tLOW = 47; /* tLOW = 4.7 us */ in sh_mobile_i2c_init() 276 tLOW = 13; /* tLOW = 1.3 us */ in sh_mobile_i2c_init() 285 pd->iccl = sh_mobile_i2c_iccl(i2c_clk_khz, tLOW, tf); in sh_mobile_i2c_init()
|
| D | i2c-qcom-cci.c | 97 u16 tlow; /* LOW period of the SCL clock */ member 276 val = hw->thigh << 16 | hw->tlow; in cci_init() 698 .tlow = 114, 710 .tlow = 28, 732 .tlow = 174, 744 .tlow = 56, 756 .tlow = 22,
|
| D | i2c-uniphier.c | 300 * Bit30-16: clock cycles of tLOW. in uniphier_i2c_hw_init() 301 * Standard-mode: tLOW = 4.7 us, tHIGH = 4.0 us in uniphier_i2c_hw_init() 302 * Fast-mode: tLOW = 1.3 us, tHIGH = 0.6 us in uniphier_i2c_hw_init() 303 * "tLow/tHIGH = 5/4" meets both. in uniphier_i2c_hw_init()
|
| D | i2c-designware-common.c | 370 u32 i2c_dw_scl_lcnt(u32 ic_clk, u32 tLOW, u32 tf, int offset) in i2c_dw_scl_lcnt() argument 375 * IC_[FS]S_SCL_LCNT + 1 >= IC_CLK * (tLOW + tf) in i2c_dw_scl_lcnt() 378 * of the SCL clock (tLOW) as soon as it pulls the SCL line. in i2c_dw_scl_lcnt() 379 * In order to meet the tLOW timing spec, we need to take into in i2c_dw_scl_lcnt() 383 return ((ic_clk * (tLOW + tf) + 500000) / 1000000) - 1 + offset; in i2c_dw_scl_lcnt()
|
| D | i2c-uniphier-f.c | 491 * Standard-mode: tLOW + tHIGH = 10 us in uniphier_fi2c_hw_init() 492 * Fast-mode: tLOW + tHIGH = 2.5 us in uniphier_fi2c_hw_init() 496 * Standard-mode: tLOW = 4.7 us, tHIGH = 4.0 us, tBUF = 4.7 us in uniphier_fi2c_hw_init() 497 * Fast-mode: tLOW = 1.3 us, tHIGH = 0.6 us, tBUF = 1.3 us in uniphier_fi2c_hw_init() 498 * "tLow/tHIGH = 5/4" meets both. in uniphier_fi2c_hw_init()
|
| D | i2c-designware-master.c | 69 4700, /* tLOW = 4.7 us */ in i2c_dw_set_timings_master() 99 500, /* tLOW = 500 ns */ in i2c_dw_set_timings_master() 119 1300, /* tLOW = 1.3 us */ in i2c_dw_set_timings_master() 147 320, /* tLOW = 320 ns */ in i2c_dw_set_timings_master()
|
| D | i2c-tegra.c | 610 u32 val, clk_divisor, clk_multiplier, tsu_thd, tlow, thigh, non_hs_mode; in tegra_i2c_init() local 642 tlow = i2c_dev->hw->tlow_fast_fastplus_mode; in tegra_i2c_init() 653 tlow = i2c_dev->hw->tlow_std_mode; in tegra_i2c_init() 668 FIELD_PREP(I2C_INTERFACE_TIMING_TLOW, tlow); in tegra_i2c_init() 679 clk_multiplier = (tlow + thigh + 2) * (non_hs_mode + 1); in tegra_i2c_init()
|
| D | i2c-designware-core.h | 300 u32 i2c_dw_scl_lcnt(u32 ic_clk, u32 tLOW, u32 tf, int offset);
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | i2c-algo-pca.h | 59 * @tlow: Configured SCL LOW period 65 int tlow; member
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | i2c-algo-pca.h | 59 * @tlow: Configured SCL LOW period 65 int tlow; member
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/i2c/ |
| D | i2c-designware.txt | 18 This value which is by default 300ns is used to compute the tLOW period.
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/ |
| D | snps,designware-i2c.yaml | 79 This value is used to compute the tLOW period.
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/44x/ |
| D | warp.c | 197 i2c_smbus_write_byte_data(client, 3, 0); /* Tlow */ in pika_setup_critical_temp()
|
| /kernel/linux/linux-4.19/arch/powerpc/platforms/44x/ |
| D | warp.c | 204 i2c_smbus_write_byte_data(client, 3, 0); /* Tlow */ in pika_setup_critical_temp()
|
| /kernel/liteos_m/targets/riscv_nuclei_gd32vf103_soc_gcc/SoC/gd32vf103/Common/Include/ |
| D | gd32vf103_i2c.h | 268 …_2 ((uint32_t)0x00000000U) /*!< I2C fast mode Tlow/Thigh = 2 */ 269 …_9 I2C_CKCFG_DTCY /*!< I2C fast mode Tlow/Thigh = 16/9 */
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | tmp108.c | 37 #define TMP108_CONF_FL 0x0800 /* Watchdog flag - TLOW */
|
| /kernel/linux/linux-4.19/drivers/hwmon/ |
| D | tmp108.c | 46 #define TMP108_CONF_FL 0x0800 /* Watchdog flag - TLOW */
|