查看: 3520|回复: 2

[求助] 米尔MYC-C8MMX & MYD-C8MMX 驱动1920x1080 LCD?

[复制链接]
  • TA的每日心情
    开心
    2020-4-1 17:11
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    1

    主题

    5

    帖子

    0

    新手上路

    Rank: 1

    积分
    22
    最后登录
    2020-4-29
    发表于 2020-4-1 14:10:41 | 显示全部楼层 |阅读模式
    核心板:MYC-C8MMX
    开发板:MYD-C8MMX
    液晶面板:ST2151B01-1
    使用官方给的dtb下的:myb-fsl-imx8mm-st2151b0.dtb
    屏幕点不亮。
    使用官方给的:myb-fsl-imx8mm-me190etn01.dtb 驱动AUO M190ET屏幕就OK。
    上述两个评率都是双8 LVDS,说明硬件对外输出没有问题。
    莫非该开发板双8 LVDS跑不了1900*1080分辨率?
    如果不是硬件问题,如何修改呢?看了MIPI 、桥接芯片和屏幕的手册,貌似没有啥问题。
    多谢!

    以下是st2151 对应dts:
    /*
    * Copyright 2019 MYiR Devices
    */
    /{
            lvds_backlight0: lvds_backlight@0 {
                    compatible = "pwm-backlight";
                    pwms = <&pwm1 0 5000000 >;
                    pinctrl-0 = <&pinctrl_lvds0_pwm1>;
                    enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
                    brightness-levels = < 0  1  2  3  4  5  6  7  8  9
                                         10 11 12 13 14 15 16 17 18 19
                                         20 21 22 23 24 25 26 27 28 29
                                         30 31 32 33 34 35 36 37 38 39
                                         40 41 42 43 44 45 46 47 48 49
                                         50 51 52 53 54 55 56 57 58 59
                                         60 61 62 63 64 65 66 67 68 69
                                         70 71 72 73 74 75 76 77 78 79
                                         80 81 82 83 84 85 86 87 88 89
                                         90 91 92 93 94 95 96 97 98 99
                                        100>;
                    default-brightness-level = <80>;
            };
    };

    &lcdif{
            max-res = <1920>, <1080>;
    };

    &mipi_dsi{
            panel@0 {
                    compatible = "toshiba,panel-tc358775";
                    reg = <0>;

                    panel-width-mm = <1920>;
                    panel-height-mm = <1080>;
                   
                    toshiba,debug = <1>;
                    toshiba,ppi_tx_rx_ta = <0x000A000C>;
                    toshiba,ppi_lptxtimecnt = <0x00000008>;
                    toshiba,ppi_d0s_clrsipocount = <0x0000000D>;
                    toshiba,ppi_d1s_clrsipocount = <0x0000000D>;
                    toshiba,ppi_d2s_clrsipocount = <0x0000000D>;
                    toshiba,ppi_d3s_clrsipocount = <0x0000000D>;
                    toshiba,ppi_laneenable = <0x0000001f>;
                    toshiba,dsi_laneenable = <0x0000001f>;
                    toshiba,ppi_sartppi = <0x00000001>;
                    toshiba,dsi_sartppi = <0x00000001>;
                   
                    toshiba,vpctrl = <0x03F00100>;
                    toshiba,htim1 = <0x00550006>;
                    toshiba,htim2 = <0x00780780>;
                    toshiba,vtim1 = <0x00280008>;
                    toshiba,vtim2 = <0x005a0438>;
                    toshiba,vfuen = <0x00000001>;
                    toshiba,lvphy0 = <0x00448006>;
                    toshiba,lvphy0_1 = <0x00048006>;
                    toshiba,sysrst = <0x00000004>;

                    toshiba,lvmx0003 = <0x03020100>;
                    toshiba,lvmx0407 = <0x08050704>;
                    toshiba,lvmx0811 = <0x0f0e0a09>;
                    toshiba,lvmx1215 = <0x100d0c0b>;
                    toshiba,lvmx1619 = <0x12111716>;
                    toshiba,lvmx2023 = <0x1b151413>;
                    toshiba,lvmx2427 = <0x061a1918>;
                    toshiba,lvcfg = <0x00000433>;
                   
                    backlight = <&lvds_backlight0>;
                    client-device  = <&tc358775>;
                   
                    display-timings {
                                    native-mode = <&timing0>;
                                    timing0:timing0{
                                            clock-frequency = <148500000>;

                                            hsync-len = <6>;
                                            hfront-porch = <120>;
                                            hactive = <1920>;
                                            hback-porch = <85>;

                                            vsync-len = <8>;
                                            vfront-porch = <80>;
                                            vactive = <1079>;
                                            vback-porch = <41>;
                                           
                                            vsync-active = <0>;
                                            hsync-active =<0>;
                                            de-active =<0>;
                                            pixelclk-active =<0>;
                                    };
                    };
                   
            };

    };

    &iomuxc {
            imx8mm-evk {
                    pinctrl_lvds0_pwm1: lvds0pwm1grp {
                            fsl,pins = <
                                    MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8        0x19
                                   
                            >;
                    };
                    pinctrl_pwm1: lvds0pwm1grp {
                            fsl,pins = <
                                    MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x19
                            >;
                    };


            };

    };

    &pwm1 {
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_pwm1>;
            status = "okay";
    };


    我知道答案 目前已有2人回答
    该会员没有填写今日想说内容.
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2020-4-1 17:11
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    1

    主题

    5

    帖子

    0

    新手上路

    Rank: 1

    积分
    22
    最后登录
    2020-4-29
     楼主| 发表于 2020-4-1 14:11:27 | 显示全部楼层
    再贴一个AUO 19” 1280x1024 双八dts,这个可以正常工作。
    /{
            lvds_backlight0: lvds_backlight@0 {
                    compatible = "pwm-backlight";
                    pwms = <&pwm1 0 5000000 >;
                    enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
                    brightness-levels = < 0  1  2  3  4  5  6  7  8  9
                                         10 11 12 13 14 15 16 17 18 19
                                         20 21 22 23 24 25 26 27 28 29
                                         30 31 32 33 34 35 36 37 38 39
                                         40 41 42 43 44 45 46 47 48 49
                                         50 51 52 53 54 55 56 57 58 59
                                         60 61 62 63 64 65 66 67 68 69
                                         70 71 72 73 74 75 76 77 78 79
                                         80 81 82 83 84 85 86 87 88 89
                                         90 91 92 93 94 95 96 97 98 99
                                        100>;
                    default-brightness-level = <80>;
            };
    };


    &lcdif{
        status = "okay";
            max-res = <1280>, <1024>;
    };

    &mipi_dsi{
            panel@0 {
                    compatible = "toshiba,panel-tc358775";
                    reg = <0>;
                    pinctrl-0 = <&pinctrl_mipi_dsi_en>;
                    stby-gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
                    reset-gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
                    dsi-lanes = <4>;
                    panel-width-mm = <396>;
                    panel-height-mm = <324>;
                   
                    toshiba,debug = <1>;
                    toshiba,ppi_tx_rx_ta = <0x00050006>;
                    toshiba,ppi_lptxtimecnt = <0x00000004>;
                    toshiba,ppi_d0s_clrsipocount = <0x00000006>;
                    toshiba,ppi_d1s_clrsipocount = <0x00000006>;
                    toshiba,ppi_d2s_clrsipocount = <0x00000006>;
                    toshiba,ppi_d3s_clrsipocount = <0x00000006>;
                    toshiba,ppi_laneenable = <0x0000001f>;
                    toshiba,dsi_laneenable = <0x0000001f>;
                    toshiba,ppi_sartppi = <0x00000001>;
                    toshiba,dsi_sartppi = <0x00000001>;
                   
                    toshiba,vpctrl = <0x03F00100>;
                    toshiba,htim1 = <0x00A00020>;
                    toshiba,htim2 = <0x00300500>;
                    toshiba,vtim1 = <0x001E0007>;
                    toshiba,vtim2 = <0x00030400>;
                    toshiba,vfuen = <0x00000001>;
                    toshiba,lvphy0 = <0x0044802D>;
                    toshiba,lvphy0_1 = <0x0004802D>;
                    toshiba,sysrst = <0x00000004>;

                   
                    toshiba,lvmx0003 = <0x03020100>;
                    toshiba,lvmx0407 = <0x08050704>;
                    toshiba,lvmx0811 = <0x0f0e0a09>;
                    toshiba,lvmx1215 = <0x100d0c0b>;
                    toshiba,lvmx1619 = <0x12111716>;
                    toshiba,lvmx2023 = <0x1b151413>;
                    toshiba,lvmx2427 = <0x061a1918>;
                   
                    toshiba,lvcfg = <0x00000433>;
                   
                    backlight = <&lvds_backlight0>;
                    client-device  = <&tc358775>;
                   
                    display-timings {
                                    native-mode = <&timing0>;
                                    timing0:timing0{
                                            clock-frequency = <91000000>;
                                           
                                            hsync-len = <32>;
                                            hfront-porch = <48>;
                                            hactive = <1280>;
                                            hback-porch = <160>;
                                   
                                            vsync-len = <7>;
                                            vfront-porch = <3>;
                                            vactive = <1024>;
                                            vback-porch = <30>;
                                           
                                            vsync-active = <0>;
                                            hsync-active =<0>;
                                            de-active =<0>;
                                            pixelclk-active =<0>;
                                    };
                    };
            };

    };
    &iomuxc {
         imx8mm-evk {
            pinctrl_pwm1: lvds0pwm1grp {
                 fsl,pins = <
                    MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x19                                                              
                 >;
               };
        };
    };  

    &pwm1 {
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_pwm1>;
            status = "okay";
    };

    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    2

    主题

    108

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    281
    最后登录
    2020-9-10
    发表于 2020-4-7 21:11:09 | 显示全部楼层
    可以看到fb节点吗?
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-21 03:59 , Processed in 0.085920 second(s), 23 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表