PCIe M.2 Mechanical Key M Connector
Schema identifier ($id): "http://devicetree.org/schemas/connector/pcie-m2-m-connector.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>"
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.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pcie-m2-m-connector"
vpcie3v3-supply — required here #
A phandle to the regulator for 3.3v supply.
vpcie1v8-supply — not listed as required here #
A phandle to the regulator for VIO 1.8v supply.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
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.
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
PCIe interface
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
SATA interface
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
USB 2.0 interface
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
i2c-parent — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
I2C interface
clocks — not listed as required here #
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.
Maximum number of items (maxItems): 1
pedet-gpios — not listed as required here #
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.
Maximum number of items (maxItems): 1
viocfg-gpios — not listed as required here #
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.
Maximum number of items (maxItems): 1
pwrdis-gpios — not listed as required here #
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.
Maximum number of items (maxItems): 1
pln-gpios — not listed as required here #
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.
Maximum number of items (maxItems): 1
plas3-gpios — not listed as required here #
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.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "vpcie3v3-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
connector {
compatible = "pcie-m2-m-connector";
vpcie3v3-supply = <&vreg_nvme>;
i2c-parent = <&i2c0>;
pedet-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
viocfg-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
pwrdis-gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>;
pln-gpios = <&tlmm 98 GPIO_ACTIVE_LOW>;
plas3-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
endpoint@0 {
reg = <0>;
remote-endpoint = <&pcie6_port0_ep>;
};
};
port@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <2>;
endpoint@0 {
reg = <0>;
remote-endpoint = <&usb_hs_ep>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 103: PCI M.2 Key M connector for SSDs with PCIe interface