# Airoha EN7581 GPIO System Controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Mfd bindings_

> Device-tree binding reference for Airoha EN7581 GPIO System Controller.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;mfd&#47;airoha&#44;en7581&#45;gpio&#45;sysctl&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Christian Marangi &#60;ansuelsmth&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Lorenzo Bianconi &#60;lorenzo&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Airoha EN7581 SoC GPIO system controller which provided a register map for controlling the GPIO, pins and PWM of the SoC.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

<a id="dt-fec97e71a4359503ae6e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;airoha&#44;en7581&#45;gpio&#45;sysctl&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;syscon&#34;</code></span>

<a id="dt-9a5f0b2d9373c09998ec"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-985600cab9ae8398068d"><code>&#34;simple&#45;mfd&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-2a73799bc37844734021"></a>

### <code>pinctrl</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-b52a486c2b6dca4e4d33"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-750f6955378f610b76b5">[<code>&#47;schemas&#47;pinctrl&#47;airoha&#44;en7581&#45;pinctrl&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-pinctrl/airoha-en7581-pinctrl.md#dt-root>)</span>

<div id="dt-497ed455b8fd0c26fa30">
<p style="white-space: pre-wrap">Child node definition for EN7581 Pin controller</p>
</div>

<a id="dt-b72ba51a9c71bebf5795"></a>

### <code>pwm</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-6c4365e0d1fbdb0a5729"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b1f2cf110527c95cb9c8">[<code>&#47;schemas&#47;pwm&#47;airoha&#44;en7581&#45;pwm&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-pwm/airoha-en7581-pwm.md#dt-root>)</span>

<div id="dt-0d55180ecbca4501a8df">
<p style="white-space: pre-wrap">Child node definition for EN7581 PWM controller</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

system-controller@1fbf0200 {
  compatible = "airoha,en7581-gpio-sysctl", "syscon", "simple-mfd";
  reg = &lt;0x1fbf0200 0xc0&gt;;

  pinctrl {
    compatible = "airoha,en7581-pinctrl";

    interrupt-parent = &lt;&amp;gic&gt;;
    interrupts = &lt;GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH&gt;;

    gpio-controller;
    #gpio-cells = &lt;2&gt;;

    interrupt-controller;
    #interrupt-cells = &lt;2&gt;;

    mmc-pins {
      mux {
        function = "emmc";
        groups = "emmc";
      };
    };

    mdio-pins {
      mux {
        function = "mdio";
        groups = "mdio";
      };

      conf {
        pins = "gpio2";
        output-enable;
      };
    };
  };

  pwm {
    compatible = "airoha,en7581-pwm";

    #pwm-cells = &lt;3&gt;;
  };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)</span></p>

</details>
