# PCIe M.2 Mechanical Key M Connector

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

> Device-tree binding reference for PCIe M.2 Mechanical Key M Connector.

<!-- 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;connector&#47;pcie&#45;m2&#45;m&#45;connector&#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;Manivannan Sadhasivam &#60;manivannan&#46;sadhasivam&#64;oss&#46;qualcomm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">A PCIe M.2 M connector node represents a physical PCIe M.2 Mechanical Key M connector. The Mechanical Key M connectors are used to connect SSDs to the host system over PCIe/SATA interfaces. These connectors also offer optional interfaces like USB, SMBus.</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;pcie&#45;m2&#45;m&#45;connector&#34;</code></span>

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

### <code>vpcie3v3&#45;supply</code> — required here

<div id="dt-44e5a09b5ddb7f1b93ca">
<p style="white-space: pre-wrap">A phandle to the regulator for 3.3v supply.</p>
</div>

<a id="dt-4016bdcad77815fc16aa"></a>

### <code>vpcie1v8&#45;supply</code> — not listed as required here

<div id="dt-7a651d8eea7b0a54cb63">
<p style="white-space: pre-wrap">A phandle to the regulator for VIO 1.8v supply.</p>
</div>

<a id="dt-638717a7c9bbf1878b7e"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-253551a11be145495212">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;ports</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-638717a7c9bbf1878b7e>)</span>

<div id="dt-a74919f01bfec2b08490">
<p style="white-space: pre-wrap">OF graph bindings modeling the interfaces exposed on the connector. Since a single connector can have multiple interfaces, every interface has an assigned OF graph port number as described below.</p>
</div>

<a id="dt-076265030fa616d9c245"></a>

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

<a id="dt-16a3f454af238f04e210"></a>

**<code>port&#64;0</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4bf3c29e51dd1dcdbf80">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

<div id="dt-b1724f7738be96ef356e">
<p style="white-space: pre-wrap">PCIe interface</p>
</div>

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

**<code>port&#64;1</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9faa1456d91cf714ff9d">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

<div id="dt-0fa4b11c6410ab72ea2f">
<p style="white-space: pre-wrap">SATA interface</p>
</div>

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

**<code>port&#64;2</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bf0c0e1b24d670f57f64">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

<div id="dt-2494ba4fb5f1dc4cb38b">
<p style="white-space: pre-wrap">USB 2.0 interface</p>
</div>

<a id="dt-62004a1ee2226f7b3de4"></a>

#### At least one of these rules must match (<code>anyOf</code>)

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

**Rule 1**

> **Required in this object (<code>required</code>):** <a id="dt-d8075bd0e60f4ef6e706"></a> <span id="dt-d3c7f711942f98544e4e"><code>&#34;port&#64;0&#34;</code></span>

<a id="dt-7e02fad127d257cd2164"></a>

**Rule 2**

> **Required in this object (<code>required</code>):** <a id="dt-80ac30c993405af49a7d"></a> <span id="dt-cb4754982e79035c1760"><code>&#34;port&#64;1&#34;</code></span>

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

### <code>i2c&#45;parent</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-483fdd435500ca1c14bd">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

<div id="dt-de3c238d7401b2094729">
<p style="white-space: pre-wrap">I2C interface</p>
</div>

<a id="dt-4e9a371963ac013ad39d"></a>

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">32.768 KHz Suspend Clock (SUSCLK) input from the host system to the M.2 card. Refer, PCI Express M.2 Specification r4.0, sec 3.1.12.1 for more details.</p>
</div>

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

<a id="dt-4ba6dd96f32a516a6e92"></a>

### <code>pedet&#45;gpios</code> — not listed as required here

<div id="dt-d7e231febdc1c92c9868">
<p style="white-space: pre-wrap">GPIO input to PEDET signal. This signal is used by the host systems to determine the communication protocol that the M.2 card uses; SATA signaling (low) or PCIe signaling (high). Refer, PCI Express M.2 Specification r4.0, sec 3.3.4.2 for more details.</p>
</div>

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

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

### <code>viocfg&#45;gpios</code> — not listed as required here

<div id="dt-c74ef3d1e8af11056abc">
<p style="white-space: pre-wrap">GPIO input to IO voltage configuration (VIO_CFG) signal. This signal is used by the host systems to determine whether the card supports an independent IO voltage domain for the sideband signals or not. Refer, PCI Express M.2 Specification r4.0, sec 3.1.15.1 for more details.</p>
</div>

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

<a id="dt-175686585da3d0629d50"></a>

### <code>pwrdis&#45;gpios</code> — not listed as required here

<div id="dt-bdee65b97bfafe41f118">
<p style="white-space: pre-wrap">GPIO output to Power Disable (PWRDIS) signal. This signal is used by the host system to disable power on the M.2 card. Refer, PCI Express M.2 Specification r4.0, sec 3.3.5.2 for more details.</p>
</div>

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

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

### <code>pln&#45;gpios</code> — not listed as required here

<div id="dt-ed83e8dbc4a4e598928a">
<p style="white-space: pre-wrap">GPIO output to Power Loss Notification (PLN#) signal. This signal is used by the host system to notify the M.2 card that the power loss event is about to occur. Refer, PCI Express M.2 Specification r4.0, sec 3.2.17.1 for more details.</p>
</div>

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

<a id="dt-513f3c2ee3b276d0c797"></a>

### <code>plas3&#45;gpios</code> — not listed as required here

<div id="dt-ac9d52c94efc5bb91dc2">
<p style="white-space: pre-wrap">GPIO input to Power Loss Acknowledge (PLA_S3#) signal. This signal is used by the host system to receive the acknowledgment of the M.2 card's preparation for power loss.</p>
</div>

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

**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;vpcie3v3&#45;supply&#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/gpio/gpio.h&gt;

connector {
    compatible = "pcie-m2-m-connector";
    vpcie3v3-supply = &lt;&amp;vreg_nvme&gt;;
    i2c-parent = &lt;&amp;i2c0&gt;;
    pedet-gpios = &lt;&amp;tlmm 95 GPIO_ACTIVE_HIGH&gt;;
    viocfg-gpios = &lt;&amp;tlmm 96 GPIO_ACTIVE_HIGH&gt;;
    pwrdis-gpios = &lt;&amp;tlmm 97 GPIO_ACTIVE_HIGH&gt;;
    pln-gpios = &lt;&amp;tlmm 98 GPIO_ACTIVE_LOW&gt;;
    plas3-gpios = &lt;&amp;tlmm 99 GPIO_ACTIVE_LOW&gt;;

    ports {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        port@0 {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;

            reg = &lt;0&gt;;

            endpoint@0 {
                reg = &lt;0&gt;;
                remote-endpoint = &lt;&amp;pcie6_port0_ep&gt;;
            };
        };

        port@2 {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;

            reg = &lt;2&gt;;

            endpoint@0 {
                reg = &lt;0&gt;;
                remote-endpoint = &lt;&amp;usb_hs_ep&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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 103:</strong> <span> PCI M.2 Key M connector for SSDs with PCIe interface</span></p>

</details>
