Skip to content

Commit

Permalink
Deployed 1296837 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSjtu committed Feb 12, 2024
1 parent e90fd0d commit d794ac2
Show file tree
Hide file tree
Showing 13 changed files with 481 additions and 137 deletions.
Binary file added images/kernel/i2c-arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/kernel/i2c-bus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/kernel/i2c-signal01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/kernel/i2c-write.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions linux/drivers/gpio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2311,17 +2311,17 @@
<h1 id="gpio">GPIO子系统<a class="headerlink" href="#gpio" title="Permanent link">&para;</a></h1>
<p>GPIO全称“General Purpose Input/Output”,通用输入输出。GPIO可能是芯片自带的,也可能通过I2C、SPI接口扩展。</p>
<h2 id="_1">设备树描述<a class="headerlink" href="#_1" title="Permanent link">&para;</a></h2>
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>/*rk3568.dtsi*/
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>gpio0: gpio@fdd60000 {
<a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a> compatible = &quot;rockchip,gpio-bank&quot;;
<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a> reg = &lt;0x0 0xfdd60000 0x0 0x100&gt;;
<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a> interrupts = &lt;GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH&gt;;
<a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a> clocks = &lt;&amp;pmucru PCLK_GPIO0&gt;;
<a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a> gpio-controller;
<a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a> #gpio-cells = &lt;2&gt;;
<a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a> interrupt-controller;
<a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a> #interrupt-cells = &lt;2&gt;;
<a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>};
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="cm">/*rk3568.dtsi*/</span>
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="nl">gpio0</span><span class="p">:</span><span class="w"> </span><span class="n">gpio</span><span class="err">@</span><span class="n">fdd60000</span><span class="w"> </span><span class="p">{</span>
<a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="w"> </span><span class="n">compatible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;rockchip,gpio-bank&quot;</span><span class="p">;</span>
<a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a><span class="w"> </span><span class="n">reg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&lt;</span><span class="mh">0x0</span><span class="w"> </span><span class="mh">0xfdd60000</span><span class="w"> </span><span class="mh">0x0</span><span class="w"> </span><span class="mh">0x100</span><span class="o">&gt;</span><span class="p">;</span>
<a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a><span class="w"> </span><span class="n">interrupts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&lt;</span><span class="n">GIC_SPI</span><span class="w"> </span><span class="mi">33</span><span class="w"> </span><span class="n">IRQ_TYPE_LEVEL_HIGH</span><span class="o">&gt;</span><span class="p">;</span>
<a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a><span class="w"> </span><span class="n">clocks</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&lt;&amp;</span><span class="n">pmucru</span><span class="w"> </span><span class="n">PCLK_GPIO0</span><span class="o">&gt;</span><span class="p">;</span>
<a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a><span class="w"> </span><span class="n">gpio</span><span class="o">-</span><span class="n">controller</span><span class="p">;</span>
<a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a><span class="w"> </span><span class="cp">#gpio-cells = &lt;2&gt;;</span>
<a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a><span class="w"> </span><span class="n">interrupt</span><span class="o">-</span><span class="n">controller</span><span class="p">;</span>
<a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a><span class="w"> </span><span class="cp">#interrupt-cells = &lt;2&gt;;</span>
<a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a><span class="p">};</span>
</code></pre></div>
<h2 id="_2">数据结构<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h2>
<div class="highlight"><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="k">struct</span><span class="w"> </span><span class="nc">gpio_device</span><span class="w"> </span><span class="p">{</span>
Expand Down
Loading

0 comments on commit d794ac2

Please sign in to comment.