[Letux-kernel] JZ4780 HDMI

H. Nikolaus Schaller hns at goldelico.com
Fri Dec 20 18:53:56 CET 2019


Hi Paul,
I have now analysed the irqdomain issue I had and Paul Cercuil did send a patch that works.
I am not sure if it has an influence or not, but better it is fixed before looking at HDMI :)

So there is a new branch

	http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work-jz4780-hdmi-v3

based on v5.5-rc2. I can boot and see this:

root at letux:~# dmesg|fgrep -i drm
[    7.961053] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    7.967741] [drm] No driver support for vblank timestamp query.
[    7.995610] [drm] Initialized ingenic-drm 1.0.0 20190422 for 13050000.lcd on minor 0
[    8.037491] [drm] Cannot find any crtc or sizes
root at letux:~# dmesg|fgrep -i lcd
[    7.995610] [drm] Initialized ingenic-drm 1.0.0 20190422 for 13050000.lcd on minor 0
root at letux:~# dmesg|fgrep -i hdmi
[    0.266439] hdmi_power: no parameters
[    0.248614] reg-fixed-voltage fixedregulator at 1: hdmi_power supplying 0uV
[    7.957734] dw-hdmi-jz4780 10180000.hdmi: HDMI block clock frequency unspecified
[    7.966809] dw-hdmi-jz4780 10180000.hdmi: Detected HDMI TX controller v1.31a with HDCP (DWC HDMI 3D TX PHY)
root at letux:~# ls -l /dev/fb*
ls: cannot access '/dev/fb*': No such file or directory
root at letux:~# find /sys -name '*hdmi*'
/sys/kernel/debug/clk/hdmi
/sys/kernel/debug/regmap/10180000.hdmi
/sys/kernel/debug/regulator/hdmi_power
/sys/devices/platform/10180000.hdmi
/sys/devices/platform/10180000.hdmi/dw-hdmi-i2s-audio.0.auto
/sys/devices/platform/10180000.hdmi/dw-hdmi-cec.1.auto
/sys/firmware/devicetree/base/hdmi at 10180000
/sys/bus/platform/devices/dw-hdmi-i2s-audio.0.auto
/sys/bus/platform/devices/dw-hdmi-cec.1.auto
/sys/bus/platform/devices/10180000.hdmi
/sys/bus/platform/drivers/dw-hdmi-jz4780
/sys/bus/platform/drivers/dw-hdmi-jz4780/10180000.hdmi
/sys/module/dw_hdmi
/sys/module/dw_hdmi/holders/dw_hdmi_jz4780
/sys/module/dw_hdmi_jz4780
/sys/module/dw_hdmi_jz4780/drivers/platform:dw-hdmi-jz4780
/sys/module/drm_kms_helper/holders/dw_hdmi
/sys/module/drm/holders/dw_hdmi
root at letux:~# ls -l /sys/devices/platform/10180000.hdmi
total 0
lrwxrwxrwx 1 root root    0 Dec 20 17:45 driver -> ../../../bus/platform/drivers/dw-hdmi-jz4780
-rw-r--r-- 1 root root 4096 Dec 20 17:45 driver_override
drwxr-xr-x 3 root root    0 Nov  3  2016 dw-hdmi-cec.1.auto
drwxr-xr-x 3 root root    0 Nov  3  2016 dw-hdmi-i2s-audio.0.auto
-r--r--r-- 1 root root 4096 Dec 20 17:45 modalias
lrwxrwxrwx 1 root root    0 Dec 20 17:45 of_node -> ../../../firmware/devicetree/base/hdmi at 10180000
drwxr-xr-x 2 root root    0 Dec 20 17:43 power
lrwxrwxrwx 1 root root    0 Nov  3  2016 subsystem -> ../../../bus/platform
-rw-r--r-- 1 root root 4096 Nov  3  2016 uevent
root at letux:~# 
root at letux:~# find /sys -name '*lcd*'
/sys/kernel/debug/clk/lcd0pixclk
/sys/kernel/debug/clk/lcd1pixclk
/sys/kernel/debug/clk/lcd
/sys/kernel/debug/regmap/13050000.lcd
/sys/devices/platform/13050000.lcd
/sys/class/lcd
/sys/firmware/devicetree/base/lcd at 13050000
/sys/bus/platform/devices/13050000.lcd
/sys/bus/platform/drivers/ingenic-drm/13050000.lcd
/sys/bus/platform/drivers/platform-lcd
root at letux:~# 
root at letux:~# ls -l /sys/class/lcd 
total 0
root at letux:~# 
root at letux:~# lsmod
Module                  Size  Used by
g_ether                 5373  0
usb_f_rndis            17648  1 g_ether
u_ether                14794  2 g_ether,usb_f_rndis
libcomposite           48158  2 g_ether,usb_f_rndis
configfs               33740  3 usb_f_rndis,libcomposite
dw_hdmi_jz4780          2103  0
dw_hdmi                28367  1 dw_hdmi_jz4780
ingenic_drm             9100  0
drm_kms_helper        190773  3 ingenic_drm,dw_hdmi
cfbfillrect             3316  1 drm_kms_helper
syscopyarea             2754  1 drm_kms_helper
cfbimgblt               2140  1 drm_kms_helper
sysfillrect             3338  1 drm_kms_helper
sysimgblt               2140  1 drm_kms_helper
fb_sys_fops             1803  1 drm_kms_helper
cfbcopyarea             2786  1 drm_kms_helper
drm                   481117  4 ingenic_drm,dw_hdmi,drm_kms_helper
gpio_ir_recv            2798  0
dm9000                 19193  0
mii                     7162  1 dm9000
drm_panel_orientation_quirks      942  1 drm
ipv6                  399467  20
autofs4                28427  9
root at letux:~# 

So there is still no framebuffer although DRM is running :(

Maybe you can checkout the latest code through github:

	https://github.com/OpenPhoenux/gta04-kernel/tree/work-jz4780-hdmi-v3

(may need an hour to appear/sync through git mirror - check for 78feac2dbbb11d05a9afe68ab47bf633b49f0cb9).
We should definitively start on the same basis...

So the question remains why you do see a /dev/fb0 and I don't...

BR and thanks,
Nikolaus



More information about the Letux-kernel mailing list