[RK3399] + [Android 9.0] MIPI屏

[RK3399] + [Android 9.0] MIPI屏

  • MIPI接口
  • 背光控制电路
  • 设备树
    • 背光PWM结点
    • dsi
    • 屏参
    • 通道和LOGO
  • 驱动部分

平台 安卓 内核版本
RK3399 Android 9.0 Linux4.4

MIPI接口

[RK3399] + [Android 9.0] MIPI屏_第1张图片
[RK3399] + [Android 9.0] MIPI屏_第2张图片
[RK3399] + [Android 9.0] MIPI屏_第3张图片

背光控制电路

[RK3399] + [Android 9.0] MIPI屏_第4张图片

设备树

背光PWM结点

backlight: backlight {
		status = "okay";
		enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
		compatible = "pwm-backlight";
		pwms = <&pwm0 0 20000 1>;
		brightness-levels = <
			  0   1   2   3   4   5   6   7
			  8   9  10  11  12  13  14  15
			 ...
			232 233 234 235 236 237 238 239
			240 241 242 243 244 245 246 247
			248 249 250 251 252 253 254 255>;
		default-brightness-level = <200>;
	};

dsi

&dsi {
	status = "okay";
	//rockchip,lane-rate = <1000>;
	dsi_panel: panel@0 {
		status = "okay";
		compatible = "simple-panel-dsi";
		reg = <0>;
		backlight = <&backlight>;
		power-supply = <&vcc3v3_s0>;
		//reset-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>;
		//enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&lcd_rst_gpio>;
		reset-delay-ms = <40>;
		enable-delay-ms = <40>;
		prepare-delay-ms = <40>;
		unprepare-delay-ms = <40>;
		disable-delay-ms = <40>;
		dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
			      MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
		dsi,format = <MIPI_DSI_FMT_RGB888>;
		dsi,lanes  = <4>;

		panel-init-sequence = [ 
			39 00 04 FF 98 81 03
			15 00 02 01 00
			15 00 02 02 00
			15 00 02 03 53
			15 00 02 04 53
			15 00 02 05 13
			15 00 02 06 04
			15 00 02 07 02
			15 00 02 08 02
			15 00 02 09 00
			15 00 02 0a 00
			15 00 02 0b 00
			15 00 02 0c 00
			15 00 02 0d 00
			15 00 02 0e 00
			15 00 02 0f 00
			15 00 02 10 00
			15 00 02 11 00
			15 00 02 12 00
			15 00 02 13 00
			15 00 02 14 00
			15 00 02 15 00
			15 00 02 16 00
			15 00 02 17 00
			15 00 02 18 00
			15 00 02 19 00
			15 00 02 1a 00
			15 00 02 1b 00
			15 00 02 1c 00
			15 00 02 1d 00
			15 00 02 1e c0
			15 00 02 1f 80
			15 00 02 20 02
			15 00 02 21 09
			15 00 02 22 00
			15 00 02 23 00
			15 00 02 24 00
			15 00 02 25 00
			15 00 02 26 00
			15 00 02 27 00
			15 00 02 28 55
			15 00 02 29 03
			15 00 02 2a 00
			15 00 02 2b 00
			15 00 02 2c 00
			15 00 02 2d 00
			15 00 02 2e 00
			15 00 02 2f 00
			15 00 02 30 00
			15 00 02 31 00
			15 00 02 32 00
			15 00 02 33 00
			15 00 02 34 00
			15 00 02 35 00
			15 00 02 36 00
			15 00 02 37 00
			15 00 02 38 3C
			15 00 02 39 00
			15 00 02 3a 00
			15 00 02 3b 00
			15 00 02 3c 00
			15 00 02 3d 00
			15 00 02 3e 00
			15 00 02 3f 00
			15 00 02 40 00
			15 00 02 41 00
			15 00 02 42 00
			15 00 02 43 00
			15 00 02 44 00
			15 00 02 50 01
			15 00 02 51 23
			15 00 02 52 45
			15 00 02 53 67
			15 00 02 54 89
			15 00 02 55 ab
			15 00 02 56 01
			15 00 02 57 23
			15 00 02 58 45
			15 00 02 59 67
			15 00 02 5a 89
			15 00 02 5b ab
			15 00 02 5c cd
			15 00 02 5d ef
			15 00 02 5e 01
			15 00 02 5f 08
			15 00 02 60 02
			15 00 02 61 02
			15 00 02 62 0A
			15 00 02 63 15
			15 00 02 64 14
			15 00 02 65 02
			15 00 02 66 11
			15 00 02 67 10
			15 00 02 68 02
			15 00 02 69 0F
			15 00 02 6a 0E
			15 00 02 6b 02
			15 00 02 6c 0D
			15 00 02 6d 0C
			15 00 02 6e 06
			15 00 02 6f 02
			15 00 02 70 02
			15 00 02 71 02
			15 00 02 72 02
			15 00 02 73 02
			15 00 02 74 02
			15 00 02 75 06
			15 00 02 76 02
			15 00 02 77 02
			15 00 02 78 0A
			15 00 02 79 15
			15 00 02 7a 14
			15 00 02 7b 02
			15 00 02 7c 10
			15 00 02 7d 11
			15 00 02 7e 02
			15 00 02 7f 0C
			15 00 02 80 0D
			15 00 02 81 02
			15 00 02 82 0E
			15 00 02 83 0F
			15 00 02 84 08
			15 00 02 85 02
			15 00 02 86 02
			15 00 02 87 02
			15 00 02 88 02
			15 00 02 89 02
			15 00 02 8A 02
			39 00 04 FF 98 81 04
			15 00 02 6C 15
			15 00 02 6E 30
			15 00 02 6F 33
			15 00 02 8D 1F
			15 00 02 87 BA
			15 00 02 26 76
			15 00 02 B2 D1
			15 00 02 35 1F
			15 00 02 33 14
			15 00 02 3A A9
			15 00 02 3B 98
			15 00 02 38 01
			15 00 02 39 00
			39 00 04 FF 98 81 01
			15 00 02 22 09
			15 00 02 31 00
			15 00 02 50 D8
			15 00 02 51 D3
			15 00 02 53 47
			15 00 02 55 7A
			15 00 02 60 28
			15 00 02 2E C8
			15 00 02 A0 07
			15 00 02 A1 17
			15 00 02 A2 25
			15 00 02 A3 15
			15 00 02 A4 14
			15 00 02 A5 29
			15 00 02 A6 1C
			15 00 02 A7 1F
			15 00 02 A8 7A
			15 00 02 A9 1A
			15 00 02 AA 25
			15 00 02 AB 67
			15 00 02 AC 18
			15 00 02 AD 1A
			15 00 02 AE 4C
			15 00 02 AF 22
			15 00 02 B0 29
			15 00 02 B1 50
			15 00 02 B2 5F
			15 00 02 B3 21
			15 00 02 C0 07
			15 00 02 C1 17
			15 00 02 C2 25
			15 00 02 C3 15
			15 00 02 C4 14
			15 00 02 C5 29
			15 00 02 C6 1C
			15 00 02 C7 1F
			15 00 02 C8 7A
			15 00 02 C9 1A
			15 00 02 CA 25
			15 00 02 CB 67
			15 00 02 CC 18
			15 00 02 CD 1A
			15 00 02 CE 4C
			15 00 02 CF 22
			15 00 02 D0 29
			15 00 02 D1 50
			15 00 02 D2 5F
			15 00 02 D3 3D
			39 00 04 FF 98 81 00
			15 00 02 35 00 
			15 00 02 36 03
			05 78 01 11 			
			05 FF 01 29
		];

		disp_timings: display-timings {
			native-mode = <&timing0>;
			timing0: timing0 {
				clock-frequency = <66770000>;
				hactive = <800>;
				vactive = <1280>;

				hfront-porch = <16>;
				hback-porch = <48>;
				hsync-len = <16>;

				vfront-porch = <8>;
				vback-porch = <4>;
				vsync-len = <4>;
				
				hsync-active = <0>;
				vsync-active = <0>;
				de-active = <0>;
				pixelclk-active = <0>;
			};
		};
	};
};

屏参

disp_timings: display-timings {
	native-mode = <&timing0>;
	timing0: timing0 {
		clock-frequency = <66770000>;
		hactive = <800>;
		vactive = <1280>;

		hfront-porch = <16>;
		hback-porch = <48>;
		hsync-len = <16>;

		vfront-porch = <8>;
		vback-porch = <4>;
		vsync-len = <4>;
		
		hsync-active = <0>;
		vsync-active = <0>;
		de-active = <0>;
		pixelclk-active = <0>;
	};
};

[RK3399] + [Android 9.0] MIPI屏_第5张图片
[RK3399] + [Android 9.0] MIPI屏_第6张图片
[RK3399] + [Android 9.0] MIPI屏_第7张图片

通道和LOGO

  • logo图片位于kernel目录下
  • 图片格式为位图
  • 有两张logo
&dsi_in_vopb{
	status = "okay";
};
&dsi_in_vopl {
	status = "disabled";
};
&route_dsi {
	status = "okay";
};

驱动部分

  • 驱动部分没有修改,采用默认的通用屏

你可能感兴趣的:(嵌入式Linux,rockchip,学习笔记,RK3399,android,MIPI,linux,lcd)