RK3399本身不带LVDS输出,rk3288就有各种接口,差!!!! 可是他的性能强啊,我们还是分析怎么实现。
实现框架: 原理图:
8775供电
lvds标准接口
看到了吧,硬件如此简单。
软件有点麻烦了。
要弄一推补丁
修个各种mipi指令、gpio,调VOB通道等等
dts配置 panel: panel { compatible= "simple-panel"; backlight= <&backlight>; power-supply= <&vcc_lcd>; enable-gpios= <&gpio1 13 GPIO_ACTIVE_HIGH>; prepare-delay-ms= <20>; enable-delay-ms= <20>; display-timings{ native-mode= <&timing0>; timing0: timing0 { clock-frequency= <200000000>; hactive= <1920>;//1536 vactive= <1080>;//2048 hfront-porch= <12>; hsync-len= <16>; hback-porch= <48>; vfront-porch= <8>; vsync-len= <4>; vback-porch= <8>; hsync-active= <0>; vsync-active= <0>; de-active = <0>; pixelclk-active =<0>; &dsi { status ="okay"; rockchip,lane-rate= <900>; panel@0 { //status= "okay"; compatible="simple-panel-dsi"; reg= <0>; backlight= <&backlight>; //power-supply= <&vcc_lcd>; enable-gpios= <&gpio3 16 GPIO_ACTIVE_HIGH>; //enable-gpios= <&gpio2 9 GPIO_ACTIVE_HIGH>;// tc35 stby 2_b1 reset-gpios = <&gpio2 27GPIO_ACTIVE_LOW>; dsi,flags= <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM |MIPI_DSI_MODE_EOT_PACKET)>; dsi,format= ; dsi,lanes= <4>; enable-delay-ms = <35>; prepare-delay-ms = <6>; delay,power= <10>; delay,reset= <20>; unprepare-delay-ms = <0>; disable-delay-ms = <20>; size,width= <120>; size,height = <170>; status = "okay";
timing1: timing1 { clock-frequency= <148500000>; hactive= <1920>; vactive= <1080>; hback-porch = <100>; hsync-len= <20>; hfront-porch= <160>; vback-porch= <25>; vfront-porch= <10>; vsync-len= <10>; hsync-active= <0>; vsync-active= <0>; de-active = <0>; pixelclk-active =<0>;
结果终于搞定
|