Skip to content

Commit 20c9bba

Browse files
committed
Updated GPIO Utility Guide for IMX8MP and added documentation for GPIO, and UART + fixed effected pages for RB5
1 parent a32cd8e commit 20c9bba

21 files changed

+833
-215
lines changed

smarc/ipi-smarc-imx8mp/GpioUtility.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@
7272
<!-- RSS -->
7373
<link rel="alternate" href="/smarc/atom.xml" title="ADLINK Industrial Pi Wiki" type="application/atom+xml">
7474
<!-- Open Graph -->
75-
<meta name="description" content="40-Pin I&#x2F;O Headers Utility on I-Pi SAMRC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I&#x2F;O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i">
75+
<meta name="description" content="40-Pin I&#x2F;O Headers Utility on I-Pi SMARC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I&#x2F;O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i">
7676
<meta property="og:type" content="website">
7777
<meta property="og:title" content="ADLINK Industrial Pi Wiki">
7878
<meta property="og:url" content="https://docs.ipi.wiki/smarc/ipi-smarc-imx8mp/GpioUtility.html">
7979
<meta property="og:site_name" content="ADLINK Industrial Pi Wiki">
80-
<meta property="og:description" content="40-Pin I&#x2F;O Headers Utility on I-Pi SAMRC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I&#x2F;O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i">
80+
<meta property="og:description" content="40-Pin I&#x2F;O Headers Utility on I-Pi SMARC IMX8M Plus This document provides detailed instructions for utilizing the 40-Pin I&#x2F;O Headers on I-Pi SMARC IMX8M Plus. Prerequisites GPIO libraries are i">
8181
<meta property="og:locale" content="en_US">
82-
<meta property="article:published_time" content="2024-02-20T03:13:41.060Z">
83-
<meta property="article:modified_time" content="2024-02-20T03:13:41.060Z">
82+
<meta property="article:published_time" content="2024-10-18T06:04:18.292Z">
83+
<meta property="article:modified_time" content="2024-10-18T06:04:18.292Z">
8484
<meta property="article:author" content="ADLINK Technology Inc. All Rights Reserved.">
8585
<meta name="twitter:card" content="summary">
8686
<!-- Google Analytics -->
@@ -114,7 +114,7 @@ <h1 id="logo-wrap">
114114
</nav>
115115

116116
<div id = "changeurl">
117-
<script>window.onload = function() {parent.postMessage( {msg: '?page=GpioUtility.html'}, '*');}</script>
117+
<script>window.onload = function() {parent.postMessage( {msg: '?page=GpioUtility.html#GpioUtility.html'}, '*');}</script>
118118

119119
</div>
120120

@@ -142,14 +142,14 @@ <h1 class="article-title" itemprop="name"></h1>
142142
<a href="" class="article-edit-link" title="Improve this doc"><i class="fa fa-pencil"></i></a>
143143
</header>
144144
<div class="article-content bullets" itemprop="articleBody">
145-
<h1 id="40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus" class="article-heading"><a href="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus" class="headerlink" title="40-Pin I&#x2F;O Headers Utility on I-Pi SAMRC IMX8M Plus"></a>40-Pin I&#x2F;O Headers Utility on I-Pi SAMRC IMX8M Plus<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus'}, '*');" class="article-anchor" href="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus" aria-hidden="true"></a></h1><div class="bullets">
145+
<h1 id="40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC-IMX8M-Plus" class="article-heading"><a href="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC-IMX8M-Plus" class="headerlink" title="40-Pin I&#x2F;O Headers Utility on I-Pi SMARC IMX8M Plus"></a>40-Pin I&#x2F;O Headers Utility on I-Pi SMARC IMX8M Plus<a class="article-anchor" href="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC-IMX8M-Plus" aria-hidden="true"></a></h1><div class="bullets">
146146
This document provides detailed instructions for utilizing the 40-Pin I/O Headers on I-Pi SMARC IMX8M Plus.
147147

148-
<h2 id="Prerequisites" class="article-heading"><a href="#Prerequisites" class="headerlink" title="Prerequisites"></a>Prerequisites<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#Prerequisites'}, '*');" class="article-anchor" href="#Prerequisites" aria-hidden="true"></a></h2><ul>
148+
<h2 id="Prerequisites" class="article-heading"><a href="#Prerequisites" class="headerlink" title="Prerequisites"></a>Prerequisites<a class="article-anchor" href="#Prerequisites" aria-hidden="true"></a></h2><ul>
149149
<li>GPIO libraries are included with our image by default.</li>
150150
<li>Power up the targeted device with all the necessary cables such as HDMI, keyboard, mouse and ethernet cable.</li>
151151
</ul>
152-
<h2 id="Linux-Host" class="article-heading"><a href="#Linux-Host" class="headerlink" title="Linux Host"></a>Linux Host<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#Linux-Host'}, '*');" class="article-anchor" href="#Linux-Host" aria-hidden="true"></a></h2><h3 id="1-Getting-Started" class="article-heading"><a href="#1-Getting-Started" class="headerlink" title="1. Getting Started"></a>1. Getting Started<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#1-Getting-Started'}, '*');" class="article-anchor" href="#1-Getting-Started" aria-hidden="true"></a></h3><ul>
152+
<h2 id="Linux-Host" class="article-heading"><a href="#Linux-Host" class="headerlink" title="Linux Host"></a>Linux Host<a class="article-anchor" href="#Linux-Host" aria-hidden="true"></a></h2><h3 id="1-Getting-Started" class="article-heading"><a href="#1-Getting-Started" class="headerlink" title="1. Getting Started"></a>1. Getting Started<a class="article-anchor" href="#1-Getting-Started" aria-hidden="true"></a></h3><ul>
153153
<li><p>Install “hexer” for editing the binary files.</p>
154154
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo apt install hexer</span><br></pre></td></tr></table></figure>
155155
</li>
@@ -162,7 +162,7 @@ <h2 id="Linux-Host" class="article-heading"><a href="#Linux-Host" class="headerl
162162
<p><strong>Note:</strong> All the commands require administrator privileges and run as root user.</p>
163163
</li>
164164
</ul>
165-
<h3 id="2-Utilizing-the-Pin-Headers-with-Linux" class="article-heading"><a href="#2-Utilizing-the-Pin-Headers-with-Linux" class="headerlink" title="2. Utilizing the Pin Headers with Linux"></a>2. Utilizing the Pin Headers with Linux<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#2-Utilizing-the-Pin-Headers-with-Linux'}, '*');" class="article-anchor" href="#2-Utilizing-the-Pin-Headers-with-Linux" aria-hidden="true"></a></h3><h4 id="2-1-Voltage-Monitor" class="article-heading"><a href="#2-1-Voltage-Monitor" class="headerlink" title="2.1 Voltage Monitor"></a>2.1 Voltage Monitor<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#2-1-Voltage-Monitor'}, '*');" class="article-anchor" href="#2-1-Voltage-Monitor" aria-hidden="true"></a></h4><ul>
165+
<h3 id="2-Utilizing-the-Pin-Headers-with-Linux" class="article-heading"><a href="#2-Utilizing-the-Pin-Headers-with-Linux" class="headerlink" title="2. Utilizing the Pin Headers with Linux"></a>2. Utilizing the Pin Headers with Linux<a class="article-anchor" href="#2-Utilizing-the-Pin-Headers-with-Linux" aria-hidden="true"></a></h3><h4 id="2-1-Voltage-Monitor" class="article-heading"><a href="#2-1-Voltage-Monitor" class="headerlink" title="2.1 Voltage Monitor"></a>2.1 Voltage Monitor<a class="article-anchor" href="#2-1-Voltage-Monitor" aria-hidden="true"></a></h4><ul>
166166
<li><p>Open the terminal type the following command,</p>
167167
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">cd /sys/class/regulator</span><br></pre></td></tr></table></figure>
168168
</li>
@@ -176,7 +176,7 @@ <h3 id="2-Utilizing-the-Pin-Headers-with-Linux" class="article-heading"><a href=
176176

177177
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">cat regulator.1/name</span><br></pre></td></tr></table></figure></li>
178178
</ul>
179-
<h4 id="2-2-GPIO" class="article-heading"><a href="#2-2-GPIO" class="headerlink" title="2.2 GPIO"></a>2.2 GPIO<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#2-2-GPIO'}, '*');" class="article-anchor" href="#2-2-GPIO" aria-hidden="true"></a></h4><ul>
179+
<h4 id="2-2-GPIO" class="article-heading"><a href="#2-2-GPIO" class="headerlink" title="2.2 GPIO"></a>2.2 GPIO<a class="article-anchor" href="#2-2-GPIO" aria-hidden="true"></a></h4><ul>
180180
<li><p>Open the terminal type the following command,</p>
181181
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">cd /sys/class/gpio</span><br></pre></td></tr></table></figure>
182182
</li>
@@ -199,7 +199,7 @@ <h4 id="2-2-GPIO" class="article-heading"><a href="#2-2-GPIO" class="headerlink"
199199
<li><p>To write the value of a pin</p>
200200
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">echo 1 &gt; gpio497/value</span><br></pre></td></tr></table></figure></li>
201201
</ul>
202-
<h5 id="2-2-1-GPIO-Pin-Configurations" class="article-heading"><a href="#2-2-1-GPIO-Pin-Configurations" class="headerlink" title="2.2.1 GPIO Pin Configurations"></a>2.2.1 GPIO Pin Configurations<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#2-2-1-GPIO-Pin-Configurations'}, '*');" class="article-anchor" href="#2-2-1-GPIO-Pin-Configurations" aria-hidden="true"></a></h5><ul>
202+
<h5 id="2-2-1-GPIO-Pin-Configurations" class="article-heading"><a href="#2-2-1-GPIO-Pin-Configurations" class="headerlink" title="2.2.1 GPIO Pin Configurations"></a>2.2.1 GPIO Pin Configurations<a class="article-anchor" href="#2-2-1-GPIO-Pin-Configurations" aria-hidden="true"></a></h5><ul>
203203
<li><p>On CN1001 expansion connector E_GPIO and S_GPIO is available. These GPIO pins are mapped by to following numbers:</p>
204204
<p><strong>S_GPIO(MRAA) numbers are:</strong></p>
205205
<p>​ pin7 - 497</p>
@@ -219,7 +219,7 @@ <h5 id="2-2-1-GPIO-Pin-Configurations" class="article-heading"><a href="#2-2-1-G
219219
<p>​ pin40 - 469</p>
220220
</li>
221221
</ul>
222-
<h4 id="2-3-Storage" class="article-heading"><a href="#2-3-Storage" class="headerlink" title="2.3 Storage"></a>2.3 Storage<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#2-3-Storage'}, '*');" class="article-anchor" href="#2-3-Storage" aria-hidden="true"></a></h4><ul>
222+
<h4 id="2-3-Storage" class="article-heading"><a href="#2-3-Storage" class="headerlink" title="2.3 Storage"></a>2.3 Storage<a class="article-anchor" href="#2-3-Storage" aria-hidden="true"></a></h4><ul>
223223
<li><p>To read the storage area,</p>
224224
<p>hexdump &#x2F;sys&#x2F;bus&#x2F;nvmem&#x2F;devices&#x2F;<nvmem index>&#x2F;nvmem</nvmem></p>
225225
<p>For example:</p>
@@ -232,7 +232,7 @@ <h4 id="2-3-Storage" class="article-heading"><a href="#2-3-Storage" class="heade
232232
<p>Hexer will open a nvmem file in editor mode. To edit the data press <strong>r</strong> (replace) and enter new data then press <strong>ESC</strong> key and <strong>:wq</strong> to save. Then read the same file using hexdump to check saved changes.</p>
233233
</li>
234234
</ul>
235-
<h4 id="2-4-Backlight" class="article-heading"><a href="#2-4-Backlight" class="headerlink" title="2.4 Backlight"></a>2.4 Backlight<a onclick="parent.postMessage( {msg: '?page=GpioUtility.html#2-4-Backlight'}, '*');" class="article-anchor" href="#2-4-Backlight" aria-hidden="true"></a></h4><ul>
235+
<h4 id="2-4-Backlight" class="article-heading"><a href="#2-4-Backlight" class="headerlink" title="2.4 Backlight"></a>2.4 Backlight<a class="article-anchor" href="#2-4-Backlight" aria-hidden="true"></a></h4><ul>
236236
<li><p>Open the terminal type the following command,</p>
237237
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">cd /sys/class/backlight</span><br></pre></td></tr></table></figure>
238238
</li>
@@ -262,7 +262,7 @@ <h4 id="2-4-Backlight" class="article-heading"><a href="#2-4-Backlight" class="h
262262
</div>
263263
</div>
264264
<footer class="article-footer">
265-
<time class="article-footer-updated" datetime="2024-02-20T03:13:41.060Z" itemprop="dateModified">Last updated: 2024-02-20</time>
265+
<time class="article-footer-updated" datetime="2024-10-18T06:04:18.292Z" itemprop="dateModified">Last updated: 2024-10-18</time>
266266
<a href="AndroidImages.html" class="article-footer-prev" title="Android"><i class="fa fa-chevron-left"></i><span>Prev</span></a><a href="SerialLogReadSER.html" class="article-footer-next" title="How to Read Console Output"><span>Next</span><i class="fa fa-chevron-right"></i></a>
267267
</footer>
268268

@@ -272,7 +272,7 @@ <h4 id="2-4-Backlight" class="article-heading"><a href="#2-4-Backlight" class="h
272272
<div id="article-toc-inner">
273273
<div class="article-toc-border">
274274
<strong class="sidebar-title">Contents</strong>
275-
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SAMRC-IMX8M-Plus"><span class="toc-text">40-Pin I&#x2F;O Headers Utility on I-Pi SAMRC IMX8M Plus</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#Prerequisites"><span class="toc-text">Prerequisites</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Linux-Host"><span class="toc-text">Linux Host</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-Getting-Started"><span class="toc-text">1. Getting Started</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-Utilizing-the-Pin-Headers-with-Linux"><span class="toc-text">2. Utilizing the Pin Headers with Linux</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#2-1-Voltage-Monitor"><span class="toc-text">2.1 Voltage Monitor</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-2-GPIO"><span class="toc-text">2.2 GPIO</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#2-2-1-GPIO-Pin-Configurations"><span class="toc-text">2.2.1 GPIO Pin Configurations</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-3-Storage"><span class="toc-text">2.3 Storage</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-4-Backlight"><span class="toc-text">2.4 Backlight</span></a></li></ol></li></ol></li></ol></li></ol>
275+
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#40-Pin-I-x2F-O-Headers-Utility-on-I-Pi-SMARC-IMX8M-Plus"><span class="toc-text">40-Pin I&#x2F;O Headers Utility on I-Pi SMARC IMX8M Plus</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#Prerequisites"><span class="toc-text">Prerequisites</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Linux-Host"><span class="toc-text">Linux Host</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-Getting-Started"><span class="toc-text">1. Getting Started</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-Utilizing-the-Pin-Headers-with-Linux"><span class="toc-text">2. Utilizing the Pin Headers with Linux</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#2-1-Voltage-Monitor"><span class="toc-text">2.1 Voltage Monitor</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-2-GPIO"><span class="toc-text">2.2 GPIO</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#2-2-1-GPIO-Pin-Configurations"><span class="toc-text">2.2.1 GPIO Pin Configurations</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-3-Storage"><span class="toc-text">2.3 Storage</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-4-Backlight"><span class="toc-text">2.4 Backlight</span></a></li></ol></li></ol></li></ol></li></ol>
276276
<a href="#" id="article-toc-top">Back to Top</a>
277277
</div>
278278
</div>

0 commit comments

Comments
 (0)