本帖最后由 晓宇2010 于 2016-1-12 20:22 编辑
平台:imx6q
bsp:yocto 3.14.28
据我看内核dts文件,好像官方的kernel 的lvds默认为lvds1显示,但我买的开发板使用的是lvds0显示的,请问如何修改dts文件,使其默认在lvds0显示呢?
现在我插上lvds 屏是没有显示,请帮忙解答下,谢谢!
另还有个我的屏是24位的,官方的是18位的,请问是否只需要做如下修改即可?
官方的:
- mxcfb1: fb@0 {
- compatible = "fsl,mxc_sdc_fb";
- disp_dev = "ldb";
- interface_pix_fmt = "RGB666";
- default_bpp = <16>;
- int_clk = <0>;
- late_init = <0>;
- status = "disabled";
- };
我修改的:
- mxcfb1: fb@0 {
- compatible = "fsl,mxc_sdc_fb";
- disp_dev = "ldb";
- interface_pix_fmt = "RGB24";
- default_bpp = <32>;
- int_clk = <0>;
- late_init = <0>;
- status = "okay";
- };
第2处:
- &ldb {
- status = "okay";
- lvds-channel@0 {
- fsl,data-mapping = "spwg";
- fsl,data-width = <18>;
- status = "okay";
- display-timings {
- native-mode = <&timing0>;
- timing0: hsd100pxn1 {
- clock-frequency = <65000000>;
- hactive = <1024>;
- vactive = <768>;
- hback-porch = <220>;
- hfront-porch = <40>;
- vback-porch = <21>;
- vfront-porch = <7>;
- hsync-len = <60>;
- vsync-len = <10>;
- };
- };
- };
- lvds-channel@1 {
- fsl,data-mapping = "spwg";
- fsl,data-width = <18>;
- primary;
- status = "okay";
- display-timings {
- native-mode = <&timing1>;
- timing1: hsd100pxn1 {
- clock-frequency = <65000000>;
- hactive = <1024>;
- vactive = <768>;
- hback-porch = <220>;
- hfront-porch = <40>;
- vback-porch = <21>;
- vfront-porch = <7>;
- hsync-len = <60>;
- vsync-len = <10>;
- };
- };
- };
- };
我修改为(timing根据我的屏计算出来的):
- &ldb {
- status = "okay";
- lvds-channel@0 {
- fsl,data-mapping = "spwg";
- fsl,data-width = <24>;
- primary;
- status = "okay";
- display-timings {
- native-mode = <&timing1>;
- timing1: hsd100pxn1 {
- clock-frequency = <43539000>;
- hactive = <1024>;
- vactive = <600>;
- hback-porch = <60>;
- hfront-porch = <36>;
- vback-porch = <11>;
- vfront-porch = <10>;
- hsync-len = <29>;
- vsync-len = <10>;
- };
- };
- };
- };
|