HOME
Shop
  • English
  • 简体中文
HOME
Shop
  • English
  • 简体中文
  • Product Series

    • FPGA+ARM

      • GM-3568JHF

        • 1. Introduction

          • GM-3568JHF Introduction
        • 2. Quick Start

          • 01 Environment Construction
          • 02 Compilation Instructions
          • 03 Burning Guide
          • 04 Debugging Tools
          • 05 Software Update
          • 06 View information
          • 07 Test Command
          • 08 Application Compilation
          • 09 Source code acquisition
        • 3. Peripherals and Interfaces

          • USB
          • Display and touch
          • Ethernet
          • WIFI
          • Bluetooth
          • TF-Card
          • Audio
          • Serial Port
          • CAN
          • RTC
        • 4. Application Development

          • 01 UART read and write case
          • 02 Key detection case
          • 03 LED light flashing case
          • 04 MIPI screen detection case
          • 05 Read USB device information example
          • 06 FAN Detection Case
          • 07 FPGA FSPI Communication Case
          • 08 FPGA DMA read and write case
          • 09 GPS debugging case
          • 10 Ethernet Test Cases
          • 11 RS485 reading and writing examples
          • 12 FPGA IIC read and write examples
          • 13 PN532 NFC card reader case
          • 14 TF card reading and writing case
        • 5. QT Development

          • 01 ARM64 cross compiler environment construction
          • 02 QT program added automatic startup service
        • 6. Others

          • 01 Modification of the root directory file system
          • 02 System auto-start service
    • ShimetaPi

      • M4-R1

        • Introduction

          • M4-R1 Introduction
        • Get started quickly

          • OpenHarmony概述
          • 镜像烧录
          • 开发环境准备
          • Hello World应用以及部署
        • Application Development

          • getting Started

            • 第一章 ArkTS语言简介
            • 第二章 UI组件介绍和实际应用(上)
            • 第三章 UI组件介绍和实际应用(中)
            • 第四章 UI组件介绍和实际应用(下)
          • Advanced

            • 第一章 入门指引
            • 第二章 三方库的引用和使用
            • 第三章 应用编译以及部署
            • 第四章 命令行恢复出厂设置
            • 第五章 系统调试--HDC调试
            • 第六章 APP 稳定性测试
            • 第七章 应用测试
        • Equipment Development

          • 第一章 环境搭建
          • 第二章 下载源码
          • 第三章 编译源码
        • Peripherals and interfaces

          • 树莓派接口
          • GPIO 接口
          • I2C 接口
          • SPI通信
          • PWM控制
          • 串口通讯
          • TF Card
          • 屏幕
          • 触摸
          • 音频
          • RTC
          • Ethernet
          • M.2
          • MINI-PCIE
          • Camera
          • WIFI&BT
          • 树莓派拓展板
        • Frequently asked questions

          • 资源下载
      • M5-R1

        • Introduction

          • Introduction to ShimetaPi M5-R1
    • OpenHarmony

      • SC-3568HA

        • Introduction

          • SC-3568HA Overview
        • Quick Start Guide

          • OpenHarmony Overview
          • Image Flashing
          • Setting Up the Development Environment
          • Hello World Application and Deployment
        • Application Development

          • ArkUI

            • Chapter 1 Introduction to ArkTS Language
            • Chapter 2 Introduction to UI Components and Practical Applications (Part 1)
            • Chapter 3 Introduction to UI Components and Practical Applications (Part 2)
            • Chapter 4 Introduction to UI Components and Practical Applications (Part 3)
          • Expand

            • Chapter 1 Getting Started Guide
            • Chapter 2 Referencing and Using Third-Party Libraries
            • Chapter 3: Application Compilation and Deployment
            • Chapter 4: Command-Line Factory Reset
            • Chapter 5: System Debugging -- HDC (Huawei Device Connector) Debugging
            • Chapter 6 APP Stability Testing
            • Chapter 7 Application Testing
        • Device Development

          • Chapter 1 Environment Setup
          • Chapter 2 Download Source Code
          • Chapter 3 Compiling Source Code
        • Peripheral And Iinterface

          • Raspberry Pi interface
          • GPIO Interface
          • I2C Interface
          • SPI communication
          • PWM (Pulse Width Modulation) control
          • Serial port communication
          • TF Card
          • Display Screen
          • Touch
          • Audio
          • RTC
          • Ethernet
          • M.2
          • MINI-PCIE
          • Camera
          • WIFI&BT
          • Raspberry Pi expansion board
        • Frequently Asked Questions

          • Resource Downloads
      • M-K1HSE

        • Introduction

          • M-K1HSE Introduction
        • Quick Start

          • Development environment construction
          • Source code acquisition
          • Compilation Notes
          • Burning Guide
        • Peripherals and interfaces

          • 01 Audio
          • 02 RS485
          • 03 Display
        • System customization development

          • System transplant
          • System customization
          • Driver Development
          • System Debugging
          • OTA Update
    • EVS-Camera

      • CF-NRS1

        • 1. Introduction

          • Event Camera Technical Documentation
        • 2. Quick Start

          • Host driver and software installation
        • 3. SDK application development

          • API Usage Instructions
      • CF-CRA2

        • Introduction

          • About CF-NRS1
    • AI-model

      • 1684XB-32T

        • Introduction

          • AIBOX-1684XB-32 Introduction
        • Get started quickly

          • First time use
          • Network Configuration
          • Disk usage
          • Memory allocation
          • Fan Strategy
          • Firmware Upgrade
        • Deployment Tutorial

          • Algorithm deployment
          • Deploy Llama3 Example
        • Application Development

          • Sophgo SDK Development
          • Sophon LLM_api_server development
          • Deploy MiniCPM-V-2_6
          • Qwen-2-5-VL Image and Video Recognition DEMO
          • Qwen3-chat-DEMO
          • Qwen3-Qwen Agent-MCP-Demo
          • Qwen3-langchain-AI Agent
      • 1684X-416T

        • Introduction

          • AIBOX-1684X-416 Introduction
        • Demo simple operation guide

          • Simple instructions for using shimeta smart monitoring demo
    • Core-Board

      • C-3568BQ

        • Introduction

          • C-3568BQ Overview
      • C-3588LQ

        • Introduction

          • C-3588LQ Introduction
      • GC-3568JBAF

        • Introduction

          • GC-3568JBAF Introduction
      • C-K1BA

        • Introduction

          • C-K1BA Introduction

03 Display

This product supports LCD display defined by HDMI and MIPI DSI interface as graphic output interface

1 Switching method

1.1 HDMI Display

First open the source directory, open /kernel/linux/spacemit_kernel-6.6/arch/riscv/boot/dts/spacemit/k1-x_SMT001.dts, select Open HDMI and Close MIPI in the configuration file

# 打开 HDMI
&dpu_online2_hdmi {
	memory-region = <&dpu_resv>;
	status = "okay";
};

&hdmi{
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_hdmi_0>;
	status = "okay";
};

# 关闭 MIPI DSI
&dpu_online2_dsi {
	memory-region = <&dpu_resv>;
	spacemit-dpu-bitclk = <500000000>;
	spacemit-dpu-escclk = <51200000>;
	dsi_1v2-supply = <&ldo_5>;
	vin-supply-names = "dsi_1v2";
	status = "disabled";
};

&dsi2 {
	status = "disabled";

	panel2: panel2@0 {
		status = "ok";
		compatible = "spacemit,mipi-panel2";
		reg = <0>;

		gpios-reset = <81>;
		gpios-dc = <82 83>;
		id = <2>;
		delay-after-reset = <10>;
		force-attached = "lcd_gx09inx101_mipi";
	};
};

&lcds {
	status = "disabled";
};

1.2 MIPI DSI Display

Open the source directory, open /kernel/linux/spacemit_kernel-6.6/arch/riscv/boot/dts/spacemit/k1-x_SMT001.dts, select Open MIPI in the configuration file, and close HDMI

# 打开 MIPI DSI
&dpu_online2_dsi {
	memory-region = <&dpu_resv>;
	spacemit-dpu-bitclk = <500000000>;
	spacemit-dpu-escclk = <51200000>;
	dsi_1v2-supply = <&ldo_5>;
	vin-supply-names = "dsi_1v2";
	status = "okay";
};

&dsi2 {
	status = "okay";

	panel2: panel2@0 {
		status = "ok";
		compatible = "spacemit,mipi-panel2";
		reg = <0>;

		gpios-reset = <81>;
		gpios-dc = <82 83>;
		id = <2>;
		delay-after-reset = <10>;
		force-attached = "lcd_gx09inx101_mipi";
	};
};

&lcds {
	status = "okay";
};

# 关闭 HDMI
&dpu_online2_hdmi {
	memory-region = <&dpu_resv>;
	status = "disabled";
};

&hdmi{
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_hdmi_0>;
	status = "disabled";
};

2 MIPI screen does not display problem

2.1 Check k1-x-lcd.dtsi

The path is kernel/linux/spacemit_kernel-6.6/arch/riscv/boot/dts/spacemit/k1-x-lcd.dtsi, which includes irq, clock and power domain related configurations.

&soc {
	display-subsystem-dsi {
		compatible = "spacemit,saturn-le";
		reg = <0 0xC0340000 0 0x2A000>;
		ports = <&dpu_online2_dsi>;
		interconnects = <&dram_range1>;
		interconnect-names = "dma-mem";
	};

	dpu_online2_dsi: port@c0340000 {
		compatible = "spacemit,dpu-online2";
		interrupt-parent = <&intc>;
		interrupts = <90>, <89>;
		interrupt-names = "ONLINE_IRQ", "OFFLINE_IRQ";
		clocks = <&ccu CLK_DPU_PXCLK>,
			 <&ccu CLK_DPU_MCLK>,
			 <&ccu CLK_DPU_HCLK>,
			 <&ccu CLK_DPU_ESC>,
			 <&ccu CLK_DPU_BIT>;
		clock-names = "pxclk", "mclk", "hclk", "escclk", "bitclk";
		resets = <&reset RESET_MIPI>,
			 <&reset RESET_LCD_MCLK>,
			 <&reset RESET_LCD>,
			 <&reset RESET_DSI_ESC>;
		reset-names= "dsi_reset", "mclk_reset", "lcd_reset","esc_reset";
		power-domains = <&power K1X_PMU_LCD_PWR_DOMAIN>;
		pipeline-id = <ONLINE2>;
		ip = "spacemit-saturn";
		spacemit-dpu-min-mclk = <40960000>;
		type = <DSI>;
		clk,pm-runtime,no-sleep;
		status = "disabled";

		dpu_online2_dsi_out: endpoint@0 {
			remote-endpoint = <&dsi2_in>;
		};

		dpu_offline0_dsi_out: endpoint@1 {
			remote-endpoint = <&wb0_in>;
		};
	};

	dsi2: dsi2@d421a800 {
		compatible = "spacemit,dsi2-host";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0 0xD421A800 0 0x200>;
		interrupt-parent = <&intc>;
		interrupts = <95>;
		ip = "synopsys-dhost";
		dev-id = <2>;
		status = "disabled";

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

			port@0 {
				reg = <0>;
				#address-cells = <1>;
				#size-cells = <0>;

				dsi2_out: endpoint@0 {
					reg = <0>;
					remote-endpoint = <&dphy2_in>;
				};
			};

			port@1 {
				reg = <1>;
				dsi2_in: endpoint {
					remote-endpoint = <&dpu_online2_dsi_out>;
				};
			};
		};
	};

	dphy2: dphy2@d421a800 {
		compatible = "spacemit,dsi2-phy";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0 0xD421A800 0 0x200>;
		ip = "spacemit-dphy";
		dev-id = <2>;
		status = "okay";

		port@1 {
			reg = <1>;
			dphy2_in: endpoint {
				remote-endpoint = <&dsi2_out>;
			};
		};
	};

	wb0 {
		compatible = "spacemit,wb0";
		dev-id = <2>;
		status = "okay";

		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			port@0 {
				reg = <0>;
				wb0_in: endpoint {
					remote-endpoint = <&dpu_offline0_dsi_out>;
				};
			};
		};
	};
};

2.2 Check lcd_gx09inx101_mipi.dtsi

The path is: kernel/linux/spacemit_kernel-6.6/arch/riscv/boot/dts/spacemit/lcd/lcd_gx09inx101_mipi.dtsi The panel list includes: MIPI DSI working mode, panel initialization sequence, and timing.

// SPDX-License-Identifier: GPL-2.0

/ { lcds: lcds {
	lcd_gx09inx101_mipi: lcd_gx09inx101_mipi {
		dsi-work-mode = <1>; /* video burst mode*/
		dsi-lane-number = <4>;
		dsi-color-format = "rgb888";
		width-mm = <142>;
		height-mm = <228>;
		use-dcs-write;

		/*mipi info*/
		height = <1280>;
		width = <720>;
		hfp = <80>;
		hbp = <40>;
		hsync = <10>;
		vfp = <20>;
		vbp = <16>;
		vsync = <4>;
		fps = <60>;
		work-mode = <0>;
		rgb-mode = <3>;
		lane-number = <4>;
		phy-bit-clock = <500000000>;
		phy-esc-clock = <51200000>;
		split-enable = <0>;
		eotp-enable = <0>;
		burst-mode = <2>;
		esd-check-enable = <0>;

		/* DSI_CMD, DSI_MODE, timeout, len, cmd */
		initial-command = [
			39 01 01 01 11
			39 01 01 04 FF 98 81 03
			39 01 01 02 01 00
			39 01 01 02 02 00
			39 01 01 02 03 72
			39 01 01 02 04 00
			39 01 01 02 05 00
			39 01 01 02 06 09
			39 01 01 02 07 00
			39 01 01 02 08 00
			39 01 01 02 09 01
			39 01 01 02 0A 00
			39 01 01 02 0B 00
			39 01 01 02 0C 01
			39 01 01 02 0D 00
			39 01 01 02 0E 00
			39 01 01 02 0F 00
			39 01 01 02 10 00
			39 01 01 02 11 00
			39 01 01 02 12 00
			39 01 01 02 13 00
			39 01 01 02 14 00
			39 01 01 02 15 00
			39 01 01 02 16 00
			39 01 01 02 17 00
			39 01 01 02 18 00
			39 01 01 02 19 00
			39 01 01 02 1A 00
			39 01 01 02 1B 00
			39 01 01 02 1C 00
			39 01 01 02 1D 00
			39 01 01 02 1E 40
			39 01 01 02 1F 80
			39 01 01 02 20 05
			39 01 01 02 21 02
			39 01 01 02 22 00
			39 01 01 02 23 00
			39 01 01 02 24 00
			39 01 01 02 25 00
			39 01 01 02 26 00
			39 01 01 02 27 00
			39 01 01 02 28 33
			39 01 01 02 29 02
			39 01 01 02 2A 00
			39 01 01 02 2B 00
			39 01 01 02 2C 00
			39 01 01 02 2D 00
			39 01 01 02 2E 00
			39 01 01 02 2F 00
			39 01 01 02 30 00
			39 01 01 02 31 00
			39 01 01 02 32 00
			39 01 01 02 33 00
			39 01 01 02 34 04
			39 01 01 02 35 00
			39 01 01 02 36 00
			39 01 01 02 37 00
			39 01 01 02 38 3C
			39 01 01 02 39 00
			39 01 01 02 3A 40
			39 01 01 02 3B 40
			39 01 01 02 3C 00
			39 01 01 02 3D 00
			39 01 01 02 3E 00
			39 01 01 02 3F 00
			39 01 01 02 40 00
			39 01 01 02 41 00
			39 01 01 02 42 00
			39 01 01 02 43 00
			39 01 01 02 44 00
			39 01 01 02 50 01
			39 01 01 02 51 23
			39 01 01 02 52 45
			39 01 01 02 53 67
			39 01 01 02 54 89
			39 01 01 02 55 AB
			39 01 01 02 56 01
			39 01 01 02 57 23
			39 01 01 02 58 45
			39 01 01 02 59 67
			39 01 01 02 5A 89
			39 01 01 02 5B AB
			39 01 01 02 5C CD
			39 01 01 02 5D EF
			39 01 01 02 5E 11
			39 01 01 02 5F 01
			39 01 01 02 60 00
			39 01 01 02 61 15
			39 01 01 02 62 14
			39 01 01 02 63 0E
			39 01 01 02 64 0F
			39 01 01 02 65 0C
			39 01 01 02 66 0D
			39 01 01 02 67 06
			39 01 01 02 68 02
			39 01 01 02 69 02
			39 01 01 02 6A 02
			39 01 01 02 6B 02
			39 01 01 02 6C 02
			39 01 01 02 6D 02
			39 01 01 02 6E 07
			39 01 01 02 6F 02
			39 01 01 02 70 02
			39 01 01 02 71 02
			39 01 01 02 72 02
			39 01 01 02 73 02
			39 01 01 02 74 02
			39 01 01 02 75 01
			39 01 01 02 76 00
			39 01 01 02 77 14
			39 01 01 02 78 15
			39 01 01 02 79 0E
			39 01 01 02 7A 0F
			39 01 01 02 7B 0C
			39 01 01 02 7C 0D
			39 01 01 02 7D 06
			39 01 01 02 7E 02
			39 01 01 02 7F 02
			39 01 01 02 80 02
			39 01 01 02 81 02
			39 01 01 02 82 02
			39 01 01 02 83 02
			39 01 01 02 84 07
			39 01 01 02 85 02
			39 01 01 02 86 02
			39 01 01 02 87 02
			39 01 01 02 88 02
			39 01 01 02 89 02
			39 01 01 02 8A 02
			39 01 01 04 FF 98 81 04
			39 01 01 02 6C 15
			39 01 01 02 6E 2A
			39 01 01 02 6F 33
			39 01 01 02 3A 94
			39 01 01 02 8D 1A
			39 01 01 02 87 BA
			39 01 01 02 26 76
			39 01 01 02 B2 D1
			39 01 01 02 B5 06
			39 01 01 04 FF 98 81 01
			39 01 01 02 22 0A
			39 01 01 02 31 00
			39 01 01 02 40 13
			39 01 01 02 53 84
			39 01 01 02 55 8F
			39 01 01 02 50 AE
			39 01 01 02 51 AE
			39 01 01 02 60 28
			39 01 01 02 A0 0F
			39 01 01 02 A1 1B
			39 01 01 02 A2 28
			39 01 01 02 A3 12
			39 01 01 02 A4 15
			39 01 01 02 A5 28
			39 01 01 02 A6 1B
			39 01 01 02 A7 1E
			39 01 01 02 A8 79
			39 01 01 02 A9 1B
			39 01 01 02 AA 27
			39 01 01 02 AB 69
			39 01 01 02 AC 19
			39 01 01 02 AD 18
			39 01 01 02 AE 4C
			39 01 01 02 AF 21
			39 01 01 02 B0 28
			39 01 01 02 B1 52
			39 01 01 02 B2 65
			39 01 01 02 C0 04
			39 01 01 02 C1 1B
			39 01 01 02 C2 27
			39 01 01 02 C3 13
			39 01 01 02 C4 15
			39 01 01 02 C5 28
			39 01 01 02 C6 1C
			39 01 01 02 C7 1E
			39 01 01 02 C8 79
			39 01 01 02 C9 1A
			39 01 01 02 CA 27
			39 01 01 02 CB 69
			39 01 01 02 CC 1A
			39 01 01 02 CD 18
			39 01 01 02 CE 4C
			39 01 01 02 CF 21
			39 01 01 02 D0 27
			39 01 01 02 D1 52
			39 01 01 02 D2 65
			39 01 01 02 D3 3F
			39 01 01 04 FF 98 81 00
			39 01 01 01 29
			39 01 01 02 35 00
		];
		sleep-in-command = [
			39 01 78 01 28
			39 01 78 01 10
		];
		sleep-out-command = [
			39 01 96 01 11
			39 01 32 01 29
		];
		read-id-command = [
			37 01 00 01 05
			14 01 00 05 fb fc fd fe ff
		];

		display-timings {
			timing0 {
				clock-frequency = <75000000>;
				hactive = <720>;
				hfront-porch = <80>;
				hback-porch = <40>;
				hsync-len = <10>;
				vactive = <1280>;
				vfront-porch = <20>;
				vback-porch = <16>;
				vsync-len = <4>;
				vsync-active = <1>;
				hsync-active = <1>;
			};
		};
	};
};};
Edit this page on GitHub
Last Updated:
Contributors: zwhuang
Prev
02 RS485