工具/软件:
将面板设置为 am62x 上的 OLDI LVDS。 面板是单链路面板。 但是、设置后、图像仅显示在 LCD 的左侧。 图像将全部显示、但显示在左侧。 这是为什么? 这是器件树的一部分。
panel-lvds {
compatible = "panel-lvds";
backlight = <&backlight>;
data-mapping = "jeida-24";
rotation = <0>;
width-mm = <95>;
height-mm = <55>;
status = "okay";
panel-timing {
clock-frequency = <25000000>;
hactive = <800>;
vactive = <480>;
hback-porch = <8>;
hfront-porch = <8>;
hsync-len = <4>;
vback-porch = <16>;
vfront-porch = <16>;
vsync-len = <4>;
de-active = <1>;
pixelclk-active = <1>;
};
port {
panel_input: endpoint {
remote-endpoint = <&oldi0_output>;
};
};
};
backlight: ecap1-backlight {
compatible = "pwm-backlight";
pwms = <&ecap1 0 1000000 0>;
brightness-levels = <0 64 128 192 255>;
default-brightness-level = <4>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_backlight>;
status = "okay";
};
&oldi0 {
status = "okay";
};
&oldi0_ports {
#address-cells = <1>;
#size-cells = <0>;
// DSS → OLDI0
port@0 {
reg = <0>;
oldi0_input: endpoint {
remote-endpoint = <&dss_to_oldi>;
};
};
// OLDI0 → Panel
port@1 {
reg = <1>;
oldi0_output: endpoint {
remote-endpoint = <&panel_input>;
};
};
};
&dss_ports {
#address-cells = <1>;
#size-cells = <0>;
/* port@0: OLDI output */
port@0 {
reg = <0>;
dss_to_oldi: endpoint {
remote-endpoint = <&oldi0_input>;
};
};
};
&ecap1 {
status = "okay";
};
oldi-txes {
#address-cells = <1>;
#size-cells = <0>;
oldi0: oldi@0 {
reg = <0>;
clocks = <&k3_clks 186 0>;
clock-names = "s_clk";
/*ti,companion-oldi = <&oldi1>; */
ti,oldi-io-ctrl = <&dss_oldi_io_ctrl>;
status = "disabled";
oldi0_ports: ports {
};
};
/*oldi1: oldi@1 {
reg = <1>;
ti,secondary-oldi;
status = "disabled";
oldi1_ports: ports {
};
};*/
};
dss_ports: ports {
#address-cells = <1>;
#size-cells = <0>;
};
};