i2c-xzynq

Driver for inter-integrated circuits for the Xilinx KD240.

Syntax:

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

Runs on:

QNX OS

Options:

There are Zynq-specific (single-dash) and generic (double-dash) options available.
CAUTION:
Zynq-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 

Zynq-specific options:

These are Xilinx Zynq-specific drivers.
-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 default IRQ is 50.
-p address
Base address of the controller. The default address is 0xFF030000.
-v level
Set the verbosity level. The default is 0 (zero).

Generic options:

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

Example:

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