瑞芯微Rockchip开发者社区
直播中

往事只能回首

12年用户 553经验值
私信 关注
[问答]

android dts配置_RK3288的过程是怎样的?

android dts配置_RK3288的过程是怎样的?

回帖(1)

王学超

2022-3-3 09:34:53
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";

;

backlight = ;

//bus-format = ;

enable-gpios = ;//使能引脚

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: 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

  



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 = ;

clock-names = "pclk_lvds";

power-domains = ;

rockchip,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 = ;

};

lvds_in_vopl: endpoint@1 {

reg = <1>;

remote-endpoint = ;

};

};

};

};
举报

更多回帖

发帖
×
20
完善资料,
赚取积分