之前用的主线6.6.8,但是用的RGB接口,现在想改成LVDS,DTS配置如下:
panel {
/*compatible = "shelly,sca07010-bfn-lnn", "simple-panel";*/
/*compatible = "cdtech,s070pws19hp-fc21", "simple-panel";*/
compatible = "boe,ev121wxm-n10-1850", "simple-panel";
/*compatible = "tbs,a711-panel", "panel-lvds";*/
backlight = <&backlight>;
panel-timing {
clock-frequency = <71000000>; // 71 MHz pixel clock
hactive = <1280>;
vactive = <800>;
hfront-porch = <48>;
hback-porch = <80>;
hsync-len = <32>;
vfront-porch = <3>;
vback-porch = <10>;
vsync-len = <4>;
hsync-active = <0>; // negative polarity
vsync-active = <0>; // negative polarity
de-active = <1>;
pixelclk-active = <1>; // rising edge
};
port {
panel_input: endpoint {
remote-endpoint = <&tcon_lcd0_out_lvds>;
};
};
};
&tcon_lcd0 {
pinctrl-names = "default";
pinctrl-0 = <&lcd_lvds0_pins>;
status = "okay";
};
&tcon_lcd0_out {
tcon_lcd0_out_lvds: endpoint@0 {
reg = <0>;
remote-endpoint = <&panel_input>;
};
};
系统中有/dev/fb0,但是没有显示,lvds0上面没有信号。求助有没有懂的大佬。多谢!
离线
另外,芒果派之前提供的SDK LVDS显示是不是有问题?RGB显示正常,切换到LVDS后,没显示,用示波器看还是RGB信号。用全志提供的新版相同配置就输出LVDS信号。不过所有驱动和文件系统都要重新再做一遍。。。
离线
目前根据邮件列表里面提到的补丁修改,内核启动提示有LVDS初始化成功和/dev/fb0。但管脚输出没有波形。用TINA正常,确认硬件没问题。
https://lore.kernel.org/linux-riscv/20251116134609.447043-1-kuba@szczodrzynski.pl/T/#t
DT如下:
panel {
/*compatible = "shelly,sca07010-bfn-lnn", "simple-panel";*/
/*compatible = "cdtech,s070pws19hp-fc21", "simple-panel";*/
/*compatible = "boe,ev121wxm-n10-1850", "panel-lvds";*/
compatible = "panel-lvds";
backlight = <&backlight>;
power-supply = <®_3v3>;
enable-gpios = <&pio 4 1 GPIO_ACTIVE_HIGH>;
width-mm = <153>;
height-mm = <90>;
data-mapping = "vesa-24";
panel-timing {
clock-frequency = <71000000>;
hactive = <1280>;
vactive = <800>;
hfront-porch = <48>;
hback-porch = <80>;
hsync-len = <32>;
vfront-porch = <3>;
vback-porch = <10>;
vsync-len = <4>;
hsync-active = <0>; // negative
vsync-active = <0>; // negative
};
port {
panel_input: endpoint {
remote-endpoint = <&tcon_lcd0_out_panel>;
};
};
};
&dphy {
status = "okay";
allwinner,lvds-mode;
};
&de {
status = "okay";
};
/*
&tcon_lcd0 {
pinctrl-names = "default";
pinctrl-0 = <&lcd_rgb666_pins>;
status = "okay";
};
*/
&tcon_lcd0 {
pinctrl-names = "default";
pinctrl-0 = <&lcd_lvds0_pins>;
status = "okay";
};
&tcon_lcd0_out {
tcon_lcd0_out_panel: endpoint@0 {
reg = <0>;
remote-endpoint = <&panel_input>;
};
};
离线