FOSDEM / video-hardware

FOSDEM video hardware
18 stars 4 forks source link

HDMI status interrupt #8

Closed libv closed 4 years ago

libv commented 4 years ago

Implement the HDMI status interrupt from the tfp401.

libv commented 4 years ago

By verifying that this thing works, we can finalize the design of the ADV7611 based board.

libv commented 4 years ago

The pin works, i am getting some interrupts when the TFP401 is connected. Now i need to type up the code that ties it properly into our CSI1 driver.

libv commented 4 years ago

[ 1365.156976] sun4i_csi1_active_isr(): Link active. [ 1380.641482] sun4i_csi1_active_isr(): Link lost.

libv commented 4 years ago

A bit more work is needed on both driver and userspace side to make this better, issue #18 and issue #19 have been opened. I have spent too much time on this topic already, and the resulting code is good enough for now.

Interrupt works, userspace tool somewhat responds correctly

libv commented 4 years ago

Kernel commits: 37daf69042^..7f87856f344 (2) 2 files changed, 3 insertions(+), 1 deletion(-) https://github.com/libv/fosdem-video-linux/commits/master CSI driver commits: ef386ac765^..a0d49bfb7b (3) 1 file changed, 119 insertions(+), 3 deletions(-) https://github.com/libv/sun4i-csi1/commits/master Juggler tool commits: 60d992f78d^..ee52f067b7 (11) 9 files changed, 453 insertions(+), 57 deletions(-)

libv commented 4 years ago

PH7/EINT7 should be tied to ADV7611 Int1 pin (). It is recommended to also tie ADV7611 Int2 to the allwinner SoC, to differentiate between stream interruption and minor config changes.