3288最强功能之一就是双屏异显,7.1以上不需要打补丁,RK已经把补丁打好,只需要配置dts以及build.prop变量即可。
1.配置dts支持mipi+edp双屏显示:
首先是mipi的dts配置
&dsi0 {
status = "okay";
//rockchip,lane-rate = <400>;
panel: panel {
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
//enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; //gpio7_a3 mark
//reset-gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
power-supply = <&vcc_lcd>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET|MIPI_DSI_MODE_VIDEO_HBP)>;
dsi,format = ;
dsi,lanes = <4>;
reset-delay-ms = <20>;
init-delay-ms = <20>;
enable-delay-ms = <120>;
prepare-delay-ms = <120>;
status = "okay";
panel-init-sequence = [
05 78 01 11
05 14 01 29
];
panel-exit-sequence = [
05 64 01 28
05 96 01 10
];
disp_timings: display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <95000000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <48>;
hsync-len = <32>;
hback-porch = <80>;
vfront-porch = <10>;
vsync-len = <5>;
vback-porch = <16>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
&dsi1 {
status = "disabled";
};
&route_dsi0 {
status = "okay";
connect = <&vopl_out_dsi0>;
};
&dsi0_in_vopl {
status = "okay";
};
&dsi0_in_vopb {
status = "disabled";
};
edp显示的配置:
&edp_panel {
;
//backlight = <&backlight1>;
//backlight = <&backlight>
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <10>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
status = "okay";
display-timings {
native-mode = <&F402>;
F402: timing0 {
clock-frequency = <88266000>;
hactive = <1600>;
vactive = <900>;
hfront-porch = <270>;
hsync-len = <100>;
hback-porch = <100>;
vfront-porch = <20>;
vsync-len = <20>;
vback-porch = <30>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
&edp {
status = "okay";
};
&edp_phy {
status = "okay";
};
&route_edp {
status = "okay";
connect = <&vopb_out_edp>;
};
&edp_in_vopb {
status = "okay";
};
&edp_in_vopl {
status = "disabled";
};
双屏由于需要两个背光控制,所以需要写两个backlight节点,我在edp这里,并没有绑定backlight节点,但可以在Hardware通过节点直接调节。直接在这里绑定backlight节点,会导致系统无法跑起来,没有仔细研究,因此没有做绑定
2.设置build.prop变量
sys.hwc.device.primary=eDP
sys.hwc.device.extend=DSI
3288最强功能之一就是双屏异显,7.1以上不需要打补丁,RK已经把补丁打好,只需要配置dts以及build.prop变量即可。
1.配置dts支持mipi+edp双屏显示:
首先是mipi的dts配置
&dsi0 {
status = "okay";
//rockchip,lane-rate = <400>;
panel: panel {
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
//enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; //gpio7_a3 mark
//reset-gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
power-supply = <&vcc_lcd>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET|MIPI_DSI_MODE_VIDEO_HBP)>;
dsi,format = ;
dsi,lanes = <4>;
reset-delay-ms = <20>;
init-delay-ms = <20>;
enable-delay-ms = <120>;
prepare-delay-ms = <120>;
status = "okay";
panel-init-sequence = [
05 78 01 11
05 14 01 29
];
panel-exit-sequence = [
05 64 01 28
05 96 01 10
];
disp_timings: display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <95000000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <48>;
hsync-len = <32>;
hback-porch = <80>;
vfront-porch = <10>;
vsync-len = <5>;
vback-porch = <16>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
&dsi1 {
status = "disabled";
};
&route_dsi0 {
status = "okay";
connect = <&vopl_out_dsi0>;
};
&dsi0_in_vopl {
status = "okay";
};
&dsi0_in_vopb {
status = "disabled";
};
edp显示的配置:
&edp_panel {
;
//backlight = <&backlight1>;
//backlight = <&backlight>
enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
enable-delay-ms = <10>;
pinctrl-0 = <&lcd_cs>;
power-supply = <&vcc_lcd>;
status = "okay";
display-timings {
native-mode = <&F402>;
F402: timing0 {
clock-frequency = <88266000>;
hactive = <1600>;
vactive = <900>;
hfront-porch = <270>;
hsync-len = <100>;
hback-porch = <100>;
vfront-porch = <20>;
vsync-len = <20>;
vback-porch = <30>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
&edp {
status = "okay";
};
&edp_phy {
status = "okay";
};
&route_edp {
status = "okay";
connect = <&vopb_out_edp>;
};
&edp_in_vopb {
status = "okay";
};
&edp_in_vopl {
status = "disabled";
};
双屏由于需要两个背光控制,所以需要写两个backlight节点,我在edp这里,并没有绑定backlight节点,但可以在Hardware通过节点直接调节。直接在这里绑定backlight节点,会导致系统无法跑起来,没有仔细研究,因此没有做绑定
2.设置build.prop变量
sys.hwc.device.primary=eDP
sys.hwc.device.extend=DSI
举报