Path: blob/master/Documentation/devicetree/bindings/connector/pcie-m2-m-connector.yaml
121834 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/connector/pcie-m2-m-connector.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: PCIe M.2 Mechanical Key M Connector78maintainers:9- Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>1011description:12A PCIe M.2 M connector node represents a physical PCIe M.2 Mechanical Key M13connector. The Mechanical Key M connectors are used to connect SSDs to the14host system over PCIe/SATA interfaces. These connectors also offer optional15interfaces like USB, SMBus.1617properties:18compatible:19const: pcie-m2-m-connector2021vpcie3v3-supply:22description: A phandle to the regulator for 3.3v supply.2324vpcie1v8-supply:25description: A phandle to the regulator for VIO 1.8v supply.2627ports:28$ref: /schemas/graph.yaml#/properties/ports29description: OF graph bindings modeling the interfaces exposed on the30connector. Since a single connector can have multiple interfaces, every31interface has an assigned OF graph port number as described below.3233properties:34port@0:35$ref: /schemas/graph.yaml#/properties/port36description: PCIe interface3738port@1:39$ref: /schemas/graph.yaml#/properties/port40description: SATA interface4142port@2:43$ref: /schemas/graph.yaml#/properties/port44description: USB 2.0 interface4546anyOf:47- required:48- port@049- required:50- port@15152i2c-parent:53$ref: /schemas/types.yaml#/definitions/phandle54description: I2C interface5556clocks:57description: 32.768 KHz Suspend Clock (SUSCLK) input from the host system to58the M.2 card. Refer, PCI Express M.2 Specification r4.0, sec 3.1.12.1 for59more details.60maxItems: 16162pedet-gpios:63description: GPIO input to PEDET signal. This signal is used by the host64systems to determine the communication protocol that the M.2 card uses;65SATA signaling (low) or PCIe signaling (high). Refer, PCI Express M.266Specification r4.0, sec 3.3.4.2 for more details.67maxItems: 16869viocfg-gpios:70description: GPIO input to IO voltage configuration (VIO_CFG) signal. This71signal is used by the host systems to determine whether the card supports72an independent IO voltage domain for the sideband signals or not. Refer,73PCI Express M.2 Specification r4.0, sec 3.1.15.1 for more details.74maxItems: 17576pwrdis-gpios:77description: GPIO output to Power Disable (PWRDIS) signal. This signal is78used by the host system to disable power on the M.2 card. Refer, PCI79Express M.2 Specification r4.0, sec 3.3.5.2 for more details.80maxItems: 18182pln-gpios:83description: GPIO output to Power Loss Notification (PLN#) signal. This84signal is used by the host system to notify the M.2 card that the power85loss event is about to occur. Refer, PCI Express M.2 Specification r4.0,86sec 3.2.17.1 for more details.87maxItems: 18889plas3-gpios:90description: GPIO input to Power Loss Acknowledge (PLA_S3#) signal. This91signal is used by the host system to receive the acknowledgment of the M.292card's preparation for power loss.93maxItems: 19495required:96- compatible97- vpcie3v3-supply9899additionalProperties: false100101examples:102# PCI M.2 Key M connector for SSDs with PCIe interface103- |104#include <dt-bindings/gpio/gpio.h>105106connector {107compatible = "pcie-m2-m-connector";108vpcie3v3-supply = <&vreg_nvme>;109i2c-parent = <&i2c0>;110pedet-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;111viocfg-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;112pwrdis-gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>;113pln-gpios = <&tlmm 98 GPIO_ACTIVE_LOW>;114plas3-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;115116ports {117#address-cells = <1>;118#size-cells = <0>;119120port@0 {121#address-cells = <1>;122#size-cells = <0>;123124reg = <0>;125126endpoint@0 {127reg = <0>;128remote-endpoint = <&pcie6_port0_ep>;129};130};131132port@2 {133#address-cells = <1>;134#size-cells = <0>;135136reg = <2>;137138endpoint@0 {139reg = <0>;140remote-endpoint = <&usb_hs_ep>;141};142};143};144};145146147