Firefly开源社区

打印 上一主题 下一主题

RK3399 只使用DSI1接LCD如何修改DTS

59

积分

0

威望

0

贡献

技术小白

积分
59

RK3399 只使用DSI1接LCD如何修改DTS

发表于 2019-7-29 16:56:07      浏览:9132 | 回复:5        打印      只看该作者   [复制链接] 楼主
&backlight {
        status = "okay";
        pwms = <&pwm1 0 25000 0>;
};

&pwm1 {
        status = "okay";
};

&dsi{
        status = "disabled";
};

&dsi1{
        status = "okay";
        dsi_panel: panel {
                compatible ="simple-panel-dsi";
                reg = <0>;
                //ddc-i2c-bu
                //power-supply = <&vcc_lcd>;
                //pinctrl-0 = <&lcd_panel_reset &lcd_panel_enable>;
                backlight = <&backlight>;
                /*
                enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;*/
               
                //dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST /*| MIPI_DSI_MODE_VIDEO_SYNC_PULSE*/)>;
                dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |MIPI_DSI_MODE_LPM)>;
                dsi,format = <MIPI_DSI_FMT_RGB888>;
        /*        bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;*/
                dsi,lanes = <4>;

        dsi,channel = <0>;

        enable-delay-ms = <10>;
        reset-delay-ms = <50>;
        stb-delay-ms = <10>;
        cs-delay-ms = <10>;
               
        prepare-delay-ms = <50>;
        init-delay-ms = <50>;
        disable-delay-ms = <50>;
        unprepare-delay-ms = <50>;

        /*enable-delay-ms = <35>;
        prepare-delay-ms = <6>;*/
                /*
        delay,power = <10>;
        delay,reset = <250>;

        delay,unreset = <0>;
        delay,unpower = <0>;
                */
        /*unprepare-delay-ms = <0>;
        disable-delay-ms = <20>;*/
               
        size,width = <120>;
        size,height = <170>;

        status = "okay";
                               

        panel-init-sequence = [
            39 05 04 B9 FF 83 94
            39 00 11 BA 13 82 00 16 C5 00 10 FF 0F 24 03 21 24 25 20 08
            39 00 12 B1 01 00 04 C4 03 12 F1 24 2C 3F 3F 47 02 00 E6 E2 A6
            39 00 07 B2 00 C8 0E 30 00 81
            39 00 20 B4 80 04 32 10 08 54 15 0F 22 10 08 47 43 44 0A 4B 43 44 02 55 55 02 06 44 06 5F 0A 6B 70 05 08
            39 00 02 B6 45
            //39 00 37 D5 00 00 00 00 0A 00 01 22 00 22 00 77 54 CB A9 76 54 32 10 AA BB 11 88 88 88 88 88 88 88 76 88 88 54 CB A9 76 54 32 10 AA BB 11 88 88 88 88 88 88 88 76 88 88 3C 01
            39 00 37 D5 00 00 00 00 0A 00 01 22 00 22 66 11 01 01 23 45 67 9A BC AA BB 45 88 88 88 88 88 88 88 67 88 88 08 81 29 83 88 08 48 81 85 28 68 83 87 88 48 85 00 00 00 00 3C 01
            15 00 02 CC 09
            39 00 05 BF 06 02 10 04
            39 00 05 C7 00 10 00 10
            39 00 2B E0 00 08 0e 30 34 3F 1c 39 06 0c 0E 11 14 12 14 11 18 00 18 0e 30 34 3F 1c 39 06 0C 0E 11 14 12 14 11 18 0B 17 07 12 0B 17 07 12
            39 00 03 C0 0C 17
            39 00 03 C6 08 08
            15 00 02 D4 32
            05 c8 01 11
            05 14 01 29
            //05 20 01 29
            //05 96 01 11
        ];

                panel-exit-sequence = [
                        05 05 01 28
                        05 78 01 10
                ];
               
                power_ctr: power_ctr {
               rockchip,debug = <0>;
               lcd_en: lcd-en {
                       gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
                                           pinctrl-names = "default";
                                           pinctrl-0 = <&lcd_panel_enable>;
                       rockchip,delay = <10>;
               };
               lcd_rst: lcd-rst {
                       gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
                                           pinctrl-names = "default";
                                           pinctrl-0 = <&lcd_panel_reset>;
                       rockchip,delay = <6>;
               };
                   };

                disp_timings: display-timings {
                                          native-mode = <&timing0>;
                                          timing0: timing0 {
                                                       clock-frequency = <85000000>;
                                                       hactive = <800>;
                                                       vactive = <1280>;

                                                       hsync-len = <36>; //20
                                                       hback-porch = <118>; //48
                                                       hfront-porch = <118>; //16

                                                       vsync-len = <4>; //10
                                                       vback-porch = <12>; //3
                                                       vfront-porch = <15>; //5

                                                       hsync-active = <0>;
                                                       vsync-active = <0>;
                                                       de-active = <0>;
                                                       pixelclk-active = <0>;
                                                   };
                                      };
        };
};
/*
&mipi_dphy {
        rockchip,dsi-panel = <&dsi_panel>;
        status = "okay";
};*/

&hdmi_dp_sound {
        status = "okay";
};

&route_hdmi {
        status = "okay";
        logo,mode = "center";
};

&cdn_dp {
        status = "disabled";
        extcon = <&fusb0>;
        phys = <&tcphy0_dp>;
};

&hdmi_in_vopl {
        status = "disabled";
};

&dp_in_vopb {
        status = "disabled";
};

&wdt {
    status = "disabled";
};

&i2c1 {
        status = "okay";
        rt5640: rt5640@1c {
                #sound-dai-cells = <1>;
        };

        tc358749x: tc358749x@0f {
                compatible = "toshiba,tc358749x";
                #sound-dai-cells = <0>;
                reg = <0x0f>;
                power-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
                int-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
                pinctrl-names = "default";
                pinctrl-0 = <&hdmiin_gpios>;
                status = "okay";
        };

};

&i2s0 {
        status = "disabled";
};

&i2s2 {
        status = "okay";
};

&vopb {
        assigned-clocks = <&cru DCLK_VOP0_DIV>;
        assigned-clock-parents = <&cru PLL_CPLL>;
};

&vopl {
        assigned-clocks = <&cru DCLK_VOP1_DIV>;
        assigned-clock-parents = <&cru PLL_VPLL>;
};

&route_dsi {
        status = "disabled";
};

&dsi_in_vopb {
        status = "disabled";
};

&dsi_in_vopl {
        status = "disabled";
};

&route_dsi1 {
        status = "okay";
        logo,mode = "center";
};

&dsi1_in_vopb {
        status = "okay";
};

&dsi1_in_vopl {
        status = "disabled";
};&pinctrl {
        lcd-panel {
                lcd_panel_reset: lcd-panel-reset {
                        rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_down>;
                };

                lcd_panel_enable: lcd-panel-enable {
                        rockchip,pins = <1 1 RK_FUNC_GPIO &pcfg_pull_down>;
                };
        };

        sdmmc-pwrseq {
                sdcard_enable_h: sdcard-enable-h {
                        rockchip,pins =
                        <1 20 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };

    pcie {
        pcie_drv: pcie-drv {
            rockchip,pins =
            <0 13 RK_FUNC_GPIO &pcfg_pull_none>;
        };
        
        pcie_3g_drv: pcie-3g-drv {
            rockchip,pins =
            <2 6 RK_FUNC_GPIO &pcfg_pull_up>;
        };
    };

        hdmiin {
                hdmiin_gpios: hdmiin_gpios {
                        rockchip,pins =
                                <2 3 RK_FUNC_GPIO &pcfg_pull_none>,
                                <0 2 RK_FUNC_GPIO &pcfg_pull_none>,
                                <2 28 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
    leds {
        led_power: led-power {
            rockchip,pins = <2 7 RK_FUNC_GPIO &pcfg_pull_none>;
        };

        led_user: led-user {
            rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_none>;
        };
    };
};
回复

使用道具 举报

59

积分

0

威望

0

贡献

技术小白

积分
59
发表于 2019-7-29 16:58:45        只看该作者  沙发

[    1.808979]  parameter: 0x000000000 -- 0x000400000 (4 MB)
[    1.809005]      uboot: 0x000400000 -- 0x000800000 (4 MB)
[    1.809017]      trust: 0x000800000 -- 0x000c00000 (4 MB)
[    1.809029]       misc: 0x000c00000 -- 0x001000000 (4 MB)
[    1.809041]   resource: 0x001000000 -- 0x002000000 (16 MB)
[    1.809052]     kernel: 0x002000000 -- 0x003800000 (24 MB)
[    1.809064]       boot: 0x003800000 -- 0x005800000 (32 MB)
[    1.809078]   recovery: 0x005800000 -- 0x007800000 (32 MB)
[    1.809091]     backup: 0x007800000 -- 0x00e800000 (112 MB)
[    1.809105]      cache: 0x00e800000 -- 0x016800000 (128 MB)
[    1.809119]     system: 0x016800000 -- 0x076800000 (1536 MB)
[    1.809132]   metadata: 0x076800000 -- 0x077800000 (16 MB)
[    1.809145] baseparamer: 0x077800000 -- 0x077c00000 (4 MB)
[    1.809157]   userdata: 0x077c00000 -- 0x3a3a00000 (12990 MB)
[    1.809229]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14
[    1.923498] usb 2-1: New USB device found, idVendor=1a40, idProduct=0201
[    1.923615] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.923642] usb 2-1: Product: USB 2.0 Hub [MTT]
[    1.924846] hub 2-1:1.0: USB hub found
[    1.925061] hub 2-1:1.0: 7 ports detected
[    2.030948] dw-mipi-dsi ff968000.dsi: vop LIT output to dsi0
[    2.031044] dw-mipi-dsi ff968000.dsi: final DSI-Link bandwidth: 564 x 4 Mbps
[    2.041827] dw-mipi-dsi ff968000.dsi: failed to wait for phy lock state
[    2.185689] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.185834] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.208411] usb 2-1.6: new full-speed USB device number 3 using ehci-platform
[    2.215895] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.215942] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.236129] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.236176] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.256222] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.256271] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.276506] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.276555] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.297236] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.297380] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.307601] usb 2-1.6: New USB device found, idVendor=222a, idProduct=0001
[    2.307651] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.307679] usb 2-1.6: Product: ILITEK-TP
[    2.307703] usb 2-1.6: Manufacturer: ILITEK
[    2.318052] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.318109] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.319613] input: ILITEK ILITEK-TP as /devices/platform/fe3c0000.usb/usb2/2-1/2-1.6/2-1.6:1.0/0003:222A:0001.0001/input/input1
[    2.324199] vendor storage:20160801 ret = 0
[    2.338174] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.338221] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.359192] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.359240] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.372849] hid-multitouch 0003:222A:0001.0001: input,hiddev0,hidraw0: USB HID v1.10 Mouse [ILITEK ILITEK-TP] on usb-fe3c0000.usb-1.6/input0
[    2.379954] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.380001] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.400880] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.400927] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.420987] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.421035] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.441251] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.441298] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.455075] usb 2-1.7: new high-speed USB device number 4 using ehci-platform
[    2.461568] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.461616] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.481720] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.481769] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.705724] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.705793] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.815463] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.815532] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.845134] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    2.845183] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    2.885341] usb 2-1.7: New USB device found, idVendor=15aa, idProduct=1555
[    2.885422] usb 2-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.885450] usb 2-1.7: Product: SIT USB2.0 Camera RGB
[    2.885475] usb 2-1.7: Manufacturer: SIT USB2.0 Camera RGB
[    2.885499] usb 2-1.7: SerialNumber: 01.00.00        
[    3.057361] dw-mipi-dsi ff968000.dsi: vop LIT output to dsi0
[    3.057987] dw-mipi-dsi ff968000.dsi: final DSI-Link bandwidth: 564 x 4 Mbps
[    3.069358] dw-mipi-dsi ff968000.dsi: failed to wait for phy lock state
[    3.107085] uvcvideo: Found UVC 1.00 device SIT USB2.0 Camera RGB (15aa:1555)
[    3.138077] input: SIT USB2.0 Camera RGB as /devices/platform/fe3c0000.usb/usb2/2-1/2-1.7/2-1.7:1.0/input/input3
[    3.211520] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.212152] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.241910] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.242518] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.263285] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.263895] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.284638] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.285248] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.306011] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.306620] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.327443] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.328050] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.349337] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.349945] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.370687] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.371295] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.392490] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.393098] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.413867] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.414474] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.435235] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.435843] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.455961] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.456009] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.476230] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.476279] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.496496] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.496544] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.516762] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.516811] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    3.738775] dw-mipi-dsi ff968000.dsi: failed to write command FIFO
[    3.738845] panel-simple-dsi ff968000.dsi.0: failed to write dcs cmd: -110
[    4.043773] rockchip-drm display-subsystem: fb0:  frame buffer device
[    4.057704] mali ff9a0000.gpu: leakage=22
[    4.070930] mali ff9a0000.gpu: temp=49375, pvtm=123523 (123427 + 96)
[    4.072859] mali ff9a0000.gpu: pvtm-sel=1
[    4.075272] mali ff9a0000.gpu: GPU identified as 0x0860 r2p0 status 0
回复

使用道具 举报

26

积分

0

威望

0

贡献

技术小白

积分
26
发表于 2019-11-22 10:29:55        只看该作者  板凳
楼主您好,请问这个问题解决了吗,我现在使用RK3399 DSI1连LCD遇到相同的问题,麻烦您给指导一下
回复

使用道具 举报

35

积分

0

威望

0

贡献

技术小白

积分
35
发表于 2020-2-27 22:11:35        只看该作者  地板
Joeysjy 发表于 2019-11-22 10:29
楼主您好,请问这个问题解决了吗,我现在使用RK3399 DSI1连LCD遇到相同的问题,麻烦您给指导一下

我也是同样问题。请教一下
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2020-3-2 11:29:19        只看该作者  5#
我也是遇到同样的问题,你们有解决吗
回复

使用道具 举报

5

积分

0

威望

0

贡献

吃瓜的群众

积分
5
发表于 2021-1-23 18:33:27        只看该作者  6#
xie xie woyeyiya
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表