From nobody Tue Nov 24 11:51:55 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795329969; b=cJyIgOFlWkNo9NFhaHV7dhc+wESjm4a8bMISD/Twq1Q6s4fgYkHCG6rPI2t5SI9/Y30j thDqVC72TOPPskyGoxZv2vRA6I9cld+PxBzSlbkKZS4AD0Y6m0kE6nfBqbYOpXoY9iBkh fMEScNRC0DPScvPDr4H+8wP3NxS83bUFaXxbCvqMA0XLxEjqLhb+S71MLxQ9dYNnIkPOC hOlNFxO7DN9DI2cJvJaQTcJrO1hn69mVV1vZcPywlaK2EmiP0NmjmjbaRq8pK+heQ3iyG 0uH1OTU2j6Cw7WuSrZqzTRUbAXDNPYxz2h5HfVfs15J6USWaJxTFfS/3wbGVwEiNT1w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795329969; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=H/b9r64wVj4efOL6ncKUcE6MGl+qFdrpSZkrqiV+IvQ=; b=DqKTFADZLXEXfRhMgN5MixyzeaFO9bAE9h/t0i3vcThRuLmCLNxK6AKl7RpVuiPjQPEt R0gJ1WLvtgIYLUoJgAUGd2V9YBWLk5kWCyYG7X+9LtvQFH3g7W9SDRqR3IWEGvIPSNK31 Ux/7UhnTxyXwTFflFuOlg6IKyNkrJU6JzoumpWZldw0F7dfAgmSyUXHiumRztv6JlHWiq iQ2TqaJqjSxzFZL/90LgFUhDx4guekiwDp2IgVc6zHA8CwaTBcIAwEOnL0zLf8i//BFfd OZLoN6qpDvcQutOXPrzGGjW1VdZdQhJybvID8KT57+Xr9Nw8GyO3MIDvjSr3KeZuGHw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=g1AHavZA; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ThTc3t5Z; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D6BD606A32C for ; Sun, 22 Nov 2026 06:46:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9D6BD606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=g1AHavZA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ThTc3t5Z Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AM3koOw2446224 for ; Sun, 22 Nov 2026 06:46:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= H/b9r64wVj4efOL6ncKUcE6MGl+qFdrpSZkrqiV+IvQ=; b=g1AHavZA7+/wFP3E uTSCsL0EAT/1GL1ykBhS5je5x4i5qA2Z+GxS1wGLKGKU08+DeycL++wFjUOyYJXb 847WGawtFvuJJwCyfUHpD87YnFsZxLfEngF2/eIIguZ9CFmgOh6c1jmOxSCqA38C 7GJ8v7gN2RYelZWt9qKN4uBhiO7tI5zPTc5G6bW/x66WPAQaZPKlN0zDAfJo6aES nquRrdJ5FM2RAh+g1cxNuLTA3UGRpgYXJqX7vE//KjWpFFGc12baATZfaEODQLYV CSGVM8FHhS9e8H4WlMECO3cBq3I6bMpmyQqQA23OHTqg5j0kC9v/Z/uFmFe2jiqz +uL5Jw== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j33cu2v3f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 22 Nov 2026 06:46:07 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-384c78aa0dbso3291346eec.0 for ; Sat, 21 Nov 2026 22:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795329966; x=1795934766; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=H/b9r64wVj4efOL6ncKUcE6MGl+qFdrpSZkrqiV+IvQ=; b=ThTc3t5ZyZSNmmF/0nuTCUptAC3t+nz0BSYp/A2S4tXuxCl/9VNh6p3REGDLQP9Ke+ w6l3qHB1cL8W0JMXtDxOU93Aa9U9L+36hx88trqCHknWbQLeB8lNcrw8jPwdp9QBgqGa z9q6wiTyys8GxzeGTvR/7q9epG/GQ87HxhjDxq9+W2LjRDH2iYbQ/6hYS++1Ho1nqT3v m2BYbLbV6HJVdPnEHk9ZMO/8rECGDAqnfyeZqBcEF1COPyb/sVd3dR+x3zotu1eVKkEF YkJ0QbaCyDZQOEwnTvwLOO73GcxHAJ2gW0PWGjRIOYyxg8VJfjfYR5CYtuUZiAorif8f xD7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795329966; x=1795934766; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=H/b9r64wVj4efOL6ncKUcE6MGl+qFdrpSZkrqiV+IvQ=; b=Ht6Ab4iaXU/zk9QZxOVZYF+SOZCGQTfKLDS1Z9YuLli7sE6qSZRSzCu/Ey477x4Fdj QP3cAUmmr012TfKcriEdm+g9mHWUmlg7JtngRmYjL1cUTSYex9RjBQ3SunSHspp7+E4E wldonWpG2OuDsSCeav1NlZtfVmFEFhy08Z4hfGpQaWzeM+44L6ctwrqxD9xO8gqKm+so 6V6vZCm/xJp3zKk0NA3mLUsmttQYrlzxj/jij2ZTWX3S19F3+5UTiIZmKL/G10/mmCf9 +tbGqlDosI1nvvNx+lBnhZ8gs2PXLCSjr6SxYH0yaguxBofyQfkqm60O9LUeQ2Zqa528 EyEg== X-Forwarded-Encrypted: i=1; AL+hErEozFoB5Yn2Iq8j99PtuAxjmDDcMqcEPgVIvvsACjFTD0qcwxN1Q5JnackYX77/liQQtq0q4ZD24bY6TuM=@vger.kernel.org X-Gm-Message-State: APuU4Z9APhRykp8C1AaTdygaqlGC4jianK9z8rNCLXjMh/D7S28LVKAU e8n8xRPiyUCD/w+rDBZBAUqMopIxw0lmOOpKYJYjOQoJetBQQTTBHGbAUWMqCgyyGshfkpnLl28 C6KwUISnuJdmBRPQPhynZoDPmprJlae9jjTLQIelA/VVMy4vBWXtgOwSSZ/bUk6ze0rU= X-Gm-Gg: AZFdTZc6ia7GQl10X3n6OldvBFkLNNiNOy5CeMnbYjyBDghvoPi03WtBWVJqQkg8OEh To0KOL++dgbZeD+hRXqC5lafS7kXksVRQSUedhAB3qEG9R3U1Ji0PKUXcY9NUN1kcFK1aGcZLd2 LQHA24SnxCwgppA4axQl3PJtQWOx98qbCn3WqjS2lYq8M0KQsbHGPSnd8Cc9CR342lsHLByYgJ6 rf3khYA7/8d79tW/Y0rVfDs9nw4WmMkzvFFtHX4WdW4B9gv3aZSGK4yRDWC+f1KrYVJXKmjImT8 QkGghS0+1PPnvaRiLzaJ8n/yM/36J85xCUwF8D5Ep4DXTEBE0VGDTOXr1h1aixX8uZ4xGN+VF5O ULqvO8YpWalshiWBVqTDu1S/kKy+N1QTYS3GXCvOL0be05522A6+C0E2KeVEJ9O8yqVxEbkd0Gs gPGnxggPiy X-Received: by 2002:a05:693c:8084:b0:36f:4981:da16 with SMTP id 5a478bee46e88-3857073f5ebmr7775366eec.25.1795329966130; Sat, 21 Nov 2026 22:46:06 -0800 (PST) X-Received: by 2002:a05:693c:8084:b0:36f:4981:da16 with SMTP id 5a478bee46e88-3857073f5ebmr7775348eec.25.1795329965510; Sat, 21 Nov 2026 22:46:05 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd40c5sm27598615eec.10.2026.11.21.22.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2026 22:46:05 -0800 (PST) From: Krishna Chaitanya Chundru Date: Sun, 22 Nov 2026 12:15:51 +0530 Subject: [PATCH v2 1/4] dt-bindings: connector: Add PCIe M.2 Mechanical Key B connector X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261122-pcie6_fix-v2-1-2e0fe615d90b@oss.qualcomm.com> References: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> In-Reply-To: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> To: Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Bjorn Andersson , Konrad Dybcio Cc: Abel Vesa , alchark@flipper.net, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795329955; l=15475; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=zcs4vGjIwXcjS+UfeXqojSMnLw/E4xL2h8k0QNt0xzg=; b=b64UBy6CYP+LsGSWtzSBImMsk2RKvPgyZK1jQmjgVVBF3+HF5Lj6V/rdo+zKSJGwP19HENvXg zY/rNaeLBqNCKWk4KH1v5EtIOPmpPIf60uOQay5rbOvUhlOnt+/m5v/ X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Proofpoint-GUID: CcoA5Gh8V-2-cwLba0l98j2LdBBiJoYe X-Proofpoint-ORIG-GUID: CcoA5Gh8V-2-cwLba0l98j2LdBBiJoYe X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX6jIad5Zbmf+B UrMwaWUbBsBNuHi49UB0vv+QayuHUOLyFyoni5HU7fxgfNyMvyrkHqONIMHq4eN6wTLnvQRkeBr typjbI/FfJ0k/cSHOv76bl2n0VYDm7qlGzNLc5KQqwJPSdZuadaNt9Y7HNva9Wldut3AL8dBLxg MpcHlPK+D74dY+1VaNgydI0D3y1e7RhmeYBBDsC/3qzKL93UsDT0f8PUVagT7GPqPw6vY+sy0g/ dkGcjGdgjfQKihHxs7Yg0Tsfl9jOAFq+1uTE5InL/7xDpAyM9t20mObjdpnro5ox53ZiiMmGp4Z 3SoGz/AT5dJXyD4O6w80D5W2Shh3A5OZGIWGijpJGiBpG+0zQVgaYqZiprlbb3Fuy++xz6Mg5Vs EMUjWTi4SH44ut8LWkSpfG58cCNnyu58j2DErfootZaTFeyjTtN6RkTryCTiEd+lk9ccHurgGdz P8MQSJnKr4sQMOR1hVA== X-Authority-Analysis: v=2.4 cv=MM71C8Zl c=1 sm=1 tr=0 ts=6b028faf cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=MlodEPlAgwUD-2UE0MMA:9 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX2+WUIhZ1hyQh hf9U3slWXjfQbzqilS80DXUnGnOOxuk8Ha3ItYbzgfCE0x7giNMXpKlwIO4uaMS37/YGvqhHv02 4e2VXTBXow/9vAigj6DcO7Gk6f3sCZw= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-22_01,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 bulkscore=0 impostorscore=0 suspectscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611220026 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 --- .../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-connecto= r.yaml b/Documentation/devicetree/bindings/connector/pcie-m2-b-connector.ya= ml 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 + +description: + A PCIe M.2 B connector node represents a physical PCIe M.2 Mechanical Ke= y 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. + + full-card-power-off-gpios: + description: GPIO output to FULL_CARD_POWER_OFF# signal. This signal is + used by the host system to turn off the entire Adapter. Refer, PCI + Express M.2 Specification r4.0, sec 3.2.13.1 for more details. + maxItems: 1 + + reset-gpios: + description: GPIO output to RESET# signal. This signal is used by the + host system to place the WWAN Adapter into a power-on reset conditio= n. + Refer, PCI Express M.2 Specification r4.0, sec 3.2.13.2 for more + details. + maxItems: 1 + + w-disable1-gpios: + description: GPIO output to W_DISABLE1# signal. This signal is used by + the host system to disable the WWAN radio on the Adapter. Refer, PCI + Express M.2 Specification r4.0, sec 3.1.12.3 for more details. + maxItems: 1 + + dpr-gpios: + description: GPIO output to the Dynamic Power Reduction (DPR) signal. + This signal is provided by a host system proximity sensor to the + Adapter to trigger a reduction in the radio transmit output power to + meet regulatory SAR requirements. Refer, PCI Express M.2 Specificati= on + r4.0, sec 3.2.13.4 for more details. + maxItems: 1 + + alert-gpios: + description: GPIO input to the SMBus ALERT# signal (pin 44, shared with + GPIO_2). SSD Adapters assert this signal to indicate to the host that + the SMBus device requires attention. It is not present on WWAN + Adapters. Refer, PCI Express M.2 Specification r4.2, sec 3.2.14.2.1 + for more details. + maxItems: 1 + + i2c-parent: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the host I2C controller connected to the SMBus + pins SMB_CLK and SMB_DATA (pins 40 and 42, shared with GPIO_0 and + GPIO_1). The SMBus is only present on SSD Adapters. Refer, PCI Expre= ss + M.2 Specification r4.2, sec 3.2.14.2 for more details. + + devslp-gpios: + description: GPIO output to the DEVSLP signal (pin 38). The host asser= ts + this signal to tell a SATA SSD to enter the Device Sleep power state. + It is only present on SATA SSD Adapters. Refer, PCI Express M.2 + Specification r4.2, sec 3.2.10.1 for more details. + maxItems: 1 + + pln-gpios: + description: GPIO output to the Power Loss Notification (PLN#) signal + (pin 8, shared with W_DISABLE1#). The host asserts this signal to + notify a PCIe SSD that a power loss event is about to occur. WWAN + boards use w-disable1-gpios for this pin instead. Refer, PCI Express + M.2 Specification r4.2, sec 3.2.18.1 for more details. + maxItems: 1 + + config-gpios: + description: | + GPIO inputs sensing the four CONFIG_0..3 pins (pins 21, 69, 75 and 1 + respectively, listed in that order in this property). The Adapter + grounds or leaves unconnected (NC) each of these pins to tell the ho= st + the Adapter type, the host interface in use and, for WWAN Adapters, = the + active GPIO_0..11 Port Configuration. Boards that only ever use one + Adapter type should use config-state instead. If both properties are + present, config-gpios takes precedence. Refer, PCI Express M.2 + Specification r4.2, sec 3.2.15 and Table 3-18 for more details. + + Table 3-18. Socket 2 Add-in Card Configuration: + + CONFIG_0 CONFIG_1 CONFIG_2 CONFIG_3 Adapter Type / Host Interface= Port Config + GND GND GND GND SSD - SATA = N/A + GND NC GND GND SSD - PCIe = N/A + GND GND NC GND WWAN - PCIe = 0 + GND NC NC GND WWAN - PCIe = 1 + GND GND GND NC WWAN - PCIe, USB3.1 Gen1 = 0 + GND NC GND NC WWAN - PCIe, USB3.1 Gen1 = 1 + GND GND NC NC WWAN - PCIe, USB3.1 Gen1 = 2 + GND NC NC NC WWAN - PCIe, USB3.1 Gen1 = 3 + NC GND GND GND WWAN - SSIC = 0 + NC NC GND GND WWAN - SSIC = 1 + NC GND NC GND WWAN - SSIC = 2 + NC NC NC GND WWAN - SSIC = 3 + NC GND GND NC WWAN - PCIe = 2 + NC NC GND NC WWAN - PCIe = 3 + NC GND NC NC WWAN - PCIe, USB3.1 Gen1 = vendor-defined + NC NC NC NC No Add-in Card present = N/A + minItems: 4 + maxItems: 4 + + config-state: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Fixed Adapter configuration for boards that do not sense the CONFIG_= 0..3 + pins, given as the state number (0-14) of Table 3-18 of the PCI Expr= ess + M.2 Specification r4.2. It selects the Adapter type, the host interf= ace + and, for WWAN Adapters, the Port Configuration used to interpret the + gpioN-gpios properties. Ignored if config-gpios is present. If neith= er + property is present, state 2 (WWAN - PCIe, Port Config_0) is assumed. + minimum: 0 + maximum: 14 + default: 2 + + clocks: + description: 32.768 KHz Suspend Clock (SUSCLK) input from the host sys= tem to + the M.2 card. Refer, PCI Express M.2 Specification r4.0, sec 3.1.12.= 1 for + more details. + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: OF graph bindings modeling the interfaces exposed on the + connector. Several interfaces share the same connector pins and are + selected by the CONFIG_0..3 pins, so each port describes one group of + pins and its endpoints describe the mutually exclusive interfaces th= at + can be present on that group. + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: | + Pins 41, 43, 47 and 49. The endpoint number selects the interfac= e: + 0 - PCIe lane 0 + 1 - SATA + patternProperties: + '^endpoint(@[0-9a-f]+)?$': + type: object + properties: + reg: + enum: [0, 1] + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: | + Pins 29, 31, 35 and 37. The endpoint number selects the interfac= e: + 0 - USB3.1 Gen1 + 1 - SSIC + 2 - PCIe lane 1 + patternProperties: + '^endpoint(@[0-9a-f]+)?$': + type: object + properties: + reg: + enum: [0, 1, 2] + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: USB 2.0 interface (pins 7 and 9) + + anyOf: + - required: + - port@0 + - required: + - port@1 + +patternProperties: + '^gpio([0-9]|1[01])-gpios$': + description: | + GPIO connected to the GPIO_ pin of the connector, where N is the + number in the property name. The function of these pins depends on t= he + Port Configuration selected by config-gpios or config-state (Table 3= -15 + of the PCI Express M.2 Specification r4.2, sec 3.2.13.3): + + GPIO Pin Config_0 Config_1 Config_2 Config_3 + 0 40 GNSS_SCL GNSS_SCL SIM_DETECT2 IPC_0 + 1 42 GNSS_SDA GNSS_SDA UIM_DATA2 IPC_1 + 2 44 GNSS_IRQ GNSS_IRQ UIM_CLK2 IPC_2 + 3 46 SYSCLK GNSS_0 UIM_RESET2 IPC_3 + 4 48 TX_BLANKING GNSS_1 UIM_PWR2 IPC_4 + 5 20 AUDIO_0 AUDIO_0 RFU AUDIO_0 + 6 22 AUDIO_1 AUDIO_1 RFU AUDIO_1 + 7 24 AUDIO_2 AUDIO_2 RFU IPC_5/AUDIO_2 + 8 28 AUDIO_3 AUDIO_3 PLA_S2# IPC_6/AUDIO_3 + 9 10 LED_1# LED_1# LED_1# DAS/DSS/IPC_7 + 10 26 W_DISABLE2# W_DISABLE2# W_DISABLE2# HSIC_STROBE + 11 23 WoWWAN# WoWWAN# WoWWAN# HSIC_DATA + + The IPC_0..7 functions of Port Config_3 are vendor defined, as are a= ll + functions in CONFIG state 14. + + On SSD Adapters (CONFIG states 0 and 1) the same pins are SMB_CLK + (GPIO_0), SMB_DATA (GPIO_1), ALERT# (GPIO_2), PLA_S2# (GPIO_8), and + LED_1# or, on SATA, DAS/DSS (GPIO_9). + + Only list the pins that are wired to a host GPIO. Pins used as a bus + signal in the selected Port Configuration (I2C, I2S/SLIMbus, HSIC) a= re + not GPIOs and are not described by these properties. + maxItems: 1 + +required: + - compatible + - vpcie3v3-supply + +additionalProperties: false + +examples: + # PCI M.2 Key B connector for WWAN with PCIe interface + - | + #include + + connector { + compatible =3D "pcie-m2-b-connector"; + vpcie3v3-supply =3D <&vreg_wwan>; + full-card-power-off-gpios =3D <&tlmm 121 GPIO_ACTIVE_LOW>; + w-disable1-gpios =3D <&tlmm 122 GPIO_ACTIVE_LOW>; + gpio10-gpios =3D <&tlmm 123 GPIO_ACTIVE_LOW>; + gpio11-gpios =3D <&tlmm 128 GPIO_ACTIVE_LOW>; + /* A zero phandle marks a CONFIG pin that is not wired to a host G= PIO */ + config-gpios =3D <&tlmm 124 GPIO_ACTIVE_HIGH>, + <&tlmm 125 GPIO_ACTIVE_HIGH>, + <0>, + <&tlmm 127 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&pcie6_port0_ep>; + }; + }; + + port@2 { + reg =3D <2>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&usb_hs_ep>; + }; + }; + }; + }; + + # PCI M.2 Key B connector used for a SATA SSD + - | + #include + + connector { + compatible =3D "pcie-m2-b-connector"; + vpcie3v3-supply =3D <&vreg_ssd>; + config-state =3D <0>; + i2c-parent =3D <&i2c0>; + alert-gpios =3D <&tlmm 130 GPIO_ACTIVE_LOW>; + devslp-gpios =3D <&tlmm 131 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&sata_port0_ep>; + }; + }; + }; + }; + + # PCI M.2 Key B connector used for a 2-lane PCIe SSD + - | + #include + + connector { + compatible =3D "pcie-m2-b-connector"; + vpcie3v3-supply =3D <&vreg_ssd>; + config-state =3D <1>; + pln-gpios =3D <&tlmm 132 GPIO_ACTIVE_LOW>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&pcie_port0_ep>; + }; + }; + + port@1 { + reg =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + endpoint@2 { + reg =3D <2>; + remote-endpoint =3D <&pcie_port1_ep>; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 93abbb315065..b9db9686dac5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22255,6 +22255,7 @@ PCIE M.2 POWER SEQUENCING M: Manivannan Sadhasivam L: linux-pci@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/connector/pcie-m2-b-connector.yaml F: Documentation/devicetree/bindings/connector/pcie-m2-e-connector.yaml F: Documentation/devicetree/bindings/connector/pcie-m2-m-connector.yaml F: drivers/power/sequencing/pwrseq-pcie-m2.c --=20 2.34.1 From nobody Tue Nov 24 11:51:55 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795329972; b=t9CxZP03eqRJhgKCujLXC2/Qtoyq+2a0CCmwYeE67/hqUrDQYGVY3+yMxxcICbCIJYiG WAjSCM3DV+LoReWItPtjJr5xu6kB2lj0MZd5FYMIkxl7LIWJZ9QsQzLqVjl2oRuEo8Bbf Ql7cSOqMTSnmYzG1SQfQSMrpGhC7vLZvQKv0nsRlUAQQxgh8riUdgXugSmzf86kIljpGg X7Mm+W82CVypOVoZzD4wi1xcwGmKO356ZpNb0oeE5ra7HeWVKbbEqOqb4a+U9kD98WNeY Qk2VPYiKeLIP3aTjJkxSAIqogQZjYCeEZRYKVARaVPiyqS+sx3C8oUyIe4GU1xhk7qA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795329972; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=/HxRaZR7J9ru1hz+OIfLQCN5TXx4eWOdESZp+/f6pr4=; b=zXqiiE1h9qKWZWXD4nop2t3E9nc1w9CkAcpO5yJLFR0YtB8Y/DxowKUkr2GVR+CNsl6d TgrYejZTcoi3Khb0Xbcz0fYQ1NM91hNkVvb9CjR3txD7VoVZuMqk/3hs+e7p9FVzoTAmR D9s+9am0dMdM2jpYUymdAj8gD2eFKTEkr/ILaxai1K77ZDO47ASNkFpV1XIGKdEWlsxxy TJaMMDviQQhBxh2w2mhd+y9Nw+4swYMc/slSxqsbxGLorI/veSlY0Xb6YUnjwq56qEdsU klOse8xHxgfwFxiJrGCHBwp3k950+CC1VSZp7VMreaVAeg1ldBbfYnl5Ow6TsG+XtUA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=cd4Iy+tU; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=iS5zRebj; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8306E606A682 for ; Sun, 22 Nov 2026 06:46:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8306E606A682 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=cd4Iy+tU; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=iS5zRebj Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AM3k7o12611355 for ; Sun, 22 Nov 2026 06:46:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /HxRaZR7J9ru1hz+OIfLQCN5TXx4eWOdESZp+/f6pr4=; b=cd4Iy+tU+oopdkBT NqLPb6HhNInALg/+FgEC+4luWYkoQFWvXQoTGQrGLYK6deAKCNU3w0+seictRbbX Du53AixtxwckMWyS+cfpZvvvoX4GIToFZa2ZE76g21SBS3gT8yYcWiwxVdCuGerq HoN/ruNE1aM3n+uIeCiuzGBlPYCF/BmITjICv+cQz3HmH/KY+3Cll4ry4UV47P5B +jzSmLkNJ4J4T08VsZaIARtccUS+VnVByrGshKaw28LrUfXtezh5QbbWcyrzBlvV fkwnos13o9t8guFnv4Y5QjC3bCAQCajs+LGVhP0udIXYuCFgUbwLowJNbEmN5LRR O0e7ag== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j328ru11v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 22 Nov 2026 06:46:11 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-3846d5f54c1so2974815eec.1 for ; Sat, 21 Nov 2026 22:46:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795329971; x=1795934771; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/HxRaZR7J9ru1hz+OIfLQCN5TXx4eWOdESZp+/f6pr4=; b=iS5zRebjQnEWcTaiTvzf033ZczVAen+bnqsKObIP4uEOLInDc1PWczQT5XBpEr+m+v 26byVcKgBvraDEK9WSFxbUB2fZx99T/iQBrtU57bZAgFPyfWGGXykIFAw0+mtmm0BX3K taP//dC5re3EMECbv3XCZUw/aO4YLb/NY9068T9nIWmTBbso0ulbM2kl0Ra/6B+Xu8z/ lsg58THY7d0TSAnFtKKnKwjUMHGlCvzU0tu8mov2rsuoolxW2CkNDe7ka0T/Nwos072N R3l3gKZQu8iWyBQshacl4MMissbXgmENvxi3/UeqL9Gi+Lf5XbYwEBc0z767yrAuFlQu vX9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795329971; x=1795934771; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/HxRaZR7J9ru1hz+OIfLQCN5TXx4eWOdESZp+/f6pr4=; b=hzte8/KIX7oJQnjalF3pMh6YzTdH26oC6pI6/R1AYVskx4DO1/erPfAuahEi7jh4Lb JeWdqERdAUBvnrvitrUnID22g+QacmyfffRx2R39X+ztLdcAya+ggZilielB2xrC8LRs A8tbedMRyppfH2WFlZv6GoZDrAL1P4efUpAtOdp9C3yuYHn8MHS+KnjdRLPmL7boYhDv oaI6VIhKlzWHAuJfCyxM0Td3fsjNH+EdaceB2swNIL8KHWLWwzC5SxzPqqJ370XrA42Z +tQkF6Y595tMDzabbKZxnyuPggOksCaCx+fabQDJuSsXpPy18ZCCk/y926TSA3KQXgyM lZ7A== X-Forwarded-Encrypted: i=1; AL+hErFi4TFTOgvj2vjpeMGMXoAyWssQ6MYNqQzNOAfneH9nD3uNoomCqfi3H/ZS15SDaa0pe/CjmdfOWgoDRqA=@vger.kernel.org X-Gm-Message-State: APuU4Z9AKLt+zsoJJOCOEm+WH5dgBWbFYA5zGtHRsimbS77x/WeQNBlO Uv3KrA+ir+sqP9zZusjchlXhA7Pb09yrOVAVGiynapivDnKZIcoRJQXsqs2KsCC8sDwM8Xiumf5 mX17uvZr4ww8U8b5m9/GyhvZCGpFBjEmQKScD6OjILc0+Gthlw5Edhb+iAI/J2f2gX/E= X-Gm-Gg: AZFdTZd7W+NWziiQyUWRFjEUOzOnleMQR+a2jh42oznHqWO3duQEYSxZ0z0XNsAZb+c j1EPPEgby/iONUiZJe4et1jZM+61UaSkFu+RcaNsoBCHDdUMsjeMzdow/TCWrec2VHU+skz7Zrd Wasm390bDYYQd1CXlxcnA0pw4Uzxdbfgj0ioAu4Gh8MfOBn543X7YJLVv1kLufKavZw1zrEt+hC rCKgAVIblRC6v3fRWtOImeos4vrE+AZjtOxxmuNFexh3OKEEdkSB73zOrE+o0hrVg8waSzRiYz8 Es77wcI4O4GvsBthZ76wOgj0FyUKbxl4zFpKq9IHgwpatJRRaSLLI6RqenbpECq0TvN7/s3VUiP dvlCJhduk4vNE9FCjLhPoAeGdkwEoymX/YLn9UJh57XW8WpzMhELjsP7CWOwC5KfxSmRYxSOdM5 dL8ymK4xSq X-Received: by 2002:a05:7301:85cb:b0:381:edba:caba with SMTP id 5a478bee46e88-3856fd5cceamr9129733eec.17.1795329971125; Sat, 21 Nov 2026 22:46:11 -0800 (PST) X-Received: by 2002:a05:7301:85cb:b0:381:edba:caba with SMTP id 5a478bee46e88-3856fd5cceamr9129689eec.17.1795329970317; Sat, 21 Nov 2026 22:46:10 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd40c5sm27598615eec.10.2026.11.21.22.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2026 22:46:10 -0800 (PST) From: Krishna Chaitanya Chundru Date: Sun, 22 Nov 2026 12:15:52 +0530 Subject: [PATCH v2 2/4] power: sequencing: pcie-m2: Add support for PCIe M.2 Key B connectors X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261122-pcie6_fix-v2-2-2e0fe615d90b@oss.qualcomm.com> References: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> In-Reply-To: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> To: Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Bjorn Andersson , Konrad Dybcio Cc: Abel Vesa , alchark@flipper.net, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795329955; l=4982; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=GERyXG9kT+rvE2z4g19ttsfCKGC8K9XHB/CHtubzrro=; b=EZVbgnjTMa6pM0iZgLGu7RxcsQSbI+fK1plh3pLB9BzCaNYo7+zdadU8O+5so2n6TyGSe3gIS kE/RMafil4/BqLXxL5kBq+LUwAiN/df4ANGXn1ZNKOOq/rs9O91bBdt X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX/bhOzd8k7wE9 TjHUnbls1XRoKa91FtrQJ9ewj/eyMfsVnnv51QxJ8uFpYI9fMV9LeQEUO9Aa+DRD1XOqcAH1bSH x65oemYYHjuPDyGq6pC7Vn7r9Fm39WY= X-Proofpoint-GUID: P9eK7RrNTHI_oWOrA99XZJescq2VP-V1 X-Proofpoint-ORIG-GUID: P9eK7RrNTHI_oWOrA99XZJescq2VP-V1 X-Authority-Analysis: v=2.4 cv=c9w+0h9l c=1 sm=1 tr=0 ts=6b028fb3 cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=1YR4yFrG3nAziPXzX-cA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX7HhQKoT2Jd9l RW/LNe/vwEOtYZLR+W+uPzYFmhDiBQzjsR77qXybwVSr55jWVX/s4urMTWCYrnNZH8EPf7GcAgs eEPUKiyd2LrmBp0rRrrklKCE2FjHfJ8ceYWvAcAPfs6+uqkh62oET0tkIIrCCpcObZ+6vemB2Fu UWYhe2vOSgVjA929sXaNxPe84yYFT1p8+atHdnQf72VIa3JjQmcgezZV63IjnxltA2AG+9B1Hgf lFZtsANbdJNGpMtB1D8KOne2FLNQpzR+Bf7oR7Mxx4HmvhxUSI8yXwot9dFLZRA3g9+/oWlOwz5 BtNjjB4jPuidLfcx84yM4O0rV2MO4/O41VRl2hJ/Lk/z3QVRrxSEQDu3G8d4YLphUKisKccBoR+ alB9X8CZnyc/5lTLGWGVyY15dXnalhPX1TEWP26HpJwAqpDiFcJdmQQ/Hm+n5wpI/L+vrj2YS3m J5jJWyl8mqW/4gB1L6A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-22_01,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1015 suspectscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611220026 Add support for handling the power sequence of the PCIe M.2 Key B connectors. These connectors are used to attach WWAN Adapters to the host machine over interfaces such as PCIe, USB3.1 Gen1, SSIC, or USB 2.0. Currently, this driver only supports driving the 3.3V/VBAT power supply along with the FULL_CARD_POWER_OFF#, RESET#, and W_DISABLE1# GPIOs as a single "pcie" target, since Key B Adapters expose only a discoverable PCIe/USB interface and no non-discoverable bus (unlike Key E's UART-attached Bluetooth device), so no serdev creation is needed. The other signals described in the binding are not supported yet. Signed-off-by: Krishna Chaitanya Chundru --- drivers/power/sequencing/pwrseq-pcie-m2.c | 70 +++++++++++++++++++++++++++= ++++ 1 file changed, 70 insertions(+) diff --git a/drivers/power/sequencing/pwrseq-pcie-m2.c b/drivers/power/sequ= encing/pwrseq-pcie-m2.c index 56c5d51293c1..8af4a059b596 100644 --- a/drivers/power/sequencing/pwrseq-pcie-m2.c +++ b/drivers/power/sequencing/pwrseq-pcie-m2.c @@ -39,6 +39,8 @@ struct pwrseq_pcie_m2_ctx { struct notifier_block nb; struct gpio_desc *w_disable1_gpio; struct gpio_desc *w_disable2_gpio; + struct gpio_desc *full_card_power_off_gpio; + struct gpio_desc *reset_gpio; struct device *dev; struct list_head pci_devices; struct mutex list_lock; @@ -135,6 +137,45 @@ static const struct pwrseq_unit_data pwrseq_pcie_m2_e_= pcie_unit_data =3D { .disable =3D pwrseq_pci_m2_e_pcie_disable, }; =20 +static int pwrseq_pci_m2_b_pcie_enable(struct pwrseq_device *pwrseq) +{ + struct pwrseq_pcie_m2_ctx *ctx =3D pwrseq_device_get_drvdata(pwrseq); + int ret; + + ret =3D gpiod_set_value_cansleep(ctx->full_card_power_off_gpio, 0); + if (ret) + return ret; + + ret =3D gpiod_set_value_cansleep(ctx->reset_gpio, 0); + if (ret) + return ret; + + return gpiod_set_value_cansleep(ctx->w_disable1_gpio, 0); +} + +static int pwrseq_pci_m2_b_pcie_disable(struct pwrseq_device *pwrseq) +{ + struct pwrseq_pcie_m2_ctx *ctx =3D pwrseq_device_get_drvdata(pwrseq); + int ret; + + ret =3D gpiod_set_value_cansleep(ctx->w_disable1_gpio, 1); + if (ret) + return ret; + + ret =3D gpiod_set_value_cansleep(ctx->reset_gpio, 1); + if (ret) + return ret; + + return gpiod_set_value_cansleep(ctx->full_card_power_off_gpio, 1); +} + +static const struct pwrseq_unit_data pwrseq_pcie_m2_b_pcie_unit_data =3D { + .name =3D "pcie-enable", + .deps =3D pwrseq_pcie_m2_unit_deps, + .enable =3D pwrseq_pci_m2_b_pcie_enable, + .disable =3D pwrseq_pci_m2_b_pcie_disable, +}; + static const struct pwrseq_unit_data pwrseq_pcie_m2_m_pcie_unit_data =3D { .name =3D "pcie-enable", .deps =3D pwrseq_pcie_m2_unit_deps, @@ -166,6 +207,11 @@ static const struct pwrseq_target_data pwrseq_pcie_m2_= e_pcie_target_data =3D { .is_controllable =3D pwrseq_pci_m2_e_pcie_is_controllable, }; =20 +static const struct pwrseq_target_data pwrseq_pcie_m2_b_pcie_target_data = =3D { + .name =3D "pcie", + .unit =3D &pwrseq_pcie_m2_b_pcie_unit_data, +}; + static const struct pwrseq_target_data pwrseq_pcie_m2_m_pcie_target_data = =3D { .name =3D "pcie", .unit =3D &pwrseq_pcie_m2_m_pcie_unit_data, @@ -177,6 +223,11 @@ static const struct pwrseq_target_data *pwrseq_pcie_m2= _e_targets[] =3D { NULL }; =20 +static const struct pwrseq_target_data *pwrseq_pcie_m2_b_targets[] =3D { + &pwrseq_pcie_m2_b_pcie_target_data, + NULL +}; + static const struct pwrseq_target_data *pwrseq_pcie_m2_m_targets[] =3D { &pwrseq_pcie_m2_m_pcie_target_data, NULL @@ -186,6 +237,10 @@ static const struct pwrseq_pcie_m2_pdata pwrseq_pcie_m= 2_e_of_data =3D { .targets =3D pwrseq_pcie_m2_e_targets, }; =20 +static const struct pwrseq_pcie_m2_pdata pwrseq_pcie_m2_b_of_data =3D { + .targets =3D pwrseq_pcie_m2_b_targets, +}; + static const struct pwrseq_pcie_m2_pdata pwrseq_pcie_m2_m_of_data =3D { .targets =3D pwrseq_pcie_m2_m_targets, }; @@ -577,6 +632,17 @@ static int pwrseq_pcie_m2_probe(struct platform_device= *pdev) goto err_free_regulators; } =20 + ctx->full_card_power_off_gpio =3D devm_gpiod_get_optional(dev, "full-card= -power-off", + GPIOD_OUT_HIGH); + if (IS_ERR(ctx->full_card_power_off_gpio)) + return dev_err_probe(dev, PTR_ERR(ctx->full_card_power_off_gpio), + "Failed to get the FULL_CARD_POWER_OFF# GPIO\n"); + + ctx->reset_gpio =3D devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); + if (IS_ERR(ctx->reset_gpio)) + return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), + "Failed to get the RESET# GPIO\n"); + config.parent =3D dev; config.owner =3D THIS_MODULE; config.drvdata =3D ctx; @@ -641,6 +707,10 @@ static const struct of_device_id pwrseq_pcie_m2_of_mat= ch[] =3D { .compatible =3D "pcie-m2-e-connector", .data =3D &pwrseq_pcie_m2_e_of_data, }, + { + .compatible =3D "pcie-m2-b-connector", + .data =3D &pwrseq_pcie_m2_b_of_data, + }, { } }; MODULE_DEVICE_TABLE(of, pwrseq_pcie_m2_of_match); --=20 2.34.1 From nobody Tue Nov 24 11:51:55 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795329979; b=wl1lKXBPOwurqwAd5RI4tgNExmO8zGBVTJC/i39SqWyO+nrWEh7IUieeLJTUU4dgy8Nt s0VFH7kS8oCUHaHpreppIFOqlHFGVnci6FpbI1/l9q6lPGdSf3E6gVO818U/RV6QAjFhD xH7YzE5nwHLmcrvvGdDDQTUZwK5voqxCDtV47qkL3vNLs7fv9hG0F/VWUQ6XGxQM1ziwU e2gL05MsrHWK5MWcucF1jchTOfpMbcxQbl7rd+K5Cpe152M+wJ6W2O/u/YizskAwZsqjA HNSmcIJHBy9+CscX2gVdMc829KfQ6bI5DgVawjwo7SAQYvW+Hrv7m2ALArs8IJG4HnA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795329979; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=BU1KJppj+EFVZ6bNvS7g2mTTKyI1Mqe3Kr0MuJ8/KAA=; b=l/y6sZkP1Gwc5eNHazEUCBQ72aiCStig4oaNXoaSkKRLb3RnITgYNkbk5uyznTkzREqn KiMMoBUoZPcb7qw+HGlJ8eTGdXShbuKChxTfPZyknHSxcpH16UTroVHeb/ISakeUg8tHV SXR3IL9dNGbq+IiIzUjk09QeMunyc8aYaoUztjnbhn1AHn4SqSND55j7ss5WNx/SN7CHI ORNuB8nTfoH3vNB5A7EJUh+0+ZDTsNqKBVYSd0dz871NcZF5K57BzWEBwxQC8boFbfSKY oOG2ILn36JB3F/6+Hd7BCQc2Q/mz8PikE4i4yquObi+hJTT8bE9wMw/tezYrsVXmERA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=SWACsV7q; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=IWc0QVXn; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41608606A339 for ; Sun, 22 Nov 2026 06:46:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 41608606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=SWACsV7q; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=IWc0QVXn Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AM3lEiX3064758 for ; Sun, 22 Nov 2026 06:46:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= BU1KJppj+EFVZ6bNvS7g2mTTKyI1Mqe3Kr0MuJ8/KAA=; b=SWACsV7qf/n5Xnww P84lp5jrNi/GbgHq/1teqN7WHATXVlbKhtPCSLMXE1pR20jhPjWcZUFODyy2EapY G6ArThlczpNOx/EYHpLvgBMwc0ecjhPWOSzUxEh+5HJdPnb83XNM7zmkEFrJD0UM CXBjweTwbt03aDPt9BvDdc1fJczUCBitHK76Qp3wuHOBBxOISuV48m9bUQr7d0R6 MJL7sVT6lSztHVsRWd0Y+KFFMy3gRq7/x/T9DmG8aHgCSpHvSvL/C/igf6HCxw7y Mfx0XplrOyBF9Z43l39BplMHmg5uzN8524o7rvGeHXDuS56CYR0d96BVVOJk0Zrb tlUyMA== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j32a6jxp9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 22 Nov 2026 06:46:17 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-386a0f79047so1240712eec.1 for ; Sat, 21 Nov 2026 22:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795329976; x=1795934776; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=BU1KJppj+EFVZ6bNvS7g2mTTKyI1Mqe3Kr0MuJ8/KAA=; b=IWc0QVXn6ZnwawKBU9LwEXwElrX8kIpw7baWynhovZgmWbX6xr99n0qMrrZUXoxSyb Tu3V55siyAnjvanaVJrltvVCaYcWLrUq4qEnavTtKTVG8sIUtQZ+ThRmseNPAMfa8pYq WlF/1y+WaPXgzxPUhczouyjX9CKAEMgjNoCRbFqougdyuDL5BtkvbtwvSjAv+tQDiL2S baV96G5AeY7LHXXX/l81Z4ScqkOQ60/teISXKrRdPRqOgLsC9OJNMaGX50lRPJbkGJbf xsgSMHV9RyEbVkca8Yg3bfnAeJ6QGvISiLNi6w8NwuHG8cpaOftE7PdNfIbwDrz/E1tC 2mgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795329976; x=1795934776; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BU1KJppj+EFVZ6bNvS7g2mTTKyI1Mqe3Kr0MuJ8/KAA=; b=FdLMY5HdZl/cetKJemfEcB95koF1DTWCj35BSKZnBvmyzeBcOiIVS90wvVt3IvH/Rx OzkCHdDHcFLeqg1ft0Awoj6t0gqz7MUQQvneIUtnc64Z4whaVDiAFslH61gfjabu+7iS 9vtambWXXLI0s5I8cD85if8WyWlRVESlZxdtcclXNFF6bcNpVpVUysEiufJFR6vekWMK SgqmiIx4rOQuI6P3YmFckich91pMEeNxbumMnggVEHzS8EpC+aFVr0OomvVSsPVYZaFj PCS6XKKTD/utsadFtsMOCL1CN3IsHYKwZfEWBQDO4q2Jg3nFQNiAU5pRfQB7j624UmXH o2Pg== X-Forwarded-Encrypted: i=1; AL+hErGfBXXPfjJVQTC7/eeyN6Nd2yVBNzkJAuU9q5oNWuMwxghz0Xt4yEi2CaYSPsbypiiFMb/Gyb4kSkkYvAE=@vger.kernel.org X-Gm-Message-State: APuU4Z8PhTgEoWRHt4XHUxrL7AZzhBt4k2geJ2FZinDpXks5gXwR972A zOjy2OxaHl8WSp3iDSNfQlRNAYgOEJAWhmC0kzdg9nz+3Be+UbXF7h551sROKUhrutu+aLUhWMn UCeta6yVNjjTDp2XmqpcLm4f2APqfH9rK050ONNh04tElGp1WzHpCMcQnRfcnnRei8UI= X-Gm-Gg: AZFdTZfwWrnd+9IUX9D7wl7+hryScm6G63FgcycdBDXAG8JTyzxn4TFT6lcFY4QCGIX ZddTlXM3R0pljPyS3J+am3cUKd9WDmHZQo8gYVMcONHk+tEjpn072kVURJANJmD84BMLqVOtdR9 Mb+J+Hk30H3bXnZsy/fTW8u/KmoHfvtcqaIPKrQJNJTcWUkTBGeLVScPEAkE9TU88feDsRioch8 wqYId5W7fXS+J4o8iOr1unGmX2lyfTcceC49lJAG5VD1sP9c4wTYuT2jubwLajXCcwc84IXzKKL HgpHDT1GobAdgQhdQS8n23FmM5qToHrn/injPQAhIhQB8/CP7VRUe81xJYwbXtfuU5phL8rlwVd 68wrEZauuuXH9G+x/E4I39jfm46gUZpxio0pL+qYLmOG8kVX7Zp6Cmz5gvPZdRsZvGrK5rRerZd HWImkWxDDM X-Received: by 2002:a05:7300:1c95:b0:385:8851:fa4a with SMTP id 5a478bee46e88-385885211c2mr8048105eec.6.1795329975828; Sat, 21 Nov 2026 22:46:15 -0800 (PST) X-Received: by 2002:a05:7300:1c95:b0:385:8851:fa4a with SMTP id 5a478bee46e88-385885211c2mr8048074eec.6.1795329975209; Sat, 21 Nov 2026 22:46:15 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd40c5sm27598615eec.10.2026.11.21.22.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2026 22:46:14 -0800 (PST) From: Krishna Chaitanya Chundru Date: Sun, 22 Nov 2026 12:15:53 +0530 Subject: [PATCH v2 3/4] arm64: dts: qcom: glymur-crd: Describe the PCIe M.2 Key B connector X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261122-pcie6_fix-v2-3-2e0fe615d90b@oss.qualcomm.com> References: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> In-Reply-To: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> To: Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Bjorn Andersson , Konrad Dybcio Cc: Abel Vesa , alchark@flipper.net, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795329955; l=1688; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=oq8zhKS9moEyY2HIBaNOt8Yw7IX2tNA31iC0e7kAduY=; b=6wZ35/tRdGHjnolfMROOPzdthaL4bnmCxAVAPH5KXtRoRWFfo7Mcz6FgTU/YtTRrjGO3/yi/+ /Nn1XxCSGp/CEfyu93Nc7FqD98YaAAdFCfW4DADs29yQk03MJmnWHC6 X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Proofpoint-GUID: DnRlFHesc8vH7aKC4Loz5Z2Oo81Mpa9c X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX+5EV0X0BQJJl dy2YV3fvDv2J83KVAfkKx8QS1mBF7PJVXoxvdUzDn+0ZWOnDzQakaOtxo4eCMZt9inTNC92qaZY 4dIioOPtRLqINVu2vBnpdS7KRh9FPd0= X-Proofpoint-ORIG-GUID: DnRlFHesc8vH7aKC4Loz5Z2Oo81Mpa9c X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX2XhaQl/EJ4kS 34qeN7S8l4mBGYhlfKAkZ/eum4HJtNTYKI5yHIpmRQr/AB7rd/61Z3/GXVNayuguvM51tOPILIP yX8CZ0adqlpl0X+ytXR38t5O63eOtdyCtw6LPcWKIiqF7+E/vcjRxnntTOrHCWZBpTddb/B4AcU MpJFKKhHEEQ0aHkCNNgaHEmYzF5MmAENxFDk3686fSaUTDCln4PNYTiolyTzvl5MgWAiTKJUFak UzyIvLI9u6YK4m06EMX8SsR9p2x2UO2/rg2XQhQ7m0dMaKX/KL4RmeB5W50/S3TNb6TvJGJ2ssp oJalvOTUfaQr6Ashn7FQMaYhn3Sru/V51FSLw8rYJXA5pjcwsbj/O5MErosR7Beefv3DpNe+hm6 iuW/WV0L/dCAkstwAGEQfgDGcfT4dNM7nEzx0zYWvaM69/VTPdT/az3LlXLfrVjXCdgGW7iDgJq Ijb38ehB2yGMqdnrYZA== X-Authority-Analysis: v=2.4 cv=UbHE26SN c=1 sm=1 tr=0 ts=6b028fb9 cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=_k9ig2nQFDp-gxZIyLcA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-22_01,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 phishscore=0 malwarescore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611220026 The Glymur CRD has a WWAN M.2 slot connected to PCIe6, whose vreg_wwan supply is described on the PCIe6 Root Port. Describe the slot as a PCIe M.2 Mechanical Key B connector that owns the supply, so that the slot power is controlled through the pwrseq-pcie-m2 driver and the PCI pwrctrl framework, like the other M.2 connectors on this platform. Signed-off-by: Krishna Chaitanya Chundru --- arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts= /qcom/glymur-crd.dtsi index 3a9cd5f3ec2b..a66ba8c0ac8c 100644 --- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi +++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi @@ -230,6 +230,27 @@ vreg_wwan: regulator-wwan { pinctrl-names =3D "default"; }; =20 + wwan-connector { + compatible =3D "pcie-m2-b-connector"; + vpcie3v3-supply =3D <&vreg_wwan>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + wwan_m2_pcie_ep: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&pcie6_port0_ep>; + }; + }; + }; + }; + sound { compatible =3D "qcom,glymur-sndcard"; model =3D "GLYMUR-CRD"; @@ -654,10 +675,14 @@ &pcie6_phy { }; =20 &pcie6_port0 { - vpcie3v3-supply =3D <&vreg_wwan>; - reset-gpios =3D <&tlmm 149 GPIO_ACTIVE_LOW>; wake-gpios =3D <&tlmm 151 GPIO_ACTIVE_LOW>; + + port { + pcie6_port0_ep: endpoint { + remote-endpoint =3D <&wwan_m2_pcie_ep>; + }; + }; }; =20 &pmh0110_f_e1_gpios { --=20 2.34.1 From nobody Tue Nov 24 11:51:55 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795329982; b=w4LYwUpnSeNUWF9c8v49GmEmDeaXEaH0SVNX7JcMPV9+0WYKxuT9vHWcUUDhpN8ViFut dHSe+fxCvDBmwyv6p57ENm6rk4VwvwMIwi9ML4fF3oaalsGh++pkxNny1AHqunzXGdc/V AxCCQX75WoB6fWwl66j218qVWDsfjq9tMVsvhyS3CJ4EwwJV4KHE//4pf3zpe32oWsm1z 4ArslHIkogjnfDu06QtD72du5oYu46vng0NBVGcJxtw6UxXZTBR197fuvpxPCmqQPLwrd AsRny8UYXlqYlphvNTJeRtlwMFQRypqWe8ZPNCIDKBTENin5dfH/p4/Oi5CVn9AlkoA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795329982; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=T2hwzlMo9LCIhFKqcy+WnAbtHTyj+Ik0hC26DXdFkAA=; b=1krG+QlDd6KnhRl3tkIUrR97/ilaDeW35c/4zgnOKGy7LTy6enqoFBd0W/Cjap6Si+Qu I3VGNb/D1wjSK4AsXEmAvqE9kB6WRM4hYP+QkwPcf6g8KeXtKgj3Y/Uhqa55lL0mfloK9 aQyfjnQ4LX65aA6O0D7krs3foKn3TNVv6AohmmOZQ73gAk7/UnVkOkNVZhIiPKYoSy23R 7SiU1KbndrBxqCcaGhzFFPCznsS/Z4oBYTofOi7ZPfnAglUOnJMf5rdPN90xfWn3SM5+h yOBk6kbQm76WBgBxofyVFbsf50q0Dc88DBY1qq7XwoQlETTk+tl6CR6aRsyMca8oAqA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=LsfZZWu+; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ZDpnzDZl; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC107606A683 for ; Sun, 22 Nov 2026 06:46:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CC107606A683 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=LsfZZWu+; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ZDpnzDZl Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AM3kI2w2612006 for ; Sun, 22 Nov 2026 06:46:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= T2hwzlMo9LCIhFKqcy+WnAbtHTyj+Ik0hC26DXdFkAA=; b=LsfZZWu+YdfgIrH2 Iegjwju0OOrYTkgJLKR8LbyqlXyDGSDloEDfcc5Tu91EUl3+CAakESqAG2TdEpCa 9+lYy8oHhAlDTUs+Qdz9TH4Nx9OBNWaZ4A2g7m5TPGfaQIVf1OePi7ShwRkWenFN d1UtK8PvUkRSDD7Sm7IkMVQigJ3KT9w80lF9ThAYSVcu53nuhZTUtSo2NLkuqFxp AkpEUnz7V/FSpzjq5HMmQxmolRNA5QUqO0K8qEQxdvmjxFytJFL02IzH4syCIuDh GoZbyaHBwIMp/SOFyZsfmwMfuBjtfFMug2Ydn9vFyxg7sZ8hWVhparVv533OdLl5 ARP/EQ== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j328ru12q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 22 Nov 2026 06:46:21 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-370230d93efso7494253eec.1 for ; Sat, 21 Nov 2026 22:46:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795329981; x=1795934781; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=T2hwzlMo9LCIhFKqcy+WnAbtHTyj+Ik0hC26DXdFkAA=; b=ZDpnzDZlfgqBHFCXd3XpLKU4gzFU04Yosf9iT3RNuGqXVslu0wmaopC1PgDpHJ+6jr 7kZTqii5dk8yguoWnNWZ9iGXBbOtqhnds++IyqUll+PCqLd+MTEhWNENFsm+hltqk3BR TrkGls5iBwhhiviQNUmtxMAQzKuKJVHWjmzIZ9o9UsGJ1zkIjdg3jjd1tEW3FqoEfW6w f8Xr41Jut4iUXwHfvxsDFDN5Gv2oPXuUoyK/tUL0U+rNVUkk3FIYSfb9L2yrDungcxnx 4gDN7ZskyoRVPsXIbX3k2Fr4a1zU0QLjG3IOTolGIvhwRRNk+6YAmawm6N7vHqi1Zsp4 c95w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795329981; x=1795934781; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=T2hwzlMo9LCIhFKqcy+WnAbtHTyj+Ik0hC26DXdFkAA=; b=zAfQyuHtxXd3FJj50Uhf0LbE/0n86gP5UIDuoNEYvMfJN9cm/IJywS0kZp+LaPW86e YIKoyhiazXKU0sfdWwpMfyc6nqZL7W3THNA8rwQRW7/UbHuMFr0xUrhmBwhlXzGqulrO rVLBzaroQvp1NCQ06RkghPFaGQ2hQuvA1XTFG5+6Zfj6B8PlxKAXvmYdvvcwo+71h7Gb QapZTNTBfIrEgbHJ0OdqLtbR5yUTKcXUpslVcea7RRg+wQgtZDqkDDquqETF4RCZKWcF YOGRBbdrBnr+g6Vp3kbTD6yl57zz5k/ZXmOSfMb7j7h0QHzbMGrMW2X8dDllMHmN1Mpt Vssw== X-Forwarded-Encrypted: i=1; AL+hErEDYn3XltOyYAsHUaMsSNlHVcTYm2NAbKaTW26o7ms2MQ/6CzEyVk9dveMm3MtX//0NQicGa3rt7B5S1Ho=@vger.kernel.org X-Gm-Message-State: APuU4Z/D8nPapMQaOhmyzb4MBF7fhZUU2oDZwlbeFTWboy6v1A03elHc 8Zb4sN95F2nLyjKvjmhak7rNpQC67wdCIYjLYSsmcUrm3KEyhtYzJu+AXJ3e6HACQvSJ84Fzr9i tLmTzbBxuZ+lE/Uerzrlc61usNyPvMhND1YAcGrASkY3c5eiPswwo2k1QqEaPwMG7KM0= X-Gm-Gg: AZFdTZc+H/iV2WlqL9q96jZJK8cK3Qnyc2U6UiMpNfj5i5gxa39YRS3jSmQS80ZZvbR TVS+COEVmw6F9Fvw+Dnxt46TeDtm8Gf9Ni0Z0tLBuTMmNCYiI/fxrp7y8VXb4QL2MlPh0sWcZLD goSTfkRtLkZa1hw5eNDpFcCEg8a2BvbfzoPeyRZZUD/CUM+CsckT/IkyqLKhqE/9e1rv7oyAg85 fSkMrV+mAmQk8btmmD1q2Jtubk3g7HM8ZDu1QVh20GJeKLLFyMhJyru+tYPwU3uAqM0nW4HNi9X wZJwULHWbzbChNmSTd1hvb5shxBr5ICE3+QvGRZRpadcykLvsEAro2OVmHb+iTIF1AqKwe6gPQQ 6VPorCwcF44m+FWrS4vr+9LMfpPGuyji2t2zsqW5JfKtkpsP42a/8EufTkhDkyNaDD0J0UC383h Yhbq4iQ4Qd X-Received: by 2002:a05:7300:8288:b0:384:f214:a408 with SMTP id 5a478bee46e88-3857044f2ffmr8905148eec.38.1795329980523; Sat, 21 Nov 2026 22:46:20 -0800 (PST) X-Received: by 2002:a05:7300:8288:b0:384:f214:a408 with SMTP id 5a478bee46e88-3857044f2ffmr8905121eec.38.1795329980032; Sat, 21 Nov 2026 22:46:20 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd40c5sm27598615eec.10.2026.11.21.22.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2026 22:46:19 -0800 (PST) From: Krishna Chaitanya Chundru Date: Sun, 22 Nov 2026 12:15:54 +0530 Subject: [PATCH v2 4/4] arm64: dts: qcom: nord-rrd: Describe the PCIe M.2 Key B connector X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261122-pcie6_fix-v2-4-2e0fe615d90b@oss.qualcomm.com> References: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> In-Reply-To: <20261122-pcie6_fix-v2-0-2e0fe615d90b@oss.qualcomm.com> To: Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Bjorn Andersson , Konrad Dybcio Cc: Abel Vesa , alchark@flipper.net, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795329956; l=2116; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=xSU3owBM0txchkN3zsSOuMouYuY186IHzX74a8nKw8s=; b=LYm+5o9UAUI8UWrXpqljfX6SY+ut9AqqZn291W8ecTKj0wkOtXq/jb1fUcTPjNXSwpQLR2gaB sbkBZnRlP2uDiMw/ZSgBxEKMOyxnuN4sk8q70Lr1TGFdxZA0ZaxVyJK X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX5QinFd1tbftE cUy4bXsMEGa3A63fjkUYfmHppevrx2qdaY+iQCznJnNHdovT7YvTTjwBnISUV1KnUlIxhGJ44/3 9d/ILrchT78l3GW3kaAnFpOxGEVfzUc= X-Proofpoint-GUID: Ssxl4TUst9v2A7QRZRzI290K4F7NLZ0w X-Proofpoint-ORIG-GUID: Ssxl4TUst9v2A7QRZRzI290K4F7NLZ0w X-Authority-Analysis: v=2.4 cv=c9w+0h9l c=1 sm=1 tr=0 ts=6b028fbd cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=bvY3E1ByFFb03tV5gjAA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIyMDAyNiBTYWx0ZWRfX/e1bJO0cv2qy Np4tMdh7qoosZWkM4tiHcRqb0Q52oi/f4ejaGSCFczExajqu9i3EFMecSMdFHKqyCOYnBm4cRVZ pKJ6CpqhzdhL+B243UjRkz5M6htxIgkuNE3fF9tXvBjL99jbv3elntfj4zYoIsI0SKbZawlMGzq Q4XwmWex+uxHkUj50H6vkYdvLN7e1l70pW85ddZ5yPMGHr374rISG7B9abAf01VpSEodyV5t8v7 qPp/gAkm0mgxGCddpYUcIoAwKfaLRWWnq1IlaXFnTE+VpyLBRZjbRpTRV0j6q1P1MAnmIN0LYJq hiah9QzU6hXUGC5XtuKfbg+JoIKZAJ4U5LsQT8J9BXHWgwsDYz7kRf98AwHDG2oYoEt1532HoB+ ALwaXpIUDaQuDFyV1tlTEOXcxaHRoX3+iFkNU1pdrh9N6bQ6yGVgOAyV1ydDf00k87AXKWpfFxU Z4jyJrnwj6Wgy7TNAOQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-22_01,2026-11-19_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1015 suspectscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611220026 The Nord RRD has an M.2 WWAN slot connected to PCIe3, but neither the slot supply nor its power control is described. Describe the slot as a PCIe M.2 Mechanical Key B connector, so that the slot power is controlled through the pwrseq-pcie-m2 driver and the PCI pwrctrl framework. The slot is powered by the vreg_wwan fixed regulator, which is enabled by the MODEM_SW_PWR_EN GPIO. The MOD_FULL_CARD_POWER_ON_OFF GPIO drives FULL_CARD_POWER_OFF#, which the Adapter treats as asserted when the signal is low, so describe it as active low. Signed-off-by: Krishna Chaitanya Chundru --- arch/arm64/boot/dts/qcom/nord-rrd.dts | 40 +++++++++++++++++++++++++++++++= ++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/nord-rrd.dts b/arch/arm64/boot/dts/qc= om/nord-rrd.dts index 827d3ba3a238..59a0210e7fbd 100644 --- a/arch/arm64/boot/dts/qcom/nord-rrd.dts +++ b/arch/arm64/boot/dts/qcom/nord-rrd.dts @@ -100,6 +100,40 @@ vreg_wcn_core_vh_1p95: regulator-wcn-core-vh-1p95 { enable-active-high; }; =20 + vreg_wwan: regulator-wwan { + compatible =3D "regulator-fixed"; + + regulator-name =3D "vreg_wwan"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&tlmm 54 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + wwan-connector { + compatible =3D "pcie-m2-b-connector"; + vpcie3v3-supply =3D <&vreg_wwan>; + + full-card-power-off-gpios =3D <&tlmm 53 GPIO_ACTIVE_LOW>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + wwan_m2_pcie_ep: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&pcie3_port0_ep>; + }; + }; + }; + }; + wcn7850-pmu { compatible =3D "qcom,wcn7850-pmu"; =20 @@ -537,6 +571,12 @@ &pcie3 { &pcie3_port0 { reset-gpios =3D <&tlmm 11 GPIO_ACTIVE_LOW>; wake-gpios =3D <&tlmm 9 GPIO_ACTIVE_LOW>; + + port { + pcie3_port0_ep: endpoint { + remote-endpoint =3D <&wwan_m2_pcie_ep>; + }; + }; }; =20 &qupv3_0 { --=20 2.34.1