<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_use_GPIO_for_Diagnostic</id>
		<title>How to use GPIO for Diagnostic - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_use_GPIO_for_Diagnostic"/>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;action=history"/>
		<updated>2026-05-21T08:23:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.3</generator>

	<entry>
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;diff=18651&amp;oldid=prev</id>
		<title>Wei.zeng at 03:17, 20 March 2020</title>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;diff=18651&amp;oldid=prev"/>
				<updated>2020-03-20T03:17:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 03:17, 20 March 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;Please note that Pin configuration/muxing is a non-trivial part of the overall system design. It is easily possible to do illegal configurations when it comes to multiplexed pins (e.g. one pin driving low and the other one driving high). Even more though on SoCs where certain settings in this respect cannot be done per pin but rather only per pin group.&amp;lt;/span&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;Please note that Pin configuration/muxing is a non-trivial part of the overall system design. It is easily possible to do illegal configurations when it comes to multiplexed pins (e.g. one pin driving low and the other one driving high). Even more though on SoCs where certain settings in this respect cannot be done per pin but rather only per pin group.&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Configuration ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Configuration ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l79&quot; &gt;Line 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;More information concerning the Linux' GPIO subsystem can be found in the following kernel documentation file:&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;More information concerning the Linux' GPIO subsystem can be found in the following kernel documentation file:&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Media:Gpio.txt|&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;; font-size: 14px&lt;/del&gt;; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;GPIO.TXT&amp;lt;/span&amp;gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;span style=&amp;quot;font-size: large;&amp;quot;&amp;gt;''&amp;lt;u&amp;gt;'''&lt;/ins&gt;[[Media:Gpio.txt|&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;GPIO.TXT&amp;lt;/span&amp;gt;]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&amp;lt;/u&amp;gt;''&amp;lt;/span&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wei.zeng</name></author>	</entry>

	<entry>
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;diff=18650&amp;oldid=prev</id>
		<title>Wei.zeng at 03:16, 20 March 2020</title>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;diff=18650&amp;oldid=prev"/>
				<updated>2020-03-20T03:16:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 03:16, 20 March 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l79&quot; &gt;Line 79:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 79:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;More information concerning the Linux' GPIO subsystem can be found in the following kernel documentation file:&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;More information concerning the Linux' GPIO subsystem can be found in the following kernel documentation file:&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Gpio.txt|&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;GPIO.TXT&amp;lt;/span&amp;gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Media:&lt;/ins&gt;Gpio.txt|&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;GPIO.TXT&amp;lt;/span&amp;gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wei.zeng</name></author>	</entry>

	<entry>
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;diff=18649&amp;oldid=prev</id>
		<title>Wei.zeng: Created page with &quot;&lt;span style=&quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: norma...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=How_to_use_GPIO_for_Diagnostic&amp;diff=18649&amp;oldid=prev"/>
				<updated>2020-03-20T03:14:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: norma...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;Please note that Pin configuration/muxing is a non-trivial part of the overall system design. It is easily possible to do illegal configurations when it comes to multiplexed pins (e.g. one pin driving low and the other one driving high). Even more though on SoCs where certain settings in this respect cannot be done per pin but rather only per pin group.&amp;lt;/span&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&lt;br /&gt;
The i.MX bank/bit notation for GPIOs must be formed&amp;amp;nbsp;as&amp;amp;nbsp;&amp;quot;GPIO&amp;amp;lt;GPIO_bank&amp;amp;gt;_IO&amp;amp;lt;gpio_bit&amp;amp;gt;&amp;quot;&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
The numeric value of GPIO&amp;amp;nbsp;is calculated as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;32 x (gpio_bank- 1) + gpio_bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
E.g. GPIO2_IO04 becomes 36&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Rockchip&amp;amp;nbsp;bank/bit notation for GPIOs must be formed&amp;amp;nbsp;as&amp;amp;nbsp;&amp;quot;GPIO&amp;amp;lt;GPIO_bank&amp;amp;gt;_[A-D]&amp;amp;lt;gpio_bit&amp;amp;gt;&amp;quot;&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
The numeric value of GPIO&amp;amp;nbsp;is calculated as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;32 x gpio_bank + gpio_bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
E.g. GPIO2_A3 becomes 67，Note：GIPO0 only 24 pins in this group&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_export_a_particular_pin_as_GPIO_for_user_control_proceed_as_follows To export a particular pin as GPIO for user control proceed as follows:] ====&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo 189 &amp;gt; /sys/class/gpio/export&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_change_that_GPIO_pins_direction_to_inout To change that GPIO pins direction to in/out:] ====&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo &amp;quot;in&amp;quot; &amp;gt; /sys/class/gpio/gpio189/direction&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo &amp;quot;out&amp;quot; &amp;gt; /sys/class/gpio/gpio189/direction&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_check_the_value_in_case_its_direction_is_input To check the value (in case its direction is input):] ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;block-warning&amp;quot;&amp;gt;'''Warning:'''&amp;lt;span&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;On i.MX based modules one cannot read back the value which has been set to an output unless one did set the SION bit in the pin muxing.&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ cat /sys/class/gpio/gpio189/value&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_change_its_value_in_case_its_direction_is_output To change its value (in case its direction is output):] ====&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo 1 &amp;gt; /sys/class/gpio/gpio189/value&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo 0 &amp;gt; /sys/class/gpio/gpio189/value&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_directly_force_a_GPIO_to_output_and_set_its_initial_value_eg_glitch_free_operation To directly force a GPIO to output and set its initial value (e.g. glitch free operation):] ====&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo high &amp;gt; /sys/class/gpio/gpio189/direction&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo low &amp;gt; /sys/class/gpio/gpio189/direction&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_configure_a_GPIO_as_an_interrupt_source To configure a GPIO as an interrupt source:] ====&lt;br /&gt;
&lt;br /&gt;
Note: If a GPIO is configured as an input, one can configure the GPIO as an interrupt source. Configure GPIO if the interrupt occurs when the GPIO signal has a rising edge, a falling edge, or interrupts on both rising and falling edges.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo &amp;quot;rising&amp;quot; &amp;gt; /sys/class/gpio/gpio189/edge&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Possible values&lt;br /&gt;
&amp;lt;ul style=&amp;quot;list-style: none; padding: 0px 0px 0px 10px; color: rgb(0, 0, 0); text-transform: none; line-height: 26.6px; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; margin-top: 0px; margin-bottom: 0px; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;rising: Trigger on rising edge&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;falling: Trigger on falling edge&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;both: Trigger on both edges&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;none: Disable interrupts on both edges&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [https://developer.toradex.cn/knowledge-base/gpio-(linux)#To_unexport_aka_revert_the_exporting_of_a_GPIO_pin To un-export aka revert the exporting of a GPIO pin:] ====&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background: rgb(255, 255, 255); margin: 3px 0px; padding: 10px; border-radius: 4px; border: 1px dotted rgb(204, 204, 204); color: rgb(0, 0, 0); text-transform: none; line-height: 1.4285; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: monospace !important; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; display: block; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; tab-size: 4; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; hyphens: none;&amp;quot;&amp;gt;$ echo 189 &amp;gt; /sys/class/gpio/unexport&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;block-warning&amp;quot;&amp;gt;'''Warning:'''&amp;lt;span&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;GPIOs which are already used in the drivers can not be controlled from sysfs, unless a driver explicitly exported that particular pins GPIO.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;More information concerning the Linux' GPIO subsystem can be found in the following kernel documentation file:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Gpio.txt|&amp;lt;span style=&amp;quot;color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;&amp;quot;&amp;gt;GPIO.TXT&amp;lt;/span&amp;gt;]]&lt;/div&gt;</summary>
		<author><name>Wei.zeng</name></author>	</entry>

	</feed>