RK3288[android 7.1]调试笔记----- lvds屏

1 找到 在要编译的rk3288-evb-android-rk808-edp.dts
加入以下lvds dts配置:

/dts-v1/;
#include "rk3288-evb.dtsi"
#include "rk3288-android.dtsi"
#include 
#include 
#include 


。。。。。。。。
// added for lvds start <<<



&route_lvds {
	status = "okay";
};

&lvds {
	status = "okay";
};

&lvds_in_vopl {
	status = "okay";
};

&lvds_in_vopb {
	status = "disabled";
};

&lvds_panel {
	status = "okay";
	compatible ="simple-panel";
	backlight = <&backlight>;
//	bus-format = ;
	enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>;//使能引脚
	enable-delay-ms = <10>;
	rockchip,data-mapping = "vesa";
//	rockchip,data-mapping = "jeida";
	rockchip,data-width = <24>;
	rockchip,output = "duallvds";

	display-timings {
		native-mode = <&lvds_panel_name>;
		lvds_panel_name: timing0 {
			creen-type = ;
			lvds-format = ;
			out-face    = ;
			clock-frequency = <148000000>;
			hactive = <1920>;
			vactive = <1080>;
			hback-porch = <100>;
			hfront-porch = <160>;
			vback-porch = <25>;
			vfront-porch = <10>;
			hsync-len = <1>;
			vsync-len = <1>;
			hsync-active = <20>;
			vsync-active = <10>;
			de-active = <0>;
			pixelclk-active = <0>;
		};
	};
};

// added lvds end <<<


。。。。。。。。

注:从原理图可以知道该lvds的enable-gpios 是GPIO7_A3
RK3288[android 7.1]调试笔记----- lvds屏_第1张图片

RK3288[android 7.1]调试笔记----- lvds屏_第2张图片

2.编译kernel,烧写固件,绑定lvds成功会有以下log出现

[    2.236060] rockchip-drm display-subsystem: bound ff96c000.lvds (ops rockchip_lvds_component_ops)
[    2.236091] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).

在rk3288.dtsi中可以知道lvds地址是 ff96c000

。。。。。。。。。。。。。。。

lvds: lvds@ff96c000 {
		compatible = "rockchip,rk3288-lvds";
		reg = <0x0 0xff96c000 0x0 0x4000>;
		clocks = <&cru PCLK_LVDS_PHY>;
		clock-names = "pclk_lvds";
		power-domains = <&power RK3288_PD_VIO>;
		rockchip,grf = <&grf>;
		status = "disabled";

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			lvds_in: port@0 {
				reg = <0>;

				#address-cells = <1>;
				#size-cells = <0>;

				lvds_in_vopb: endpoint@0 {
					reg = <0>;
					remote-endpoint = <&vopb_out_lvds>;
				};
				lvds_in_vopl: endpoint@1 {
					reg = <1>;
					remote-endpoint = <&vopl_out_lvds>;
				};
			};
		};
	};
。。。。。。。。。。。。。。。。。。。。。。

你可能感兴趣的:(调试笔记,RK)