Path: blob/master/Documentation/devicetree/bindings/connector/pcie-m2-e-connector.yaml
170954 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-e-connector.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: PCIe M.2 Mechanical Key E Connector78maintainers:9- Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>1011description:12A PCIe M.2 E connector node represents a physical PCIe M.2 Mechanical Key E13connector. Mechanical Key E connectors are used to connect Wireless14Connectivity devices including combinations of Wi-Fi, BT, NFC to the host15machine over interfaces like PCIe/SDIO, USB/UART+PCM, and I2C.1617properties:18compatible:19const: pcie-m2-e-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.2627i2c-parent:28$ref: /schemas/types.yaml#/definitions/phandle29description: I2C interface3031clocks:32description: 32.768 KHz Suspend Clock (SUSCLK) input from the host system to33the M.2 card. Refer, PCI Express M.2 Specification r4.0, sec 3.1.12.1 for34more details.35maxItems: 13637w-disable1-gpios:38description: GPIO output to W_DISABLE1# signal. This signal is used by the39host system to disable WiFi radio in the M.2 card. Refer, PCI Express M.240Specification r4.0, sec 3.1.12.3 for more details.41maxItems: 14243w-disable2-gpios:44description: GPIO output to W_DISABLE2# signal. This signal is used by the45host system to disable BT radio in the M.2 card. Refer, PCI Express M.246Specification r4.0, sec 3.1.12.3 for more details.47maxItems: 14849viocfg-gpios:50description: GPIO input to IO voltage configuration (VIO_CFG) signal. The51card drives this signal to indicate to the host system whether the card52supports an independent IO voltage domain for sideband signals. Refer,53PCI Express M.2 Specification r4.0, sec 3.1.15.1 for more details.54maxItems: 15556uart-wake-gpios:57description: GPIO input to UART_WAKE# signal. The card asserts this signal58to wake the host system and initiate UART interface communication. Refer,59PCI Express M.2 Specification r4.0, sec 3.1.8.1 for more details.60maxItems: 16162sdio-wake-gpios:63description: GPIO input to SDIO_WAKE# signal. The card asserts this signal64to wake the host system and initiate SDIO interface communication. Refer,65PCI Express M.2 Specification r4.0, sec 3.1.7 for more details.66maxItems: 16768sdio-reset-gpios:69description: GPIO output to SDIO_RESET# signal. This signal is used by the70host system to reset SDIO interface of the M.2 card. Refer, PCI Express71M.2 Specification r4.0, sec 3.1.7 for more details.72maxItems: 17374vendor-porta-gpios:75description: GPIO for the first vendor specific signal (VENDOR_PORTA). This76signal's functionality is defined by the card manufacturer and may be77used for proprietary features. Refer the card vendor's documentation for78details.79maxItems: 18081vendor-portb-gpios:82description: GPIO for the second vendor specific signal (VENDOR_PORTB). This83signal's functionality is defined by the card manufacturer and may be84used for proprietary features. Refer the card vendor's documentation for85details.86maxItems: 18788vendor-portc-gpios:89description: GPIO for the third vendor specific signal (VENDOR_PORTC). This90signal's functionality is defined by the card manufacturer and may be91used for proprietary features. Refer the card vendor's documentation for92details.93maxItems: 19495ports:96$ref: /schemas/graph.yaml#/properties/ports97description: OF graph bindings modeling the interfaces exposed on the98connector. Since a single connector can have multiple interfaces, every99interface has an assigned OF graph port number as described below.100101properties:102port@0:103$ref: /schemas/graph.yaml#/properties/port104description: PCIe interface for Wi-Fi105106port@1:107$ref: /schemas/graph.yaml#/properties/port108description: SDIO interface for Wi-Fi109110port@2:111$ref: /schemas/graph.yaml#/properties/port112description: USB 2.0 interface for BT113114port@3:115$ref: /schemas/graph.yaml#/properties/port116description: UART interface for BT117118port@4:119$ref: /schemas/graph.yaml#/properties/port120description: PCM/I2S interface121122anyOf:123- anyOf:124- required:125- port@0126- required:127- port@1128- anyOf:129- required:130- port@2131- required:132- port@3133134required:135- compatible136- vpcie3v3-supply137138additionalProperties: false139140examples:141# PCI M.2 Key E connector for Wi-Fi/BT with PCIe/UART interfaces142- |143#include <dt-bindings/gpio/gpio.h>144145connector {146compatible = "pcie-m2-e-connector";147vpcie3v3-supply = <&vreg_wcn_3p3>;148vpcie1v8-supply = <&vreg_l15b_1p8>;149i2c-parent = <&i2c0>;150w-disable1-gpios = <&tlmm 115 GPIO_ACTIVE_LOW>;151w-disable2-gpios = <&tlmm 116 GPIO_ACTIVE_LOW>;152viocfg-gpios = <&tlmm 117 GPIO_ACTIVE_HIGH>;153uart-wake-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>;154sdio-wake-gpios = <&tlmm 119 GPIO_ACTIVE_LOW>;155sdio-reset-gpios = <&tlmm 120 GPIO_ACTIVE_LOW>;156157ports {158#address-cells = <1>;159#size-cells = <0>;160161port@0 {162reg = <0>;163#address-cells = <1>;164#size-cells = <0>;165166endpoint@0 {167reg = <0>;168remote-endpoint = <&pcie4_port0_ep>;169};170};171172port@3 {173reg = <3>;174#address-cells = <1>;175#size-cells = <0>;176177endpoint@0 {178reg = <0>;179remote-endpoint = <&uart14_ep>;180};181};182};183};184185186