1 找到 在要编译的rk3288-evb-android-rk808-edp.dts
加入以下edp dts配置:
/dts-v1/;
#include "rk3288-evb.dtsi"
#include "rk3288-android.dtsi"
#include
#include
#include
。。。。。。。。
// added for edp start <<<
&edp {
status = "okay";
};
&edp_phy {
status = "okay";
};
&route_edp {
status = "okay";
};
&edp_in_vopb {
status = "okay";
};
&edp_in_vopl {
status = "disabled";
};
&edp_panel {
// compatible = "simple-panel";
;
backlight = <&backlight>;
power-supply = <&vcc_lcd>;
status = "okay";
disp_timings: display-timings {
native-mode = <&edp_panel_name>;
edp_panel_name: timing0 {
clock-frequency = <158000000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <48>;
hsync-len = <4>;
hback-porch = <310>;
vfront-porch = <3>;
vsync-len = <4>;
vback-porch = <60>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
// added edp end >>>
。。。。。。。。
2.编译kernel,烧写固件,绑定edp成功会有以下log出现
[ 1.535994] rockchip-drm display-subsystem: bound ff970000.dp (ops rockchip_dp_component_ops)
[ 1.536006] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
在rk3288.dtsi中可以知道edp地址是ff970000
。。。。。。。。。。
edp: dp@ff970000 {
compatible = "rockchip,rk3288-dp";
reg = <0x0 0xff970000 0x0 0x4000>;
interrupts = ;
clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
clock-names = "dp", "pclk";
power-domains = <&power RK3288_PD_VIO>;
phys = <&edp_phy>;
phy-names = "dp";
resets = <&cru SRST_EDP>;
reset-names = "dp";
rockchip,grf = <&grf>;
status = "disabled";
ports {
#address-cells = <1>;
#size-cells = <0>;
edp_in: port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
edp_in_vopb: endpoint@0 {
reg = <0>;
remote-endpoint = <&vopb_out_edp>;
};
edp_in_vopl: endpoint@1 {
reg = <1>;
remote-endpoint = <&vopl_out_edp>;
};
};
};
};
。。。。。。。。。
1 找到 在要编译的rk3288-evb-android-rk808-edp.dts
加入以下edp dts配置:
/dts-v1/;
#include "rk3288-evb.dtsi"
#include "rk3288-android.dtsi"
#include
#include
#include
。。。。。。。。
// added for edp start <<<
&edp {
status = "okay";
};
&edp_phy {
status = "okay";
};
&route_edp {
status = "okay";
};
&edp_in_vopb {
status = "okay";
};
&edp_in_vopl {
status = "disabled";
};
&edp_panel {
// compatible = "simple-panel";
;
backlight = <&backlight>;
power-supply = <&vcc_lcd>;
status = "okay";
disp_timings: display-timings {
native-mode = <&edp_panel_name>;
edp_panel_name: timing0 {
clock-frequency = <158000000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <48>;
hsync-len = <4>;
hback-porch = <310>;
vfront-porch = <3>;
vsync-len = <4>;
vback-porch = <60>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
// added edp end >>>
。。。。。。。。
2.编译kernel,烧写固件,绑定edp成功会有以下log出现
[ 1.535994] rockchip-drm display-subsystem: bound ff970000.dp (ops rockchip_dp_component_ops)
[ 1.536006] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
在rk3288.dtsi中可以知道edp地址是ff970000
。。。。。。。。。。
edp: dp@ff970000 {
compatible = "rockchip,rk3288-dp";
reg = <0x0 0xff970000 0x0 0x4000>;
interrupts = ;
clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
clock-names = "dp", "pclk";
power-domains = <&power RK3288_PD_VIO>;
phys = <&edp_phy>;
phy-names = "dp";
resets = <&cru SRST_EDP>;
reset-names = "dp";
rockchip,grf = <&grf>;
status = "disabled";
ports {
#address-cells = <1>;
#size-cells = <0>;
edp_in: port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
edp_in_vopb: endpoint@0 {
reg = <0>;
remote-endpoint = <&vopb_out_edp>;
};
edp_in_vopl: endpoint@1 {
reg = <1>;
remote-endpoint = <&vopl_out_edp>;
};
};
};
};
。。。。。。。。。
举报