ZHCAFK4 July   2025 AM62P

 

  1.   1
  2.   摘要
  3.   商标
  4. 1简介
    1. 1.1 DSS Components
    2. 1.2 使用 DSS 进行 PLL 和输出路由
  5. 2配置各个显示器
    1. 2.1 配置 OLDI
    2. 2.2 配置 DPI
    3. 2.3 配置 DSI
  6. 3配置同时显示
  7. 4软件配置
    1. 4.1 OLDI(双链路)
    2. 4.2 OLDI(单链路 - 克隆模式)
    3. 4.3 OLDI(单链路 - 独立模式)
    4. 4.4 DPI/HDMI
    5. 4.5 DSI
  8. 5总结
  9. 6参考资料

DSI

使用以下示例 dts 叠加 (.dtso) 来启用 DSI。代码也可在 德州仪器 (TI) 的内核源页面 上找到。

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/**
 * DT Overlay for RPi 7inch touchscreen panel interfaced with DSI on
 * AM62P5-SK EVM.
 *
 * RPi DSI Panel: https://www.raspberrypi.com/products/raspberry-pi-touch-display/
 *
 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

#include "k3-pinctrl.h"

&{/} {
	panel0 {
		compatible = "raspberrypi,7inch-dsi", "simple-panel";
		backlight = <&display_reg>;
		power-supply = <&display_reg>;

		port {

			panel_in: endpoint {
				remote-endpoint = <&panel_bridge_out>;
			};
		};
	};

	bridge_reg: bridge-regulator {
		compatible = "regulator-fixed";
		regulator-name = "bridge-reg";
		gpio = <&display_reg 0 0>;
		vin-supply = <&display_reg>;
		enable-active-high;
	};
};

&dphy_tx0 {
	status = "okay";
};

&main_i2c0 {
	#address-cells = <1>;
	#size-cells = <0>;

	display_reg: regulator@45 {
		compatible = "raspberrypi,7inch-touchscreen-panel-regulator";
		reg = <0x45>;
		gpio-controller;
		#gpio-cells = <2>;
	};
};

&dss1 {
	status = "okay";
};

&dss1_ports {
	#address-cells = <1>;
	#size-cells = <0>;

	/* DSS1-VP1: DSI Output */
	port@1 {
		reg = <1>;

		dss1_dpi1_out: endpoint {
			remote-endpoint = <&dsi0_in>;
		};
	};
};

&dsi0 {
	status = "okay";
	#address-cells = <1>;
	#size-cells = <0>;

	ports {
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			reg = <0>;

			dsi0_out: endpoint {
				remote-endpoint = <&panel_bridge_in>;
			};
		};

		port@1 {
			reg = <1>;

			dsi0_in: endpoint {
				remote-endpoint = <&dss1_dpi1_out>;
			};
		};
	};

	bridge@0 {
		status = "okay";
		compatible = "toshiba,tc358762";
		reg = <0>;
		vddc-supply = <&bridge_reg>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;

				panel_bridge_in: endpoint {
					remote-endpoint = <&dsi0_out>;
				};
			};

			port@1 {
				reg = <1>;

				panel_bridge_out: endpoint {
					remote-endpoint = <&panel_in>;
				};
			};
		};
	};
};
  • DSI 输出通过 Cadence DSI/DPHY 桥获得,该桥与 DSS1 VP1 的 DPI 输出连接。有关此桥接驱动器的详细信息,请参阅 德州仪器 (TI) 的内核源页面。此桥位于 SoC 内部。
  • DSI 输出连接到 Raspberry Pi DSI 面板的 DSI_in,该面板在内部使用 Toshiba 桥将 DSI 转换为 DPI。在同一 dtso 中实施驱动器。有关其他文档,请参阅 德州仪器 (TI) 的内核源页面