From nobody Fri Dec 19 07:20:10 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39B3835C185 for ; Tue, 16 Dec 2025 13:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892974; cv=none; b=gJVLNtclUUbz6d5NORWQMosAbHWKy5vGjPQna4KHGyWtNGiu1in/8xPDoOlqFrM10Oc/WcPC59NhfCaFlYho6sbZFqbF9oFJXL80e7gPsc5SoMtyuMRiZ6uHEfU54gB4i4B6m/LSAS3+d4wx7v7M0cvIU1wMu4iN+WiLAb0w0i0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892974; c=relaxed/simple; bh=c4FFwDxKmm7Viy1qgmx4f9Kwxu7zWPYcOsV/EyMcA3s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fO5TQEF4o8BdwGZeL0Cm2uEZZMKswChZjePKKd7870j1bF1ETaVPEbDA4gLLonw+1Y+Pf9EKW7yO11+zibqNIokEWBDjdXfmAmjkX1iGrQWT2M1IeAhvN6epZeBBNu0zRvGQniLfy6mr0ZRq++JL/i9yuKP5vV1vP8tBJbHyfYc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=jquW4tpA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=GqkkG1dg; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="jquW4tpA"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="GqkkG1dg" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BGDV1kp3745761 for ; Tue, 16 Dec 2025 13:49:32 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= 5XIeEwdaKSmwUKhVRwes28nlFxirSYBP0M2N+FYQE2U=; b=jquW4tpATXWbpnAV FA/3VFH1M3BQt9IjEde18yF36vUbR5rQpjFlEWD6T23VHtrYS0UvjpdMjl7DoNif NGU+THvYrE0wTZ6MWUfwMBaf6ZTpqg+61xLsJr6Tmv/cRnhQnfZut6jfjM788tSk z0kmaWJH3aQYSSo+BTgNebzqzg2tnQFeE/CgXegs0t8gEKlCwXz7dDERyv3a+wzK pQmJPnofoIgznEqpKa1xBolYkUy+gEhFMurjmqsZm6Zuz0s04q+f9h8QXbIDy0UE WLAl4xd3h2rBRHaqL3gydILEaUXj5KgomUSBw1LJyvoKmd6xHCE4h3Qx2V6E696S eWmSBw== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4b33xj17k9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Dec 2025 13:49:31 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2a13cd9a784so9915085ad.2 for ; Tue, 16 Dec 2025 05:49:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1765892971; x=1766497771; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5XIeEwdaKSmwUKhVRwes28nlFxirSYBP0M2N+FYQE2U=; b=GqkkG1dgVqYuTUOu2Rb0JrYg3EejUTepADvMg4S3RppZzHd6qMvNJlaVW+ckrNu2uv EbOk/fxGskB91qUWsXsFhkPlNS9nq2kjb9fP8E3Z+Wz3KXuRcPSAGEPh667GHtzjAfyP GWZoQncPbKi0nKMGbWQ3ahTXbEX0F0O8PE9Tq28BLgR3wseO2VRNPP4xEcOMWA4XjBnw Tng86IBZ6+qzDewUXvl69K5DEIkPgbFpR/IDqmSeqI3T1QBWAdOejZUjt4WfrAACGJPI /3DPyJsXUmSHDZdX0eZ7A3MVV9Ey6UolG6fEH6PJMNozRIjPc8NmnefBgCJbCb+N7A9u ViQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765892971; x=1766497771; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=5XIeEwdaKSmwUKhVRwes28nlFxirSYBP0M2N+FYQE2U=; b=Ttg+LzolFw1KpSN67xCeWilHJHkr0mgDYQDpeIvwyZr91bdYwh17yWw0V24HNWkixf eSZIBmG+kNYF+62ViqTBMhCaTE4lbcVTIoruZliyIy6JPbrlyxsUO/SiL3gFhgZ8h8Qf Q0MsRPH02uqYiCJtBychidMTilWNBWiAOgN5WlIoiHHaVR42N67QRINZ/7UiCzK1oVYq pzi6MXawRd3NqN5vdeIM9w8RerxoiucDi6ztPJowB760pg+BpmSIMjIDKGSecHbpLoc+ tHdbMQSbngmkWl181+7VHarU2fP4EipDETepUnjq4lgGvvEQ18N2h1T7dHcEKyZjWzhJ g5dg== X-Forwarded-Encrypted: i=1; AJvYcCWJXQ39bVdu4+4PstPqk6cBaKBUdzcxQkK+NSZOV+xfjdQRWtkSAvDAnp2OuwI4EN2I+7XF7W3qRG7cC0o=@vger.kernel.org X-Gm-Message-State: AOJu0YxIT0Da/q1Rpqcpp9pSNcwWePGjG8XJR7qYY8MuatuMpNYMJCfD m1dkTWeq39azWLgot/h4BZyOSTAhvYVBbrypwla/br+dUwaynYyslXX9pokxClJxU7eVlGDx2/c OEo7ZOdfwYWR/vI/QawXXyTqqJtyqCgWXaXztL5ltW5ZZtN+VwwIg6UkffOKy6KtuHDg= X-Gm-Gg: AY/fxX7lbkkF/D+EsgJrE8mEWWyXLew12PT01yemWSBwzInrGgW6B4E3w1OiByzTDlX hVKmVITb2XYn6qf4K2v1XnAbKYXNG0ELQgza/eCjGU8L+ZdBQ9XqEmnQQm12q16ci/6k0Pb1lAT YRUcLOsHL2SMp4x0hMM/d4/DRdDFQZ5+9EMostJ8AD78zlNjPTRUzXgJnRv+LmE5lhU2cQdPLjF tGm8MC+kwR5LWkArLd61rASeMxm+uYeP2V6boNfZHL++K5R9a24y+Uuo9f7wGyBmwawE+Vlwe/F wj6FrJc0T/IL0s64u90iuTI9s9mZ/cOwACoDselt+v5iuishPCLyKGYB0hbJuCz1E9LGn0iQN0j AOMdfjDgwssul8syg02HSbT8SB8cgnDKWjfeI7x8AYI8= X-Received: by 2002:a17:902:f612:b0:2a0:ccee:b350 with SMTP id d9443c01a7336-2a0cceebc96mr83993235ad.58.1765892970685; Tue, 16 Dec 2025 05:49:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0I2m3AUrFktxRdsW8oXiDacvT1fHbe8STll0ZhCKYN0uLRfQfttLiE9BN6uw7AZAwioU3BQ== X-Received: by 2002:a17:902:f612:b0:2a0:ccee:b350 with SMTP id d9443c01a7336-2a0cceebc96mr83992975ad.58.1765892970151; Tue, 16 Dec 2025 05:49:30 -0800 (PST) Received: from hu-msarkar-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a0993ab61dsm99697165ad.46.2025.12.16.05.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Dec 2025 05:49:29 -0800 (PST) From: Mrinmay Sarkar Date: Tue, 16 Dec 2025 19:19:17 +0530 Subject: [PATCH v2 1/2] dt-bindings: PCI: qcom,pcie-ep-sa8255p: Document firmware managed PCIe endpoint Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251216-firmware_managed_ep-v2-1-7a731327307f@oss.qualcomm.com> References: <20251216-firmware_managed_ep-v2-0-7a731327307f@oss.qualcomm.com> In-Reply-To: <20251216-firmware_managed_ep-v2-0-7a731327307f@oss.qualcomm.com> To: Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam , Krishna Chaitanya Chundru , quic_vbadigan@quicinc.com, quic_shazhuss@quicinc.com, konrad.dybcio@oss.qualcomm.com, Mrinmay sarkar , Rama Krishna , Ayiluri Naga Rashmi , Nitesh Gupta X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765892958; l=3868; i=mrinmay.sarkar@oss.qualcomm.com; s=20250423; h=from:subject:message-id; bh=c4FFwDxKmm7Viy1qgmx4f9Kwxu7zWPYcOsV/EyMcA3s=; b=jCHtdBtffAxpeTUhtrWvDTVASY338tchL1PwotlFzI5KJkvrM05jcUl+Btfg6lzMXRlR0a7qa JhAu1Q5RW+dBq25aJ7wdqTJ//6GbggGDnq1gd3qdDYpAfye0c6FrNha X-Developer-Key: i=mrinmay.sarkar@oss.qualcomm.com; a=ed25519; pk=5D8s0BEkJAotPyAnJ6/qmJBFhCjti/zUi2OMYoferv4= X-Proofpoint-ORIG-GUID: 3O-KjbyhTXZPdGnkvQziUX6pqVDPHM5k X-Proofpoint-GUID: 3O-KjbyhTXZPdGnkvQziUX6pqVDPHM5k X-Authority-Analysis: v=2.4 cv=KtNAGGWN c=1 sm=1 tr=0 ts=6941636b cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=avnAaoOVoNrTWVjlPhgA:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjE2MDExOCBTYWx0ZWRfXz1+0m/vgFKYU EZnZtq0R87J+rHVpbNtgljjIsw3PC/HSxObVw7U/Simd1mtaOvApdx0M0VkLPpcCl98TWogLOQ6 yT6gXROcVfI7K6LF9WPQC26aIKVpa8tQXmj5KWNBn9ry0IHKYrtsWZaAJFw/SSCgm7lo118lnIi wl9xCR1muersK7f9WsVG+YCzU8cgjTNx06728/RFqwVNEwdsqqXHUI6llRtw0XMdzplZd1Ql/jd HX7Y2HzhbBC7nOZ0CionS1R+UXMAT4fdYNF+iIb5mpBXWUfE9Ki4OeMKCdIeof2z3M0NQTqtVZF VB61xpk+7syWoxaa6mVCDOZ8vKa7zkH2K32/iD/JnW0qVCQlnZBzLbT3kD1AN2ABG3wAUwotJOM 3obwNoqPk66brAE1g7Jn0vnFLyzxAA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-16_02,2025-12-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 bulkscore=0 adultscore=0 spamscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512160118 Document the required configuration to enable the PCIe Endpoint controller on SA8255p which is managed by firmware using power-domain based handling. Signed-off-by: Mrinmay Sarkar --- .../bindings/pci/qcom,pcie-ep-sa8255p.yaml | 110 +++++++++++++++++= ++++ 1 file changed, 110 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-ep-sa8255p.yam= l b/Documentation/devicetree/bindings/pci/qcom,pcie-ep-sa8255p.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a88c39b7f8b8bc0cfdf4e62678b= 8ad89f2043031 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-ep-sa8255p.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/qcom,pcie-ep-sa8255p.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm firmware managed PCIe Endpoint Controller + +description: + Qualcomm SA8255p SoC PCIe endpoint controller is based on the Synopsys + DesignWare PCIe IP which is managed by firmware. + +maintainers: + - Manivannan Sadhasivam + +properties: + compatible: + const: qcom,pcie-ep-sa8255p + + reg: + items: + - description: Qualcomm-specific PARF configuration registers + - description: DesignWare PCIe registers + - description: External local bus interface registers + - description: Address Translation Unit (ATU) registers + - description: Memory region used to map remote RC address space + - description: BAR memory region + - description: DMA register space + + reg-names: + items: + - const: parf + - const: dbi + - const: elbi + - const: atu + - const: addr_space + - const: mmio + - const: dma + + interrupts: + items: + - description: PCIe Global interrupt + - description: PCIe Doorbell interrupt + - description: DMA interrupt + + interrupt-names: + items: + - const: global + - const: doorbell + - const: dma + + iommus: + maxItems: 1 + + reset-gpios: + description: GPIO used as PERST# input signal + maxItems: 1 + + wake-gpios: + description: GPIO used as WAKE# output signal + maxItems: 1 + + power-domains: + maxItems: 1 + + dma-coherent: true + + num-lanes: + default: 2 + +required: + - compatible + - reg + - reg-names + - interrupts + - interrupt-names + - reset-gpios + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + pcie1_ep: pcie-ep@1c10000 { + compatible =3D "qcom,sa8255p-pcie-ep"; + reg =3D <0x0 0x01c10000 0x0 0x3000>, + <0x0 0x60000000 0x0 0xf20>, + <0x0 0x60000f20 0x0 0xa8>, + <0x0 0x60001000 0x0 0x4000>, + <0x0 0x60200000 0x0 0x100000>, + <0x0 0x01c13000 0x0 0x1000>, + <0x0 0x60005000 0x0 0x2000>; + reg-names =3D "parf", "dbi", "elbi", "atu", "addr_space", "mmi= o", "dma"; + interrupts =3D , + , + ; + interrupt-names =3D "global", "doorbell", "dma"; + reset-gpios =3D <&tlmm 4 GPIO_ACTIVE_LOW>; + wake-gpios =3D <&tlmm 5 GPIO_ACTIVE_LOW>; + dma-coherent; + iommus =3D <&pcie_smmu 0x80 0x7f>; + power-domains =3D <&scmi6_pd 1>; + num-lanes =3D <4>; + }; + }; --=20 2.25.1