尝试调试双屏异显、同显遇到的难题
1、使用AIO-RK3399_HMIN-I 的开发板,修改了RK-3399-firefly-edp.dts 的timing信息,编译了并点亮了 edp屏幕,现在正常显示,dts文件如下。/dts-v1/;
#include "rk3399-firefly.dtsi"
/ {
model = "Firefly-RK3399 EDP+HDMI+DP(Android)";
compatible = "rockchip,android", "rockchip,rk3399-firefly-edp785-hdmi-dp", "rockchip,rk3399";
edp_panel: edp-panel {
compatible = "simple-panel";
status = "okay";
backlight = <&backlight>;
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <139000000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <55>;
hsync-len = <50>;
hback-porch = <55>;
vfront-porch = <12>;
vsync-len = <8>;
vback-porch = <12>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
ports {
panel_in_edp: endpoint {
remote-endpoint = <&edp_out_panel>;
};
};
power_ctr: power_ctr {
rockchip,debug = <0>;
lcd_en: lcd-en {
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_enable>;
rockchip,delay = <20>;
};
lcd_rst: lcd-rst {
gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_panel_reset>;
rockchip,delay = <20>;
};
lcd_pwr_en: lcd_pwr_en {
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 =<&lcd_panel_pwr_en>;
Rockchip,delay = <20>;
};
};
};
backlight: backlight {
status = "okay";
compatible = "pwm-backlight";
pwms = <&pwm0 0 25000 0>;
brightness-levels = <
0 1 2 3 4 5 6 7
8 9101112131415
1617181920212223
2425262728293031
3233343536373839
4041424344454647
4849505152535455
5657585960616263
6465666768697071
7273747576777879
8081828384858687
8889909192939495
96979899 100 101 102 103
104 105 106 107 108 109 110 111
112 113 114 115 116 117 118 119
120 121 122 123 124 125 126 127
128 129 130 131 132 133 134 135
136 137 138 139 140 141 142 143
144 145 146 147 148 149 150 151
152 153 154 155 156 157 158 159
160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183
184 185 186 187 188 189 190 191
192 193 194 195 196 197 198 199
200 201 202 203 204 205 206 207
208 209 210 211 212 213 214 215
216 217 218 219 220 221 222 223
224 225 226 227 228 229 230 231
232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255>;
default-brightness-level = <200>;
};
};
&edp {
status = "okay";
ports {
edp_out: port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
edp_out_panel: endpoint@0 {
reg = <0>;
remote-endpoint = <&panel_in_edp>;
};
};
};
};
&edp_in_vopl {
status = "disabled";
};
&hdmi {
status = "okay";
};
&hdmi_in_vopb {
status = "disabled";
};
&cdn_dp {
status = "okay";
extcon = <&fusb0>;
phys = <&tcphy0_dp>;
};
&hdmi_dp_sound {
status = "okay";
};
&dp_in_vopb {
status = "disabled";
};
&i2c4 {
status = "okay";
};
&gsl3680 {
status = "okay";
reg = <0x41>;
screen_max_x = <1536>;
screen_max_y = <2048>;
touch-gpio = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
reset-gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
gsl,fw = <2>; // 2: for 7.85 EDP
};
&vopb {
assigned-clocks = <&cru DCLK_VOP0_DIV>;
assigned-clock-parents = <&cru PLL_CPLL>;
};
&vopl {
assigned-clocks = <&cru DCLK_VOP1_DIV>;
assigned-clock-parents = <&cru PLL_VPLL>;
};
&route_edp {
status = "okay";
};
&pinctrl {
lcd-panel {
lcd_panel_reset: lcd-panel-reset {
rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_up>;
};
lcd_panel_enable: lcd-panel-enable {
rockchip,pins = <1 1 RK_FUNC_GPIO &pcfg_pull_up>;
};
lcd_panel_pwr_en: lcd_panel_pwr_en {
rockchip,pins =<1 4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
2、修改了/home/android/device/rockchip/rk3399/rk3399_firefly_aio和rk3399_firefly,目录下的system.Prop;修改内容如下
# default main framebuffer resolution
persist.sys.framebuffer.main=1920x1080
# default primary display
persist.hdmi.ui.state=2
sys.hwc.device.primary=EDP
sys.hwc.device.extend=HDMI-A
ro.usb.connect2pc=false
两个文件都修改成一致的(因为我不知道哪个是生效的)
出现的问题:
1、不接HDMI屏幕时启动,EDP屏幕正常显示。
2、接HDMI时启动,edp屏幕不亮,但是触控能控制(触控使用的usb驱动板)。此时接上hdmi屏幕,edp屏幕无显示,hdmi有显示。拔掉HDMI后,edp屏幕依然无显示。
我现在想要实现双屏异显或者双屏同显,有大神能指点下吗?论坛上说道多屏显示的调试资料太少了,自己实在摸不通了。
页:
[1]