瑞芯微Rockchip开发者社区
登录
直播中
往事只能回首
12年用户
553经验值
私信
关注
[问答]
android dts配置_RK3288的过程是怎样的?
开启该帖子的消息推送
RK3288
Android
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 = ;
};
};
};
};
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 = ;
};
};
};
};
举报
更多回帖
rotate(-90deg);
回复
相关问答
RK3288
Android
在编译的
rk3288
中
怎样
加入edp
dts
配置
呢
2022-03-04
1163
如何对[
RK3288
][
Android
6.0] 上的eDP显示屏进行
配置
呢
2022-03-10
3158
RK3288
Android
5.1系统编译需要注意哪些问题
2022-04-13
3413
RK3288
android
7.1.2 内核极其源码编译
过程
是
怎样
的步骤?
2022-03-03
918
RK3288
Android
7.1 eMMC的
DTS
怎么设置?
2022-03-03
1419
怎样
去解决
RK3288
Android
7.1系统虚拟按键方向不对的问题呢
2022-03-03
1208
怎样
去解决
RK3288
Android
6.0调试时出现几个USB摄像头打开预览时卡住的问题呢
2022-03-03
1871
如何对
RK3288
Android
7.1 SD 3.0进行调试?
2022-03-03
843
请问一下
怎样
对
RK3288
[
android
7.1]的mipi屏进行调试呢
2022-03-03
1637
怎样
去搭建一种
rk3288
android
编译环境
2022-03-03
1565
发帖
登录/注册
20万+
工程师都在用,
免费
PCB检查工具
无需安装、支持浏览器和手机在线查看、实时共享
查看
点击登录
登录更多精彩功能!
英国威廉希尔公司网站
william hill官网 版块
小组
免费开发板试用
ebook
直播
搜索
登录
×
20
完善资料,
赚取积分