kriation 1 switch and reset
- maikon12
- Dec 29, 2024
- 2 min read
29/12/2024
I am continuing the kria kriations towards using what is on the development kit. And it is the imaging sensor. There are 3 connectors available IAS0, IAS1, and rpi cam. I am aiming the IAS1 and the rpi cam. Because my goal is to build my own camera.
In this baby step I am aiming, as the title says, the switch and the reset. After having the i2c bus, I noticed that I started seeing the switch

xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x2 I am setting to SD1 SC1, 0x3 to SD2 SC2, and só on, but I find out, this is the sensor EEPRON and not the i2c to configure the sensor.
Which caught my attention, after some debugging, is the presence of a reset circuit:

and investigating HDA2, 4, and 9 using the kria k26 som datasheet plus the xdc of K26_SOM_Rev1.xdc I find the FPGA pins:
HDA2 D18 J11
HDA4 B17 K13
HDA9 A15 F11
once I set those pins to out of reset, which is basically setting them to 1,
I started seeing the 0x36 component in the bus:

the only thing is I am seeing these options now
xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x0 xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4 | ![]() |
xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x1 xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4 | ![]() |
xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x2 xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4 | ![]() |
xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x3 xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4 | ![]() |
xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x4 xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4 | ![]() |
now the final test is to have some communication with the sensor.
Setting the switch to 2 which is IAS1 (also I dont have any sensor connected to IAS0), then I have to communicate via i2c but for 16b registers addresses which makes a bit harder ( because why not), and the code below is what I found só far that works with the i2c linux tools.
xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x36 0x00 0x00
xilinx-kv260-starterkit-20222:~$ sudo i2cget -y 4 0x36 0x0 w
I can read back 0x5301, which matches with the datasheet of the ar1335

and it also works for the switch 3, which has a raspberry pi cam attached with a Sony sensor IMX219
Comments