This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62P-LP:SK-AM62P-LP:双显示设置:用于 WKUP_R5 的 LVDS 和用于 A53 Linux 的 HDMI

Guru**** 2892870 points

Other Parts Discussed in Thread: AM62P

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1635333/sk-am62p-lp-sk-am62p-lp-dual-display-setup-lvds-for-wkup-r5-and-hdmi-for-a53-linux

器件型号: SK-AM62P-LP
主题: AM62P 中讨论的其他器件

尊敬的团队:

Linux SDK: TI-PROCESSOR-SDK-LINUX-am62pxx-EVM-11.02.08.02
MCU SDK:mcu_plus_sdk_am62px_11_02_00_23
引导模式:OSPI

目标是在 TI AM62P 硬件上同时运行两个不同的操作系统。 R5 内核将处理安全关键型指示器、而 A53 内核将在两个屏幕上处理主用户界面。

配置:Linux + RTOS:

  • 处理器:R5 (RTOS) 和 A53 (Linux) 同时运行。
  • LVDS 显示器(共享):R5 内核:显示 Tellales 应用程序(安全层)、 A53 内核:显示仪表盘。
  • HDMI 显示器(专用):A53 内核:IVI(信息娱乐)专用访问。

 在查看 DTS 时、我可以看到这条评论。

HDMI 可以使用 3 个潜在的 VP 进行服务-*(DSS0 VP1/DSS1 VP0/DSS1 VP1)。  

那么、您能帮我将 HDMI 连接到 DSS1 吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Shanooj:
    您能尝试一下我在这个主题中提供的补丁(大约 3 月 5 日): AM62P : AM62Px DSS DPI (RGB Parallel) 支持在 linux/tidss . 它启用来自 DSS1VP0 的 DPI、您需要与此贴片一起启用桥接器。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好 Divyansh Mittal 

    您的意思是:  

    /cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_FROMLIST_2D00_drm_2D00_tidss_2D00_Fix_2D00_sampling_2D00_edge_2D00_configuration.patch


    /cfs-file/__key/communityserver-discussions-components-files/791/0002_2D00_PENDING_2D00_arm64_2D00_dts_2D00_ti_2D00_k3_2D00_am62p_2D00_j722s_2D00_common_2D00_main_2D00_Add_2D00_.patch

    https://www.ti.com/document-viewer/lit/html/SPRADS3#GUID-48E7FAE7-0FD9-45F7-9B73-D986E2578673/GUID-AD5AE475-5593-4A23-9146-89AEE51650C1 

    您能否指定或帮助启用用于 HDMI 的 DSS1?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引述 userid=“648186" url="“ url="~“~/support/processors-group/processors/f/processors-forum/1635333/sk-am62p-lp-sk-am62p-lp-dual-display-setup-lvds-for-wkup-r5-and-hdmi-for-a53-linux/6305363

    您的意思是:  

    /cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_FROMLIST_2D00_drm_2D00_tidss_2D00_Fix_2D00_sampling_2D00_edge_2D00_configuration.patch


    /cfs-file/__key/communityserver-discussions-components-files/791/0002_2D00_PENDING_2D00_arm64_2D00_dts_2D00_ti_2D00_k3_2D00_am62p_2D00_j722s_2D00_common_2D00_main_2D00_Add_2D00_.patch

    [/报价]

    否、以下一个:

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    迪夫扬什·米塔尔 

    我会尝试一下  
    在 MCU+SDK 方面、我们需要 下面所有的补丁捆绑包吗?

    /cfs-file/__key/communityserver-discussions-components-files/791/2337.0001_2D00_dss_2D00_display_2D00_share_2D00_enable_2D00_DPI_2D00_HDMI_2D00_support_2D00_and_2D00_fix_2D00_OL.patch  

    /cfs-file/__key/communityserver-discussions-components-files/791/2337.0002_2D00_dss_2D00_display_2D00_share_2D00_support_2D00_independent_2D00_VP_2D00_mode.patch 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引述 userid=“648186" url="“ url="~“~/support/processors-group/processors/f/processors-forum/1635333/sk-am62p-lp-sk-am62p-lp-dual-display-setup-lvds-for-wkup-r5-and-hdmi-for-a53-linux/6305469

    在 MCU+SDK 方面、我们需要 下面所有的补丁捆绑包吗?

    /cfs-file/__key/communityserver-discussions-components-files/791/2337.0001_2D00_dss_2D00_display_2D00_share_2D00_enable_2D00_DPI_2D00_HDMI_2D00_support_2D00_and_2D00_fix_2D00_OL.patch  

    /cfs-file/__key/communityserver-discussions-components-files/791/2337.0002_2D00_dss_2D00_display_2D00_share_2D00_support_2D00_independent_2D00_VP_2D00_mode.patch 

    [/报价]

    您可以根据需要获得它、但并非需要。 默认 SDK 中启用通过 DSS0 在同一 VP 上基于 LVDS 的显示共享。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Shanooj:
    请使用以下补丁代替上述补丁。 无需修改驱动程序:

    diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
    index 740c25d92..9ac0313b2 100644
    --- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
    +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
    @@ -43,8 +43,7 @@ framebuffer0: framebuffer@0 {
     			compatible = "simple-framebuffer";
     			power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>;
     			clocks = <&k3_clks 186 6>,
    -				 <&dss0_vp1_clk>,
    -				 <&k3_clks 186 2>;
    +				 <&dss0_vp1_clk>;
     			display = <&dss0>;
     			status = "disabled";
     		};
    @@ -594,7 +593,7 @@ port@0 {
     				reg = <0>;
     
     				sii9022_in: endpoint {
    -					remote-endpoint = <&dss0_dpi1_out>;
    +					remote-endpoint = <&dss1_dpi0_out>;
     				};
     			};
     
    @@ -884,16 +883,32 @@ &dss_oldi_io_ctrl {
     &dss0 {
     	bootph-all;
     	status = "okay";
    +};
    +
    +&dss1 {
    +	status = "okay";
     	pinctrl-names = "default";
     	pinctrl-0 = <&main_dpi_pins_default>;
    +
    +	clocks = <&k3_clks 232 8>,
    +		 <&k3_clks 232 0>,
    +		 <&k3_clks 232 4>;
    +
    +	assigned-clocks = <&k3_clks 241 0>,	/* DSS1-VP0 */
    +			  <&k3_clks 240 0>,	/* DSS1-VP1 */
    +			  <&k3_clks 245 0>;	/* DPI Output */
    +
    +	assigned-clock-parents = <&k3_clks 241 2>,	/* PLL 17 HDMI */
    +				 <&k3_clks 240 1>,	/* PLL 18 DSI */
    +				 <&k3_clks 245 2>;	/* DSS1-DPI0 */
     };
     
    -&dss0_ports {
    -	/* DSS0-VP2: DPI/HDMI Output */
    -	hdmi0_dss: port@1 {
    -		reg = <1>;
    +&dss1_ports {
    +	/* DSS1-VP0: DPI/HDMI Output */
    +	port@0 {
    +		reg = <0>;
     
    -		dss0_dpi1_out: endpoint {
    +		dss1_dpi0_out: endpoint {
     			remote-endpoint = <&sii9022_in>;
     		};
     	};
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好 Divyansh Mittal 

    我 已经 尝试了这两个修补程序。  

    但是、当 LVDS 共享工作时、HDMI 未检测到。
    日志:  

    e2e.ti.com/.../1727.log.txt

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好的、明天结束时会检查。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Shanooj:
    我能够复制错误。 该补丁不支持显示共享用例、但在启用显示共享时失败。 正在努力解决这个问题。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Shanooj:
    请尝试此补丁。 在我结束时测试:

    diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
    index 740c25d92..cb15bbb8e 100644
    --- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
    +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts
    @@ -43,8 +43,7 @@ framebuffer0: framebuffer@0 {
     			compatible = "simple-framebuffer";
     			power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>;
     			clocks = <&k3_clks 186 6>,
    -				 <&dss0_vp1_clk>,
    -				 <&k3_clks 186 2>;
    +				 <&dss0_vp1_clk>;
     			display = <&dss0>;
     			status = "disabled";
     		};
    @@ -594,7 +593,7 @@ port@0 {
     				reg = <0>;
     
     				sii9022_in: endpoint {
    -					remote-endpoint = <&dss0_dpi1_out>;
    +					remote-endpoint = <&dss1_dpi0_out>;
     				};
     			};
     
    @@ -884,16 +883,43 @@ &dss_oldi_io_ctrl {
     &dss0 {
     	bootph-all;
     	status = "okay";
    +};
    +
    +&dss1 {
    +	status = "okay";
    +	/*
    +	 * Only DSS1's own PD (232) is needed here. Drop OLDI1 (PD 244) from
    +	 * the base DTSI list: that PD is physically a DSS0 resource held by
    +	 * the R5 display-share firmware for dual-LVDS. DSS1 is DPI-only so
    +	 * OLDI1 is unused, and its presence causes pm_runtime_get_sync() to
    +	 * fail (refcount=0, TI SCI rejects the first Linux power-on request
    +	 * while R5 holds the domain) → device_link_add() returns NULL → -EINVAL.
    +	 * Without shared mode DSS0 activates PD 244 first so DSS1 never
    +	 * triggers the TI SCI call itself, masking the problem.
    +	 */
    +	power-domains = <&k3_pds 232 TI_SCI_PD_EXCLUSIVE>;
     	pinctrl-names = "default";
     	pinctrl-0 = <&main_dpi_pins_default>;
    +
    +	clocks = <&k3_clks 232 8>,
    +		 <&k3_clks 232 0>,
    +		 <&k3_clks 232 4>;
    +
    +	assigned-clocks = <&k3_clks 241 0>,	/* DSS1-VP0 */
    +			  <&k3_clks 240 0>,	/* DSS1-VP1 */
    +			  <&k3_clks 245 0>;	/* DPI Output */
    +
    +	assigned-clock-parents = <&k3_clks 241 2>,	/* PLL 17 HDMI */
    +				 <&k3_clks 240 1>,	/* PLL 18 DSI */
    +				 <&k3_clks 245 2>;	/* DSS1-DPI0 */
     };
     
    -&dss0_ports {
    -	/* DSS0-VP2: DPI/HDMI Output */
    -	hdmi0_dss: port@1 {
    -		reg = <1>;
    +&dss1_ports {
    +	/* DSS1-VP0: DPI/HDMI Output */
    +	port@0 {
    +		reg = <0>;
     
    -		dss0_dpi1_out: endpoint {
    +		dss1_dpi0_out: endpoint {
     			remote-endpoint = <&sii9022_in>;
     		};
     	};
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Divyansh Mittal 

    会尝试进行此更改。

    你能帮我做这件事吗: 链接 也是