We use lt9611 to convert MIPI DSI to HDMI,then make the following configuration in the kernel:
1.Configured DRM_ LONTIUM_ LT9611=y in defconfig
2.Configure lt9611 and mipi dsi definitions in the device tree
hdmi@39 {
compatible = "lontium,lt9611";
pinctrl-0 = <&pinctrl_9611>;
pinctrl-names = "default";
vdd-supply = <®_vddio_1v8>;
vcc-supply = <®_vdd_3v3>;
reg = <0x39>;
reset-gpios = <&at9555 9 GPIO_ACTIVE_HIGH>;
enable-gpios = <&at9555 13 GPIO_ACTIVE_HIGH>;
interrupts-extended = <&gpio3 23 IRQ_TYPE_EDGE_FALLING>;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
hdmi_disp: port@0 {
reg = <0>;
lt9611_1_in: endpoint {
remote-endpoint = <&mipi_dsi_bridge1_out>;
};
};
port@2 {
reg = <2>;
lt9611_out: endpoint {
remote-endpoint = <&hdmi_con>;
};
};
};
};
&dsi {
status = "okay";
ports{
#address-cells = <1>;
#size-cells = <0>;
hdmi:port@1 {
reg = <1>;
mipi_dsi_bridge1_out: endpoint {
remote-endpoint = <<9611_1_in>;
};
};
};
};
At this point, the compiled image has the following error in the startup log:
[ 1.787959] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517
[ 1.798060] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517
[ 1.808108] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517
failed to find dsi host
Then I made a simple modification to the lt9611 driver
in lt9611_probe function,remove lt9611_attach_dsi
static int lt9611_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
...
...
i2c_set_clientdata(client, lt9611);
lt9611->bridge.funcs = <9611_bridge_funcs;
lt9611->bridge.of_node = client->dev.of_node;
lt9611->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID |
DRM_BRIDGE_OP_HPD | DRM_BRIDGE_OP_MODES;
lt9611->bridge.type = DRM_MODE_CONNECTOR_HDMIA;
drm_bridge_add(<9611->bridge);
printk("%s start\n",__func__);
/* Attach primary DSI */
/*
lt9611->dsi0 = lt9611_attach_dsi(lt9611, lt9611->dsi0_node);
if (IS_ERR(lt9611->dsi0)) {
ret = PTR_ERR(lt9611->dsi0);
goto err_remove_bridge;
}
*/
/* Attach secondary DSI, if specified */
in lt9611_irq_thread_handler,add lt9611_attach_dsi when hdmi pluged in
static irqreturn_t lt9611_irq_thread_handler(int irq, void *dev_id)
{
...
...
/* hpd changed high */
if (irq_flag3 & 0x40) {
dev_info(lt9611->dev, "hdmi cable connected\n");
regmap_write(lt9611->regmap, 0x8207, 0x7f);
regmap_write(lt9611->regmap, 0x8207, 0x3f);
printk("attach to dsi\n");
lt9611->dsi0 = lt9611_attach_dsi(lt9611, lt9611->dsi0_node);
if(lt9611->dsi0){
printk("success\n");
}
}
Successfully modified lt9611 and dsi attach through the above changes. Execute the modetest and fbset commands to see the following information
modetest
....
...
trying to open device 'imx-drm'...done
Encoders:
id crtc type possible crtcs possible clones
34 0 DSI 0x00000001 0x00000001
Connectors:
id encoder status name size (mm) modes encoders
35 0 connected HDMI-A-1 150x100 0 34
props:
1 EDID:
flags: immutable blob
blobs:
value:
00ffffffffffff0030ae861001010101
22150103810f0a78eee5b5a355499927
135054afef0045c081c0818081808180
9500950fd1c0a1130040415819202c58
36009a560000001c000000fc004c454e
204c3139353077440a20000000fd0032
4c1e510e000a202020202020000000ff
0042333433323834350a2020202001ce
020321714e0607020315961112130414
051f90230907078301000065030c0010
008c0ad090204031200c405500b98821
000018011d8018711c1620582c2500b9
882100009e011d80d0721c1620102c25
80b9882100009e011d00bc52d01e20b8
285540b9882100001e023a80d072382d
40102c4580b9882100001e00000000d0
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:
value:
CRTCs:
id fb pos size
33 0 (0,0) (0x0)
#0 nan 0 0 0 0 0 0 0 0 0 flags: ; type:
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 0 0 0,0 0,0 0 0x00000001
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
32 zpos:
flags: immutable range
values: 0 0
value: 0
Frame buffers:
id size pitch
fbset
root@imx93evk:~# fbset
mode "1920x1080"
geometry 1920 1080 1920 1080 32
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode
Even if I can see the above information, HDMI still has no image output. I hope everyone can give me some suggestions
已解决! 转到解答。
I added an hdmi enable function in lontium-lt9611.c.
Now it can be displayed, but it can only be displayed 1920x1080@60Hz
static void lt9611_hdmi_out_enable(struct lt9611 *lt9611) //dsren
{
struct reg_sequence reg_cfg[] = {
{ 0x8123, 0x40 },
{ 0x82de, 0x20 },
{ 0x82de, 0xe0 },
{ 0x8018, 0xdc },
{ 0x8018, 0xfc },
{ 0x8016, 0xf1 },
{ 0x8016, 0xf3 },
{ 0x8011, 0x5a },
{ 0x8011, 0xfa },
{ 0x8130, 0xea },
};
regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg));
}
Reading the edid appears normal
[ 11.413892] lt9611_read_edid edid Loop[0]:00 ff ff ff ff ff ff 00 05 e3 90 27 62 1b 00 00 2b 1d 01 03 80 3c 22 78 2e 67 a5 a5 55 4d a2 27
[ 11.441616]
[ 11.467163] lt9611_read_edid edid Loop[1]:0e 50 54 bf ef 00 d1 c0 b3 00 95 00 81 80 81 40 81 c0 01 01 01 01 4d d0 00 a0 f0 70 3e 80 30 20
[ 11.477767]
[ 11.500529] lt9611_read_edid edid Loop[2]:35 00 55 50 21 00 00 1a a3 66 00 a0 f0 70 1f 80 30 20 35 00 55 50 21 00 00 1a 00 00 00 fc 00 55
[ 11.510886]
[ 11.532560] lt9611_read_edid edid Loop[3]:32 37 39 30 52 33 42 0a 20 20 20 20 00 00 00 fd 00 17 4b 1e a0 3c 00 0a 20 20 20 20 20 20 01 d9
[ 11.542882]
[ 11.568331] lt9611_read_edid edid Loop[4]:02 03 3e f1 4c 90 04 03 1f 13 01 12 5d 5e 5f 60 61 23 09 07 07 83 01 00 00 6d 03 0c 00 20 00 38
[ 11.578674]
[ 11.604081] lt9611_read_edid edid Loop[5]:3c 20 00 60 01 02 03 67 d8 5d c4 01 78 80 03 e3 05 e3 01 e3 0f 00 0c e6 06 07 01 53 53 00 56 5e
[ 11.614409]
[ 11.639822] lt9611_read_edid edid Loop[6]:00 a0 a0 a0 29 50 30 20 35 00 55 50 21 00 00 1e 02 3a 80 18 71 38 2d 40 58 2c 45 00 55 50 21 00
[ 11.650152]
[ 11.675581] lt9611_read_edid edid Loop[7]:00 1e 4d 6c 80 a0 70 70 3e 80 30 20 3a 00 55 50 21 00 00 1a 00 00 00 00 00 00 00 00 00 00 00 c7
[ 11.685914]
[ 11.700134] lt9611_get_edid_block
[ 11.704176] drm_helper_probe_add_cmdline_mode
[ 11.704236] mode[1]: 1920 x 1080drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.708619] mode[2]: 1920 x 1080drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.717321] mode[3]: 1920 x 1080drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.726024] mode[4]: 720 x 576drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.734722] mode[5]: 720 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.743252] mode[6]: 720 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.751775] mode[7]: 640 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.760306] mode[8]: 640 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.768832] mode[9]: 640 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.777353] mode[10]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.785878] mode[11]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.797954] mode[12]: 2560 x 1440drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.810031] mode[13]: 1920 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.822116] mode[14]: 1680 x 1050drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.834207] mode[15]: 1440 x 900drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.846293] mode[16]: 1280 x 1024drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.858280] mode[17]: 1280 x 960drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.870354] mode[18]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.882344] mode[19]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.894338] mode[20]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.906241] mode[21]: 640 x 480drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.918141] mode[22]: 640 x 480drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.930039] mode[23]: 640 x 480drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.941949] mode[24]: 720 x 400drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.953857] mode[25]: 1280 x 1024drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.965762] mode[26]: 1024 x 768drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.977836] mode[27]: 1024 x 768drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.989826] mode[28]: 1024 x 768drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.001823] mode[29]: 832 x 624drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.013816] mode[30]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.025859] mode[31]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.037774] mode[32]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.049680] mode[33]: 1920 x 1080drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.061677] mode[34]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.073754] mode[35]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.085744] mode[36]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.097819] mode[37]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.110008] mode[38]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.122105] mode[39]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.134190] mode[40]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.146265] mode[41]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.158252] mode[42]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.170323] mode[43]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.182406] Modeline "3840x2160": 60 533250 3840 3888 3920 4000 2160 2163 2168 2222 0x48 0x9
[ 12.202901] Not using 3840x2160 mode: ERROR
[ 12.207083] Modeline "3840x2160": 30 262750 3840 3888 3920 4000 2160 2163 2168 2191 0x40 0x9
[ 12.215513] Not using 3840x2160 mode: PANEL
[ 12.219690] Modeline "2560x1440": 60 241500 2560 2608 2640 2720 1440 1443 1448 1481 0x40 0x5
[ 12.228121] Not using 2560x1440 mode: BAD
[ 12.232130] Modeline "1920x2160": 60 277250 1920 1968 2000 2080 2160 2163 2173 2222 0x40 0x9
[ 12.240575] Not using 1920x2160 mode: BAD
[ 12.244587] Modeline "1680x1050": 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[ 12.253021] Not using 1680x1050 mode: BAD
[ 12.257027] Modeline "1440x900": 60 88750 1440 1488 1520 1600 900 903 909 926 0x40 0x9
[ 12.265056] Not using 1440x900 mode: BAD
[ 12.268992] Modeline "1280x1024": 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 12.277433] Not using 1280x1024 mode: BAD
[ 12.281443] Modeline "1280x960": 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
[ 12.289531] Not using 1280x960 mode: BAD
[ 12.293453] Modeline "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 12.301370] Not using 1280x720 mode: BAD
[ 12.305307] Modeline "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 12.312875] Not using 800x600 mode: BAD
[ 12.316709] Modeline "800x600": 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
[ 12.324278] Not using 800x600 mode: BAD
[ 12.328101] Modeline "640x480": 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
[ 12.335581] Not using 640x480 mode: BAD
[ 12.339413] Modeline "640x480": 73 31500 640 664 704 832 480 489 492 520 0x40 0xa
[ 12.347004] Not using 640x480 mode: BAD
[ 12.350857] Modeline "640x480": 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
[ 12.358344] Not using 640x480 mode: BAD
[ 12.362185] Modeline "720x400": 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
[ 12.369669] Not using 720x400 mode: BAD
[ 12.373506] Modeline "1280x1024": 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 12.381938] Not using 1280x1024 mode: BAD
[ 12.385944] Modeline "1024x768": 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
[ 12.393854] Not using 1024x768 mode: BAD
[ 12.397774] Modeline "1024x768": 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
[ 12.405685] Not using 1024x768 mode: BAD
[ 12.409603] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 12.417515] Not using 1024x768 mode: BAD
[ 12.421438] Modeline "832x624": 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
[ 12.429008] Not using 832x624 mode: BAD
[ 12.432840] Modeline "800x600": 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
[ 12.440403] Not using 800x600 mode: BAD
[ 12.444235] Modeline "800x600": 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
[ 12.451800] Not using 800x600 mode: BAD
[ 12.455632] Modeline "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 12.463544] Not using 1280x720 mode: BAD
[ 12.467463] Modeline "1920x1080": 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[ 12.475901] Not using 1920x1080 mode: BAD
[ 12.479912] Modeline "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 12.487832] Not using 1280x720 mode: BAD
[ 12.491757] Modeline "3840x2160": 24 297000 3840 5116 5204 5500 2160 2168 2178 2250 0x40 0x5
[ 12.500186] Not using 3840x2160 mode: BAD
[ 12.504201] Modeline "3840x2160": 25 297000 3840 4896 4984 5280 2160 2168 2178 2250 0x40 0x5
[ 12.512632] Not using 3840x2160 mode: BAD
[ 12.516636] Modeline "3840x2160": 30 297000 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.525068] Not using 3840x2160 mode: PANEL
[ 12.529248] Modeline "3840x2160": 50 594000 3840 4896 4984 5280 2160 2168 2178 2250 0x40 0x5
[ 12.537678] Not using 3840x2160 mode: ERROR
[ 12.541857] Modeline "3840x2160": 60 594000 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.550292] Not using 3840x2160 mode: ERROR
[ 12.554476] Modeline "1280x720": 60 74176 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 12.562386] Not using 1280x720 mode: BAD
[ 12.566306] Modeline "3840x2160": 24 296703 3840 5116 5204 5500 2160 2168 2178 2250 0x40 0x5
[ 12.574736] Not using 3840x2160 mode: BAD
[ 12.578742] Modeline "3840x2160": 30 296703 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.587173] Not using 3840x2160 mode: PANEL
[ 12.591352] Modeline "3840x2160": 60 593407 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.599783] Not using 3840x2160 mode: ERROR
[ 12.603969] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 12.612407] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 12.620839] Modeline "1920x1080": 60 148352 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 12.629277] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 12.636761] Modeline "720x480": 60 27027 720 736 798 858 480 489 495 525 0x40 0xa
[ 12.644244] Modeline "720x480": 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[ 12.651724] Modeline "640x480": 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
[ 12.659202] Modeline "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 12.666683] Modeline "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
The edid seem incorrect, there is no refresh rate information about HDMI, you can dump edid in driver:
[ 18.092789] lt9611_get_edid_block
[ 18.096128] [drm:update_display_info] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[ 18.096147] [drm:update_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[ 18.096169] [drm:update_display_info] Supported Monitor Refresh rate range is 0 Hz - 0 Hz
[ 18.096176] [drm:update_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
I added an hdmi enable function in lontium-lt9611.c.
Now it can be displayed, but it can only be displayed 1920x1080@60Hz
static void lt9611_hdmi_out_enable(struct lt9611 *lt9611) //dsren
{
struct reg_sequence reg_cfg[] = {
{ 0x8123, 0x40 },
{ 0x82de, 0x20 },
{ 0x82de, 0xe0 },
{ 0x8018, 0xdc },
{ 0x8018, 0xfc },
{ 0x8016, 0xf1 },
{ 0x8016, 0xf3 },
{ 0x8011, 0x5a },
{ 0x8011, 0xfa },
{ 0x8130, 0xea },
};
regmap_multi_reg_write(lt9611->regmap, reg_cfg, ARRAY_SIZE(reg_cfg));
}
Reading the edid appears normal
[ 11.413892] lt9611_read_edid edid Loop[0]:00 ff ff ff ff ff ff 00 05 e3 90 27 62 1b 00 00 2b 1d 01 03 80 3c 22 78 2e 67 a5 a5 55 4d a2 27
[ 11.441616]
[ 11.467163] lt9611_read_edid edid Loop[1]:0e 50 54 bf ef 00 d1 c0 b3 00 95 00 81 80 81 40 81 c0 01 01 01 01 4d d0 00 a0 f0 70 3e 80 30 20
[ 11.477767]
[ 11.500529] lt9611_read_edid edid Loop[2]:35 00 55 50 21 00 00 1a a3 66 00 a0 f0 70 1f 80 30 20 35 00 55 50 21 00 00 1a 00 00 00 fc 00 55
[ 11.510886]
[ 11.532560] lt9611_read_edid edid Loop[3]:32 37 39 30 52 33 42 0a 20 20 20 20 00 00 00 fd 00 17 4b 1e a0 3c 00 0a 20 20 20 20 20 20 01 d9
[ 11.542882]
[ 11.568331] lt9611_read_edid edid Loop[4]:02 03 3e f1 4c 90 04 03 1f 13 01 12 5d 5e 5f 60 61 23 09 07 07 83 01 00 00 6d 03 0c 00 20 00 38
[ 11.578674]
[ 11.604081] lt9611_read_edid edid Loop[5]:3c 20 00 60 01 02 03 67 d8 5d c4 01 78 80 03 e3 05 e3 01 e3 0f 00 0c e6 06 07 01 53 53 00 56 5e
[ 11.614409]
[ 11.639822] lt9611_read_edid edid Loop[6]:00 a0 a0 a0 29 50 30 20 35 00 55 50 21 00 00 1e 02 3a 80 18 71 38 2d 40 58 2c 45 00 55 50 21 00
[ 11.650152]
[ 11.675581] lt9611_read_edid edid Loop[7]:00 1e 4d 6c 80 a0 70 70 3e 80 30 20 3a 00 55 50 21 00 00 1a 00 00 00 00 00 00 00 00 00 00 00 c7
[ 11.685914]
[ 11.700134] lt9611_get_edid_block
[ 11.704176] drm_helper_probe_add_cmdline_mode
[ 11.704236] mode[1]: 1920 x 1080drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.708619] mode[2]: 1920 x 1080drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.717321] mode[3]: 1920 x 1080drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.726024] mode[4]: 720 x 576drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.734722] mode[5]: 720 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.743252] mode[6]: 720 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.751775] mode[7]: 640 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.760306] mode[8]: 640 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.768832] mode[9]: 640 x 480drm_mode_validate_pipeline drm_crtc_mode_valid !MODE_OK MODE_OK
[ 11.777353] mode[10]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.785878] mode[11]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.797954] mode[12]: 2560 x 1440drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.810031] mode[13]: 1920 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.822116] mode[14]: 1680 x 1050drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.834207] mode[15]: 1440 x 900drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.846293] mode[16]: 1280 x 1024drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.858280] mode[17]: 1280 x 960drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.870354] mode[18]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.882344] mode[19]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.894338] mode[20]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.906241] mode[21]: 640 x 480drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.918141] mode[22]: 640 x 480drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.930039] mode[23]: 640 x 480drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.941949] mode[24]: 720 x 400drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.953857] mode[25]: 1280 x 1024drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.965762] mode[26]: 1024 x 768drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.977836] mode[27]: 1024 x 768drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 11.989826] mode[28]: 1024 x 768drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.001823] mode[29]: 832 x 624drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.013816] mode[30]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.025859] mode[31]: 800 x 600drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.037774] mode[32]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.049680] mode[33]: 1920 x 1080drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.061677] mode[34]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.073754] mode[35]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.085744] mode[36]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.097819] mode[37]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.110008] mode[38]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.122105] mode[39]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.134190] mode[40]: 1280 x 720drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.146265] mode[41]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.158252] mode[42]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.170323] mode[43]: 3840 x 2160drm_mode_validate_pipeline drm_bridge_chain_mode_valid !MODE_OK drm_mode_validate_pipeline != MODE_OK
[ 12.182406] Modeline "3840x2160": 60 533250 3840 3888 3920 4000 2160 2163 2168 2222 0x48 0x9
[ 12.202901] Not using 3840x2160 mode: ERROR
[ 12.207083] Modeline "3840x2160": 30 262750 3840 3888 3920 4000 2160 2163 2168 2191 0x40 0x9
[ 12.215513] Not using 3840x2160 mode: PANEL
[ 12.219690] Modeline "2560x1440": 60 241500 2560 2608 2640 2720 1440 1443 1448 1481 0x40 0x5
[ 12.228121] Not using 2560x1440 mode: BAD
[ 12.232130] Modeline "1920x2160": 60 277250 1920 1968 2000 2080 2160 2163 2173 2222 0x40 0x9
[ 12.240575] Not using 1920x2160 mode: BAD
[ 12.244587] Modeline "1680x1050": 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[ 12.253021] Not using 1680x1050 mode: BAD
[ 12.257027] Modeline "1440x900": 60 88750 1440 1488 1520 1600 900 903 909 926 0x40 0x9
[ 12.265056] Not using 1440x900 mode: BAD
[ 12.268992] Modeline "1280x1024": 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 12.277433] Not using 1280x1024 mode: BAD
[ 12.281443] Modeline "1280x960": 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
[ 12.289531] Not using 1280x960 mode: BAD
[ 12.293453] Modeline "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 12.301370] Not using 1280x720 mode: BAD
[ 12.305307] Modeline "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 12.312875] Not using 800x600 mode: BAD
[ 12.316709] Modeline "800x600": 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
[ 12.324278] Not using 800x600 mode: BAD
[ 12.328101] Modeline "640x480": 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
[ 12.335581] Not using 640x480 mode: BAD
[ 12.339413] Modeline "640x480": 73 31500 640 664 704 832 480 489 492 520 0x40 0xa
[ 12.347004] Not using 640x480 mode: BAD
[ 12.350857] Modeline "640x480": 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
[ 12.358344] Not using 640x480 mode: BAD
[ 12.362185] Modeline "720x400": 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
[ 12.369669] Not using 720x400 mode: BAD
[ 12.373506] Modeline "1280x1024": 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 12.381938] Not using 1280x1024 mode: BAD
[ 12.385944] Modeline "1024x768": 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
[ 12.393854] Not using 1024x768 mode: BAD
[ 12.397774] Modeline "1024x768": 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
[ 12.405685] Not using 1024x768 mode: BAD
[ 12.409603] Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 12.417515] Not using 1024x768 mode: BAD
[ 12.421438] Modeline "832x624": 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
[ 12.429008] Not using 832x624 mode: BAD
[ 12.432840] Modeline "800x600": 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
[ 12.440403] Not using 800x600 mode: BAD
[ 12.444235] Modeline "800x600": 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
[ 12.451800] Not using 800x600 mode: BAD
[ 12.455632] Modeline "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 12.463544] Not using 1280x720 mode: BAD
[ 12.467463] Modeline "1920x1080": 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[ 12.475901] Not using 1920x1080 mode: BAD
[ 12.479912] Modeline "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 12.487832] Not using 1280x720 mode: BAD
[ 12.491757] Modeline "3840x2160": 24 297000 3840 5116 5204 5500 2160 2168 2178 2250 0x40 0x5
[ 12.500186] Not using 3840x2160 mode: BAD
[ 12.504201] Modeline "3840x2160": 25 297000 3840 4896 4984 5280 2160 2168 2178 2250 0x40 0x5
[ 12.512632] Not using 3840x2160 mode: BAD
[ 12.516636] Modeline "3840x2160": 30 297000 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.525068] Not using 3840x2160 mode: PANEL
[ 12.529248] Modeline "3840x2160": 50 594000 3840 4896 4984 5280 2160 2168 2178 2250 0x40 0x5
[ 12.537678] Not using 3840x2160 mode: ERROR
[ 12.541857] Modeline "3840x2160": 60 594000 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.550292] Not using 3840x2160 mode: ERROR
[ 12.554476] Modeline "1280x720": 60 74176 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 12.562386] Not using 1280x720 mode: BAD
[ 12.566306] Modeline "3840x2160": 24 296703 3840 5116 5204 5500 2160 2168 2178 2250 0x40 0x5
[ 12.574736] Not using 3840x2160 mode: BAD
[ 12.578742] Modeline "3840x2160": 30 296703 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.587173] Not using 3840x2160 mode: PANEL
[ 12.591352] Modeline "3840x2160": 60 593407 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
[ 12.599783] Not using 3840x2160 mode: ERROR
[ 12.603969] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 12.612407] Modeline "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 12.620839] Modeline "1920x1080": 60 148352 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[ 12.629277] Modeline "720x576": 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[ 12.636761] Modeline "720x480": 60 27027 720 736 798 858 480 489 495 525 0x40 0xa
[ 12.644244] Modeline "720x480": 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[ 12.651724] Modeline "640x480": 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
[ 12.659202] Modeline "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 12.666683] Modeline "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa