# Broadcom BCM6368 GPIO System Controller

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

> Device-tree binding reference for Broadcom BCM6368 GPIO System Controller.

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;brcm&#44;bcm6368&#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;Álvaro Fernández Rojas &#60;noltari&#64;gmail&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Jonas Gorski &#60;jonas&#46;gorski&#64;gmail&#46;com&#62;&#34;</code></span>

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

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

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

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

### <code>&#35;address&#45;cells</code> — required here

<code>true</code> — No constraints added by this property rule.

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

### <code>&#35;size&#45;cells</code> — required here

<code>true</code> — No constraints added by this property rule.

<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;brcm&#44;bcm6368&#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-1e6b10cf5f67a6a268f5"></a>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-7928d91ff1b85834b6df"><code>1</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-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-83ffd0aecad0478199bc"></a>

### <code>&#94;gpio&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

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

<div id="dt-1d0f8d8ab0f1665089b1">
<p style="white-space: pre-wrap">GPIO controller for the SoC GPIOs. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/gpio/brcm,bcm63xx-gpio.yaml.</p>
</div>

<a id="dt-08e397732687c48e6e2b"></a>

### <code>&#94;pinctrl&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;</code> — name matches this regular expression

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

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

<div id="dt-76c2d0cdbb7599372e82">
<p style="white-space: pre-wrap">Pin controller for the SoC pins. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/pinctrl/brcm,bcm6368-pinctrl.yaml.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;compatible&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ranges&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;reg&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;size&#45;cells&#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">syscon@10000080 {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  compatible = "brcm,bcm6368-gpio-sysctl", "syscon", "simple-mfd";
  reg = &lt;0x10000080 0x80&gt;;
  ranges = &lt;0 0x10000080 0x80&gt;;

  gpio@0 {
    compatible = "brcm,bcm6368-gpio";
    reg-names = "dirout", "dat";
    reg = &lt;0x0 0x8&gt;, &lt;0x8 0x8&gt;;

    gpio-controller;
    gpio-ranges = &lt;&amp;pinctrl 0 0 38&gt;;
    #gpio-cells = &lt;2&gt;;
  };

  pinctrl: pinctrl@18 {
    compatible = "brcm,bcm6368-pinctrl";
    reg = &lt;0x18 0x4&gt;, &lt;0x38 0x4&gt;;

    pinctrl_analog_afe_0: analog_afe_0-pins {
      function = "analog_afe_0";
      pins = "gpio0";
    };

    pinctrl_analog_afe_1: analog_afe_1-pins {
      function = "analog_afe_1";
      pins = "gpio1";
    };

    pinctrl_sys_irq: sys_irq-pins {
      function = "sys_irq";
      pins = "gpio2";
    };

    pinctrl_serial_led: serial_led-pins {
      pinctrl_serial_led_data: serial_led_data-pins {
        function = "serial_led_data";
        pins = "gpio3";
      };

      pinctrl_serial_led_clk: serial_led_clk-pins {
        function = "serial_led_clk";
        pins = "gpio4";
      };
    };

    pinctrl_inet_led: inet_led-pins {
      function = "inet_led";
      pins = "gpio5";
    };

    pinctrl_ephy0_led: ephy0_led-pins {
      function = "ephy0_led";
      pins = "gpio6";
    };

    pinctrl_ephy1_led: ephy1_led-pins {
      function = "ephy1_led";
      pins = "gpio7";
    };

    pinctrl_ephy2_led: ephy2_led-pins {
      function = "ephy2_led";
      pins = "gpio8";
    };

    pinctrl_ephy3_led: ephy3_led-pins {
      function = "ephy3_led";
      pins = "gpio9";
    };

    pinctrl_robosw_led_data: robosw_led_data-pins {
      function = "robosw_led_data";
      pins = "gpio10";
    };

    pinctrl_robosw_led_clk: robosw_led_clk-pins {
      function = "robosw_led_clk";
      pins = "gpio11";
    };

    pinctrl_robosw_led0: robosw_led0-pins {
      function = "robosw_led0";
      pins = "gpio12";
    };

    pinctrl_robosw_led1: robosw_led1-pins {
      function = "robosw_led1";
      pins = "gpio13";
    };

    pinctrl_usb_device_led: usb_device_led-pins {
      function = "usb_device_led";
      pins = "gpio14";
    };

    pinctrl_pci: pci-pins {
      pinctrl_pci_req1: pci_req1-pins {
        function = "pci_req1";
        pins = "gpio16";
      };

      pinctrl_pci_gnt1: pci_gnt1-pins {
        function = "pci_gnt1";
        pins = "gpio17";
      };

      pinctrl_pci_intb: pci_intb-pins {
        function = "pci_intb";
        pins = "gpio18";
      };

      pinctrl_pci_req0: pci_req0-pins {
        function = "pci_req0";
        pins = "gpio19";
      };

      pinctrl_pci_gnt0: pci_gnt0-pins {
        function = "pci_gnt0";
        pins = "gpio20";
      };
    };

    pinctrl_pcmcia: pcmcia-pins {
      pinctrl_pcmcia_cd1: pcmcia_cd1-pins {
        function = "pcmcia_cd1";
        pins = "gpio22";
      };

      pinctrl_pcmcia_cd2: pcmcia_cd2-pins {
        function = "pcmcia_cd2";
        pins = "gpio23";
      };

      pinctrl_pcmcia_vs1: pcmcia_vs1-pins {
        function = "pcmcia_vs1";
        pins = "gpio24";
      };

      pinctrl_pcmcia_vs2: pcmcia_vs2-pins {
        function = "pcmcia_vs2";
        pins = "gpio25";
      };
    };

    pinctrl_ebi_cs2: ebi_cs2-pins {
      function = "ebi_cs2";
      pins = "gpio26";
    };

    pinctrl_ebi_cs3: ebi_cs3-pins {
      function = "ebi_cs3";
      pins = "gpio27";
    };

    pinctrl_spi_cs2: spi_cs2-pins {
      function = "spi_cs2";
      pins = "gpio28";
    };

    pinctrl_spi_cs3: spi_cs3-pins {
      function = "spi_cs3";
      pins = "gpio29";
    };

    pinctrl_spi_cs4: spi_cs4-pins {
      function = "spi_cs4";
      pins = "gpio30";
    };

    pinctrl_spi_cs5: spi_cs5-pins {
      function = "spi_cs5";
      pins = "gpio31";
    };

    pinctrl_uart1: uart1-pins {
      function = "uart1";
      pins = "uart1_grp";
    };
  };
};
</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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 36:</strong> <span> Child node</span></p>

<p id="dt-comment-2"><strong>Line 45:</strong> <span> Child node</span></p>

</details>
