1# Copyright (c) 2022 ITE Corporation. All Rights Reserved. 2# SPDX-License-Identifier: Apache-2.0 3 4description: ITE enhance I2C 5 6compatible: "ite,enhance-i2c" 7 8include: ite,common-i2c.yaml 9 10properties: 11 prescale-scl-low: 12 type: int 13 description: | 14 This option is used to configure the I2C speed prescaler for 15 the SCL low period. When set to >= 1, it will increase the 16 low period of the SCL clock and so reduce the signal frequency. 17 The resulting SCL cycle time is given by the following formula: 18 SCL cycle = 2 * (psr + prescale_tweak + 2) * 19 SMBus clock cycle 20 21 data-hold-time: 22 type: int 23 default: 3 24 enum: 25 - 3 26 - 4 27 - 5 28 - 6 29 - 7 30 - 8 31 - 9 32 - 10 33 description: | 34 This option is used to configure the data hold time of the I2C. 35 The unit is number of SMB clock cycles. The time calculation 36 is (data-hold-time / smb_clk) seconds. 37 38 target-enable: 39 type: boolean 40 description: | 41 This option is used when the I2C target is enabled. It is 42 necessary to prevent the target port from being configured 43 with I2C host related initialization. 44 45 target-pio-mode: 46 type: boolean 47 description: | 48 This option is used when the I2C target is enabled and it can 49 support PIO mode for I2C target transfer. 50