Re: [PATCH v2 1/4] dt-bindings: connector: Add PCIe M.2 Mechanical Key B connector

From: Rob Herring

Date: Mon Nov 23 2026 - 12:49:12 EST


On Mon, Nov 23, 2026 at 02:04:29PM +0400, Alexey Charkov wrote:
> Hi Krishna,
>
> On Sun, Nov 22, 2026 at 10:46 AM Krishna Chaitanya Chundru
> <krishna.chundru@xxxxxxxxxxxxxxxx> wrote:
> >
> > Add the devicetree binding for PCIe M.2 Mechanical Key B connector
> > defined in the PCI Express M.2 Specification, r4.2, sec 3.2.19.1. This
> > connector is used to attach WWAN Adapters to the host machine over
> > interfaces such as PCIe, USB3.1 Gen1, SSIC, or USB 2.0. The slot also
> > accepts SATA and PCIe SSD Adapters, which use the same pins.
> >
> > Interfaces that share connector pins are described as one graph port
> > per pin group, with the endpoint number selecting between the mutually
> > exclusive interfaces.
> >
> > The connector provides a primary power supply of 3.3V/VBAT, along with
> > optional GPIO signals: FULL_CARD_POWER_OFF#, RESET#, W_DISABLE1# and DPR
> > for WWAN Adapters, and DEVSLP, PLN# and SMBus ALERT# for SSD Adapters,
> > plus an I2C parent for the SSD SMBus.
> >
> > The function of the GPIO_0..GPIO_11 pins depends on the Port
> > Configuration, so they are described by gpioN-gpios properties with the
> > function of each pin per configuration documented in the binding. The
> > Adapter configuration is either sensed through config-gpios
> > (CONFIG_0..3) or fixed with config-state, which defaults to WWAN PCIe.
> >
> > Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@xxxxxxxxxxxxxxxx>
> > ---
> > .../bindings/connector/pcie-m2-b-connector.yaml | 332 +++++++++++++++++++++
> > MAINTAINERS | 1 +
> > 2 files changed, 333 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/connector/pcie-m2-b-connector.yaml b/Documentation/devicetree/bindings/connector/pcie-m2-b-connector.yaml
> > new file mode 100644
> > index 000000000000..4760863ff4f7
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/connector/pcie-m2-b-connector.yaml
> > @@ -0,0 +1,332 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/connector/pcie-m2-b-connector.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: PCIe M.2 Mechanical Key B Connector
> > +
> > +maintainers:
> > + - Krishna Chaitanya Chundru <krishna.chundru@xxxxxxxxxxxxxxxx>
> > +
> > +description:
> > + A PCIe M.2 B connector node represents a physical PCIe M.2 Mechanical Key B
> > + connector. Mechanical Key B connectors are used to connect WWAN devices to
> > + the host machine over interfaces like PCIe, USB3.1 Gen1, SSIC, or USB 2.0,
> > + selected by the Adapter's configuration pins. The slot also accepts SATA and
> > + PCIe SSD Adapters, which use the same pins as the WWAN interfaces.
> > +
> > +properties:
> > + compatible:
> > + const: pcie-m2-b-connector
> > +
> > + vpcie3v3-supply:
> > + description: A phandle to the regulator for the 3.3v/VBAT supply.
>
> The node name doesn't match what the spec calls it ("pcie" seems
> redundant). Also, can a module have separate supplies for its 3.3v and
> VBAT?

Yes, but 'vpcie3v3' is already the name we use elsewhere for PCI.

Don't know about VBAT comment...

Rob