mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
357 lines
21 KiB
HTML
357 lines
21 KiB
HTML
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="配置 Uboot 在 Luban 根目录下执行 make um ,进入 uboot 的功能配置界面,使能显示模块驱动: Device Drivers Graphics support ArtInChip Graphics ---> [*] Enable ArtInChip Video Support [*] ArtInChip display rgb support [ ] ArtInChip ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-13"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="bringup_rgbDisplayConfig"/><meta name="DC.language" content="zh-CN"/><title>RGB</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/bringup/bringup-rgb-display-config.dita"/><meta name="wh-out-relpath" content="topics/sdk/bringup/bringup-rgb-display-config.html"/>
|
||
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||
|
||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||
|
||
<body id="bringup_rgbDisplayConfig" class="wh_topic_page frmBody">
|
||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||
跳转到主要内容
|
||
</a>
|
||
|
||
|
||
|
||
|
||
<header class="navbar navbar-default wh_header">
|
||
<div class="container-fluid">
|
||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||
<div class="wh_logo_and_publication_title_container">
|
||
<div class="wh_logo_and_publication_title">
|
||
|
||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
|
||
|
||
|
||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||
|
||
|
||
|
||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<div class="container-fluid" id="wh_topic_container">
|
||
<div class="row">
|
||
|
||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||
|
||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||
|
||
|
||
|
||
<div class="wh_right_tools">
|
||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||
|
||
|
||
|
||
|
||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||
|
||
|
||
</div>
|
||
|
||
</nav>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div class="wh_content_area">
|
||
<div class="row">
|
||
|
||
|
||
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="wh_topic_body">
|
||
|
||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||
<span class="close-toc-icon-container">
|
||
<span class="close-toc-icon"></span>
|
||
</span>
|
||
</button>
|
||
|
||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/bringup/bringup-rgb-display-config.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">RGB</h1><div class="date inPage">13 Dec 2024</div><div style="color: gray;">
|
||
Read time: 4 minute(s)
|
||
</div><div class="- topic/body concept/conbody body conbody"><section class="- topic/section section" id="bringup_rgbDisplayConfig__section_pwf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__section_pwf_vzb_d1c"><h2 class="- topic/title title sectiontitle">配置 Uboot </h2>
|
||
|
||
<div class="- topic/p p" data-ofbid="d327600e27__20250121171831">在 Luban 根目录下执行 <span class="+ topic/keyword sw-d/cmdname keyword cmdname">make um</span>,进入 uboot
|
||
的功能配置界面,使能显示模块驱动:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__codeblock_bcr_zzb_d1c" data-ofbid="bringup_rgbDisplayConfig__codeblock_bcr_zzb_d1c">Device Drivers
|
||
Graphics support
|
||
ArtInChip Graphics --->
|
||
[*] Enable ArtInChip Video Support
|
||
[*] ArtInChip display rgb support
|
||
[ ] ArtInChip display lvds support
|
||
[ ] ArtInChip display mipi-dsi support
|
||
<*> ArtInChip Panel Drivers (ArtInChip general RGB panel) --->
|
||
</pre></div>
|
||
</section><section class="- topic/section section" id="bringup_rgbDisplayConfig__section_rwf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__section_rwf_vzb_d1c"><h2 class="- topic/title title sectiontitle">配置 Kernel </h2>
|
||
|
||
<p class="- topic/p p" data-ofbid="d327600e40__20250121171831">在 Luban 根目录下执行 <span class="+ topic/keyword sw-d/cmdname keyword cmdname">make km</span>,进入 Kernel 的功能配置界面,使能显示模块驱动:</p>
|
||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__pre_swf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__pre_swf_vzb_d1c">Device Drivers
|
||
Graphics support
|
||
ArtInChip Graphics --->
|
||
<*> ArtInChip Framebuffer support
|
||
[*] ArtInChip display rgb support
|
||
[ ] ArtInChip display lvds support
|
||
[ ] ArtInChip display mipi-dsi support
|
||
<*> ArtInChip Panel Drivers (ArtInChip general RGB panel) --->
|
||
</pre>
|
||
</section><section class="- topic/section section" id="bringup_rgbDisplayConfig__section_twf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__section_twf_vzb_d1c"><h2 class="- topic/title title sectiontitle">uboot
|
||
dts</h2><p class="- topic/p p" data-ofbid="d327600e52__20250121171831">Uboot
|
||
如果要进行显示,则声明相应的配置为预加载,以 <span class="+ topic/ph sw-d/filepath ph filepath">demo88_nand</span> 工程为例,文件为
|
||
<span class="+ topic/ph sw-d/filepath ph filepath">target/d211/demo88_nand/board-u-boot.dtsi</span></p><strong class="+ topic/ph hi-d/b ph b">声明通路</strong><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__pre_uwf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__pre_uwf_vzb_d1c">&disp {
|
||
u-boot,dm-pre-reloc;
|
||
fb0: fb@<span class="hl-number">0</span> {
|
||
u-boot,dm-pre-reloc;
|
||
port {
|
||
fb0_out: endpoint {
|
||
u-boot,dm-pre-reloc;
|
||
}
|
||
};
|
||
};
|
||
};
|
||
|
||
&de0 {
|
||
u-boot,dm-pre-reloc;
|
||
port@<span class="hl-number">0</span> {
|
||
de0_in: endpoint {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};
|
||
|
||
port@<span class="hl-number">1</span> {
|
||
de0_out: endpoint {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};
|
||
};
|
||
&rgb0 { <em class="hl-comment">//RGB</em>
|
||
u-boot,dm-pre-reloc;
|
||
port@<span class="hl-number">0</span> {
|
||
rgb0_in: endpoint {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};
|
||
|
||
port@<span class="hl-number">1</span> {
|
||
rgb0_out: endpoint {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};
|
||
};
|
||
</pre><strong class="+ topic/ph hi-d/b ph b">声明屏幕参数</strong><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__pre_vwf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__pre_vwf_vzb_d1c">panel_rgb {
|
||
u-boot,dm-pre-reloc;
|
||
port {
|
||
panel_rgb_in: endpoint {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};
|
||
|
||
display-timings {
|
||
u-boot,dm-pre-reloc;
|
||
timing0: <span class="hl-number">1024</span>x600 {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};
|
||
};</pre><strong class="+ topic/ph hi-d/b ph b">声明屏幕引脚</strong><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__pre_wwf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__pre_wwf_vzb_d1c">lcd_rgb565_ld_pins: lcd-<span class="hl-number">1</span> {
|
||
u-boot,dm-pre-reloc;
|
||
pins {
|
||
u-boot,dm-pre-reloc;
|
||
};
|
||
};</pre></section><section class="- topic/section section" id="bringup_rgbDisplayConfig__section_xwf_vzb_d1c" data-ofbid="bringup_rgbDisplayConfig__section_xwf_vzb_d1c"><h2 class="- topic/title title sectiontitle">系统 dts</h2>
|
||
|
||
<div class="- topic/p p" data-ofbid="d327600e80__20250121171831">系统的 dts 将进行完整的功能配置,以 <span class="+ topic/ph sw-d/filepath ph filepath">demo88_nand</span> 工程为例,文件为<span class="+ topic/ph sw-d/filepath ph filepath">
|
||
target/d211/demo88_nand/board.dts </span>:<ol class="- topic/ol ol" id="bringup_rgbDisplayConfig__ol_szc_p1c_d1c" data-ofbid="bringup_rgbDisplayConfig__ol_szc_p1c_d1c"><li class="- topic/li li" data-ofbid="d327600e89__20250121171831">配置通路<div class="- topic/p p" data-ofbid="d327600e91__20250121171831">通过 port 和 status
|
||
结点,定义一条数据通道:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__codeblock_q3t_q1c_d1c" data-ofbid="bringup_rgbDisplayConfig__codeblock_q3t_q1c_d1c">fb | de | | rgb | panel
|
||
port --> port0 port1 --> port0 port1 --> port
|
||
&fb0 {
|
||
port {
|
||
fb0_out: endpoint {
|
||
remote-endpoint = <&de0_in>;
|
||
};
|
||
};
|
||
};
|
||
|
||
&de0 {
|
||
status = <span class="hl-string">"okay"</span>;
|
||
port@<span class="hl-number">0</span> {
|
||
reg = <<span class="hl-number">0</span>>;
|
||
de0_in: endpoint {
|
||
remote-endpoint = <&fb0_out>;
|
||
};
|
||
|
||
port@<span class="hl-number">1</span> {
|
||
reg = <<span class="hl-number">1</span>>;
|
||
de0_out: endpoint {
|
||
remote-endpoint = <&rgb0_in>; <em class="hl-comment">//RGB</em>
|
||
}
|
||
};
|
||
};
|
||
|
||
&rgb0 {
|
||
pinctrl-names = <span class="hl-string">"default"</span>, <span class="hl-string">"sleep"</span>;
|
||
pinctrl-<span class="hl-number">0</span> = <&lcd_rgb565_ld_pins>; <em class="hl-comment">//RGB</em>
|
||
pinctrl-<span class="hl-number">1</span> = <&lcd_rgb565_ld_sleep_pins>;
|
||
status = <span class="hl-string">"okay"</span>;
|
||
port@<span class="hl-number">0</span> {
|
||
reg = <<span class="hl-number">0</span>>;
|
||
rgb0_in: endpoint {
|
||
remote-endpoint = <&de0_out>;
|
||
}
|
||
};
|
||
|
||
port@<span class="hl-number">1</span> {
|
||
reg = <<span class="hl-number">1</span>>;
|
||
rgb0_out: endpoint {
|
||
remote-endpoint = <&panel_rgb_in>; <em class="hl-comment">//RGB</em>
|
||
};
|
||
};
|
||
}</pre></div></li><li class="- topic/li li" data-ofbid="d327600e95__20250121171831">配置屏幕参数<p class="- topic/p p" data-ofbid="d327600e97__20250121171831">其中类似 <span class="+ topic/keyword pr-d/parmname keyword parmname">enable-gpios</span> 控制引脚需要根据实际显示屏的需要增加或减少,驱动中做相应修改,
|
||
<span class="+ topic/keyword pr-d/parmname keyword parmname">rgb-mode</span> 和 <span class="+ topic/keyword pr-d/parmname keyword parmname">interface-format</span>
|
||
需要从规格书中获取, <span class="+ topic/keyword pr-d/parmname keyword parmname">data-order</span>
|
||
<span class="+ topic/keyword pr-d/parmname keyword parmname">data-mirror</span> 需要根据板级走线的顺序设置相关参数。
|
||
<span class="+ topic/keyword pr-d/parmname keyword parmname">clock-phase</span> 需要根据最终实际的显示效果做相应调整。 关于参数详细的解析,参考 <span class="- topic/xref xref"></span>
|
||
的配置说明。</p><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__codeblock_kjc_s1c_d1c" data-ofbid="bringup_rgbDisplayConfig__codeblock_kjc_s1c_d1c">panel_rgb {
|
||
compatible = <span class="hl-string">"artinchip,aic-general-rgb-panel"</span>;
|
||
status = <span class="hl-string">"okay"</span>;
|
||
|
||
enable-gpios = <&gpio_e <span class="hl-number">19</span> GPIO_ACTIVE_HIGH>;
|
||
sleep-gpios = <&gpio_e <span class="hl-number">15</span> GPIO_ACTIVE_HIGH>;
|
||
rgb-mode = <PRGB>;
|
||
interface-format = <PRGB_<span class="hl-number">16</span>BIT_LD>;
|
||
clock-phase = <DEGREE_<span class="hl-number">0</span>>;
|
||
data-order = <RGB>;
|
||
disp-dither = <DITHER_RGB565>;
|
||
|
||
port {
|
||
panel_rgb_in: endpoint {
|
||
remote-endpoint = <&rgb0_out>;
|
||
};
|
||
};
|
||
|
||
display-timings {
|
||
native-mode = <&timing0>;
|
||
timing0: <span class="hl-number">1024</span>x600 {
|
||
lock-frequency = <<span class="hl-number">52000000</span>>;
|
||
hactive = <<span class="hl-number">1024</span>>;
|
||
vactive = <<span class="hl-number">600</span>>;
|
||
hback-porch = <<span class="hl-number">160</span>>;
|
||
hfront-porch = <<span class="hl-number">160</span>>;
|
||
hsync-len = <<span class="hl-number">20</span>>;
|
||
vback-porch = <<span class="hl-number">12</span>>;
|
||
vfront-porch = <<span class="hl-number">20</span>>;
|
||
vsync-len = <<span class="hl-number">3</span>>;
|
||
de-active = <<span class="hl-number">1</span>>;
|
||
pixelclk-active = <<span class="hl-number">1</span>>;
|
||
};
|
||
};</pre></li><li class="- topic/li li" data-ofbid="d327600e123__20250121171831">配置引脚<p class="- topic/p p" data-ofbid="d327600e125__20250121171831">引脚的配置统一在 <span class="+ topic/ph sw-d/filepath ph filepath">d211-pinctrl.dtsi</span> 中完成,在
|
||
<span class="+ topic/keyword pr-d/parmname keyword parmname">rgb0</span>
|
||
节点中直接进行了引用:</p><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_rgbDisplayConfig__codeblock_x4l_t1c_d1c" data-ofbid="bringup_rgbDisplayConfig__codeblock_x4l_t1c_d1c">&rgb0 {
|
||
pinctrl-names = <span class="hl-string">"default"</span>, <span class="hl-string">"sleep"</span>;
|
||
pinctrl-<span class="hl-number">0</span> = <&lcd_rgb565_ld_pins>;
|
||
pinctrl-<span class="hl-number">1</span> = <&lcd_rgb565_ld_sleep_pins>;
|
||
status = <span class="hl-string">"okay"</span>;
|
||
......
|
||
};</pre></li></ol></div>
|
||
</section></div></article></main></div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||
<div id="wh_topic_toc_content">
|
||
|
||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#bringup_rgbDisplayConfig__section_pwf_vzb_d1c" data-tocid="bringup_rgbDisplayConfig__section_pwf_vzb_d1c">配置 Uboot </a></div></li><li class="section-item"><div class="section-title"><a href="#bringup_rgbDisplayConfig__section_rwf_vzb_d1c" data-tocid="bringup_rgbDisplayConfig__section_rwf_vzb_d1c">配置 Kernel </a></div></li><li class="section-item"><div class="section-title"><a href="#bringup_rgbDisplayConfig__section_twf_vzb_d1c" data-tocid="bringup_rgbDisplayConfig__section_twf_vzb_d1c">uboot
|
||
dts</a></div></li><li class="section-item"><div class="section-title"><a href="#bringup_rgbDisplayConfig__section_xwf_vzb_d1c" data-tocid="bringup_rgbDisplayConfig__section_xwf_vzb_d1c">系统 dts</a></div></li></ul></div>
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
<footer class="navbar navbar-default wh_footer">
|
||
<div class=" footer-container mx-auto ">
|
||
<title>footer def</title>
|
||
<style><!--
|
||
|
||
.p1 {
|
||
font-family: FangZhengShuSong, Times, serif;
|
||
}
|
||
.p2 {
|
||
font-family: Arial, Helvetica, sans-serif;
|
||
}
|
||
.p3 {
|
||
font-family: "Lucida Console", "Courier New", monospace;
|
||
}
|
||
|
||
--></style>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="webhelp.fragment.footer">
|
||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||
</div><div>
|
||
<div class="generation_time">
|
||
Update Time: 2025-01-21
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<div id="go2top" class="d-print-none">
|
||
<span class="oxy-icon oxy-icon-up"></span>
|
||
</div>
|
||
|
||
<div id="modal_img_large" class="modal">
|
||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||
<div id="modal_img_container"></div>
|
||
<div id="caption"></div>
|
||
</div>
|
||
|
||
|
||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||
|
||
|
||
</body>
|
||
</html> |