|
Edited by Sitheek at 2015-9-2 05:10
Ok, my friend @mikexx debugged CSI port on Orange Pi 2 with logic analyzer so these are things we figured out:
1. There is no power supply for CSI camera because SoC pin PA17 is in down state - 0 volts. This pin is required to be in high state - it enables power supply for CSI camera.
2. I2c 0 works, probalby I2c 1 works too, but I2c 2 which is connected to CSI port will not work until again PA17 pin is in low state. Data and clock lines of I2c are pulled up through resistors from PA17, so if it is 0 volts I2c 2 can not work too.
To enable any CSI camera PA17 pin should be in high state. Setting it through script.bin does not work.
We tried using gpio-sunxi module without sucess. gpio-sunxi.ko does not allow to set PA17 pin.
I looked into sources of gpio-sunxi and it's includes, but I am not a coder.
I figured out that there are addresses of essential registers defined in /arch/arm/mach-sunxi/include/mach/sun8i/platform-sun8iw7p1.h, but I do not understend how gpio-sunxi kernel module knows what pins to use.
Accorging to Allwiner's H3 soc documentation - page 318 - PA17 pin can be used as gpio, but I do not know why it is not allowed by gpio-sunxi module.
@loborys could you help us and tell us how to set PA17 high? We can rebuild kernel, we use your's old lichee.tar.gz, could you post the new one? |
|