Hi, 1. I made change so it could be set int device tree (0x48) - just noticed a bug and had to fix it:
> ... elphel393_sensor_i2c: elphel393-sensor-i2c@0 { > compatible = "elphel,elphel393-sensor-i2c-1.00"; > /* Add known devices: name, slave address (7-bit), number > of address bytes, number of data bytes, SCL frequency (kHz) */ > elphel393-sensor-i2c,i2c_devices = "mt9f002 0x10 2 > 2 500", > "mt9p006 *0x48* > 1 2 500", > "el10359 0x08 1 > 2 500", > "el10359_32 0x08 1 > 4 500", > "pca9500_eeprom 0x50 1 > 1 100", > "sensor_eeprom 0x50 1 > 1 100", > "sensor_temp 0x18 1 > 2 100", > "cy22393 0x69 1 > 1 100"; > } ; ... Commands to recompile devicetree: decompile: > $ dtc -I dtb -O dts devicetree.dtb -o devicetree.dts compile: > $ dtc -I dts -O dtb devicetree.dts -o devicetree.dtb 2. Are you able to build the firmware or should I upload it to somewhere? 3. Before any updating - can you read sensor's registers? > ~$ ssh root@192.168.0.9 > root@elphel393:~# cd /usr/local/verilog/ > root@elphel393:~# test_mcntrl.py @hargs-after > x393 --> r > x393 --> print_sensor_i2c (without args it will print usage) > > *...* > *print_sensor_i2c <num_sensor> <reg_addr> <indx> <sa7> <verbose>* > *...*x393 --> print_sensor_i2c 0 0x3000 0xff *0x10* 0 > * Result: 0x2e01* <num_sensor> - 10393's port the sensor is connected to. Can be: 0..3 <reg_addr> - I tried on a sensor that has 16-bit addresses (0x3000), for MT9P006 it can be 0x0 (ID register addr) *<indx> *- set 0xff *<sa7> -* SADDR 4. Side note (sensor power and clock): At boot autocampars.php calls: test_mcntrl.py @hargs test_mcntrl.py (located at /usr/local/bin/) hargs (located at /usr/local/verilog/) Inside hargs file there are commands for: - which bitstream to load - setting sensor power: for MT9P006 it's PAR12 which translates to {"mv":2800, "freq":24.0,"iface":"2V5_LVDS"} - setting sensor clock frequency: for MT9P006 it's 24.0 "2V5_LVDS" Best regards, Oleg Dzhimiev Electronics Engineer phone: +1 801 783 5555 x124 Elphel, Inc.
_______________________________________________ Support-list mailing list Support-list@support.elphel.com http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com