i2c-xzynq

Driver for inter-integrated circuits for the Xilinx ZYNQ ZCU10x platform where x represents the number of the variant for the platform.

Syntax:

i2c-xzynq [board_specific_options [board_specific_options]...]
           [generic_option [generic option]...]

Runs on:

QNX OS

Options:

There are board-specific (single-dash) and generic (double-dash) options available.
CAUTION:
Board-specific options must always appear before generic options, otherwise the driver fails to initialize. For example, the correct sequence would as follows:
i2c-xzynq -v --u0 
However, if you incorrectly issue the command in the wrong sequence as shown here, it will fail:
i2c-xzynq --u0 -v 

Board-specific options:

These are Xilinx board-specific drivers options.
-c clock
Input clock (Hz).
-C clock
Don't attempt to get or set the I2Cx_REF_CLK frequency from hardware. Instead, leave the clock registers as-is and use this clock value (Hz) when calculating the I2C bus speed divisors. Note: Use this option only if the driver fails to get or set the correct frequency of I2Cx_REF_CLK when using the -c clockoption.
-i irq
The IRQ number. The default is 49.
-p address
Base address of the controller. The default is 0xFF020000.
-v level
Set the verbosity level. The default is 2.

Generic options:

These are the generic options for the driver.
--b bus_speed
The default bus speed. The default is 100000.
--u unit
The unit number, which is the number to append to device name prefix (e.g., /dev/i2c). The default is 0 (zero).

Example:

Specify a base of address 0xFF020000 with an IRQ of 49:
i2c-xzynq –p 0xFF020000 -i 49
Page updated: