From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 5986A4AA577 for ; Thu, 10 Sep 2026 13:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789047088; cv=none; b=rug3KbpEvUeH0NxYJrtUYTqcAF+OhXZDEJIOTmzFfhNvtKBfFEJCy7EEWKMzEMQZN7LjQiXDJg0gFd79uS35KuNGnTb3pULNXF5adfdl3OdEuxNFxuiL0gKDSbqnydHjn3z6o2MQa5Wg/saI2gkWUR14CUb5p96QBF1duaylz3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789047088; c=relaxed/simple; bh=+ni5l5rxgVAQMIalE7RPp6XqvHp1u/AdEHjbOFe3K2o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MIUTDfvZyf39oeg4NqYDu3qROlrGj0JC9mEY5WOzV+L/4Qh89I4M4hKkVwNMmdh+X2T8bKTLJqd35FoH+wA2iuR5ay+aPG3kIutZlzqsRkfgXBSc2Sih8mxWlCA+HsYojMpo+2Gn5kTOGA4r1GC9xXcc1hxLcPsafIxlPFy9H2w= 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=ccpzRGpB; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=MBu6pO3d; arc=none smtp.client-ip=205.220.168.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="ccpzRGpB"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="MBu6pO3d" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68AC7ktv383785 for ; Thu, 10 Sep 2026 13:31:26 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= XGh1G7KMrcSlNmouC9TvdO6WXDttZlUID4VW+C8Q2Yo=; b=ccpzRGpBIjCrkHNx pdJlhwTuHVNlXN858ujdGqdv3CdHTpMbORVPvmcz3B76pbGJ3aNoWCPoP/I082F7 hbABrZ5BOgUn3sJF0YB7wQuWklXcailUF6S9dIwOvvHTVIzdCwxe3c+rZirMyCzu v2CnXR4lJ8mvzXH0rDKrJdo05D3txHNKCYehN/MmTu0gMxYUU5qlVcEk1Utzggx7 /hIzzxuUYys2SccBb9DW/iSQtOh5T9TM35TISMRTyoX1lCBFMNsxLn8qRSd6zpAx 6Yp4UmNefHFz2dI7G0C/rvmd1ROmcqUn6EHxTFI9NnB2TXoyFFi3hLvTEuwbUFRg LFIDXQ== Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gkcydv0as-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 10 Sep 2026 13:31:26 +0000 (GMT) Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-6b1281dd14aso6939130eaf.2 for ; Thu, 10 Sep 2026 06:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789047086; x=1789651886; 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=XGh1G7KMrcSlNmouC9TvdO6WXDttZlUID4VW+C8Q2Yo=; b=MBu6pO3du+k6+nHf5GhZUy9gO0pLrwUtlbcC/Qk2TBCKfKXWVkPKwnzDdmU/KQanjg 54HeckjNJSM1KIFkgN3RdbnksLNIMqZ5jl4Mx55Pda30sbyFfxM2fYJOH4eGyehX+Z97 cA00vS2Fbxk4sbkB5yGF09f2ViMzodq0azM1+RE3i8HctyAGKrmmYYcIaQ3lI2/ReMhx 4dK/WTpZloUHu4WWZt2E61USTcdI1/NwoEbd0TA/MYzwqhePx47A3pNw7IwscSO4IlEr aFU6tmh9fgMJkcBr6VxG3LZDhyVoAFQ2WYkw0u/amCcGY+LbRXzumUiGsL7+dttW8LQm +/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789047086; x=1789651886; 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=XGh1G7KMrcSlNmouC9TvdO6WXDttZlUID4VW+C8Q2Yo=; b=n+TJji3hJG7bL8CkUcOCFiwMyU25ayOyppB+NCVtoUhrzkvxn+ojjidZq6QRp4HqXD /qC9joTDZN4oCKAoZ8TAS3VMe9j+E8eanetKDRQGvjMdLzDHvUwMhgBt9DBmt4ivaIE+ /FjjaWmHoC7v3Np8Uw62obqPlnkIeuBmxagViXJj/e9U47GYhTduMxgbj+sH/xZ+KZko C8p75LHyEuW2nRyoWEBYSKROzbdqhhGrREK9bI/aBC5CYcbLJTxf6sTlFoMZEKsK6sDA AYchyphAoecwyqtu3zS2UctBuH8kQ5o7t+OyzrtgUooCV9lWXcvISi70TUkKNfbO+RDS +ykA== X-Forwarded-Encrypted: i=1; AKwUvBzO2NPnPyytEFylWXBd9czbWLAx1vG/EK8g9bms3PogPM/qovV4HKRaT8lcOFKEwJDmrzQJSIik//oG2Yk=@vger.kernel.org X-Gm-Message-State: AFuF++nvvv9qj0JFEWwb08SU9o7P9WW7cNtAqNMsCGxhUtatfi4kB0F+ J8IPNaUFuWXXfjZtegfgLkI8Aeeh++1dTdT0QvbxgdnsRZuiqjMf++4eov/64K497j93RXlGrXW +nWI8GE2j0/7tVV7a3qEdfUpgW4VfyCnAcgOPn7xj8LYAN9cIJc7/V8p3/EcjrWLlJuU= X-Gm-Gg: AYBFou28ngUTc+cWt76bSW7nZ7X6XDl36PMee63HOOxY2fctzUY3DquQytSkDtvlH6u JH71N1wYXre0Y7Yaks1IDhRQkOrP5/VpofGLegTD5LkW3Hz28XWBxR4AJWqiR8eYw1luT5ICCgS 5/E4PTFu61SeSsgClWf33Jq5/e1SQTGs5pS+xgcPlLfUUCrvcV2A/REOsr4a1q6tBA/pib+jVOD zs5i1lBPSxF9ROW/pJpIqoFIZ36myOCAwtmn232i9xSNlC5ZRJ9AtKTw930Y99FkzGZkogLdTLO EDVHAtPM0ag2CJxwOdwc/8qf8g/1WwnSWDiTS1/WFhNB0qDaGiTChMJRiDgA/13LOQHjzZwttfD +yEgjTDPpc8i+dB4p31aEERTv4OWY0k7Cpdg= X-Received: by 2002:a05:6820:988:b0:6be:354a:1cec with SMTP id 006d021491bc7-6be354a2239mr5418098eaf.27.1789047085530; Thu, 10 Sep 2026 06:31:25 -0700 (PDT) X-Received: by 2002:a05:6820:988:b0:6be:354a:1cec with SMTP id 006d021491bc7-6be354a2239mr5418057eaf.27.1789047084974; Thu, 10 Sep 2026 06:31:24 -0700 (PDT) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-338f7bad290sm21568614eec.14.2026.09.10.06.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 06:31:24 -0700 (PDT) From: Krishna Chaitanya Chundru Date: Thu, 10 Sep 2026 18:59:21 +0530 Subject: [PATCH 32/34] arm64: dts: qcom: msm8996: Move PCIe phy and GPIOs to root port node 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: 7bit Message-Id: <20260910-root_port-v1-32-90a252ddbbfa@oss.qualcomm.com> References: <20260910-root_port-v1-0-90a252ddbbfa@oss.qualcomm.com> In-Reply-To: <20260910-root_port-v1-0-90a252ddbbfa@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Krishna Chaitanya Chundru , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@oss.qualcomm.com, mani@kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789046944; l=6068; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=+ni5l5rxgVAQMIalE7RPp6XqvHp1u/AdEHjbOFe3K2o=; b=o8llbVNuo2EUI5d2SSnQNkQENXvXWry1TINIbRNsrWw+6DR/tcZENa1ozG4gO3BpS62xAEn+M 5qdUYo4vhSaB3UbeDhN+T6yh0rtBwW+5es0aY7GgTLegOG8MEUPbglf X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Authority-Analysis: v=2.4 cv=IfsSymqa c=1 sm=1 tr=0 ts=6aa2b12e cx=c_pps a=V4L7fE8DliODT/OoDI2WOg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=hNZP5i6h11z2s_4BSHIA:9 a=QEXdDO2ut3YA:10 a=WZGXeFmKUf7gPmL3hEjn:22 X-Proofpoint-GUID: exQ8H2XbyeaEviolHAoCafq2JfGJx1JV X-Proofpoint-ORIG-GUID: exQ8H2XbyeaEviolHAoCafq2JfGJx1JV X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEwMDE2MiBTYWx0ZWRfX4+Q2BzB43ePH cEBxj4hdpeX7b/wsg6RXpHsd4EgQCqCIBo3rVXgyLZROGWZtMpKnuX012unLXXd1Tv4dyVdwb8u nQ3uZIgA+WxAdsSkKS15O0433ovfPDw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEwMDE2MiBTYWx0ZWRfXyONxLyGeR0ku BS6uYNNvanBbtDuKjC4teTSFfJSQRCq9ykOiU/yWhSzWN2Q7lhkT1lIkuvftMJsCFv6GKXoYRYV B/+Z0aMUBFpxa3/Gfu1Mw8l5KFZBmtapwq/p7QpahDo0WbCtx68WxbHYXYow8bDH/AFlGEQj1Ba Jpua1xyt+fli95Q2HdbhTyNvD707aiDpbzCl4//cAycdL2s8fXnWAxSqOsbUwWFsB7XgT8doUlG z1qarxENm100uEdhQl9UEFGz6Wfr/wFiZOr3M8a/DmJF4Le5tCTsPS5UjMxHXMqdkkL8nqm82d4 patpGPs1FYiBbZjGUP+/Lo3hc+jyTlw/CZcc+klfAUzkbjqSqOeJaQe5CPNkMw7ITsZAFFVEzSt 5qUv3qGZCGDJuFwKMAwp/VfzBJNhsNhqDoaV7CS+7zGHx0MtK9aIIqUmnAZTXUO+tp1+TKGjdtN TSogZSz9OUw8in8zXWw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-10_04,2026-09-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 spamscore=0 adultscore=0 suspectscore=0 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609100162 The PCIe phy reference and the perst/wake GPIO properties are per root port and belong in the root port node (pcie@0), not in the RC controller node. Move phys and phy-names from the controller to pcie0_port0, pcie1_port0, and pcie2_port0, adding labels to these nodes to allow board-level overrides. Move perst-gpios/wake-gpios from the controller overrides to the respective port nodes in the board files, renaming perst-gpios to reset-gpios to match the binding used in the root port context. Signed-off-by: Krishna Chaitanya Chundru --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 15 ++++++++++++--- .../arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi | 5 ++++- .../boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 7 +++++-- arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi | 4 +++- arch/arm64/boot/dts/qcom/msm8996.dtsi | 21 +++++++++------------ 5 files changed, 33 insertions(+), 19 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 0c076852b494..ad435a13ba24 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -458,23 +458,32 @@ hdmi_ddc_suspend: hdmi-ddc-suspend-state { &pcie0 { status = "okay"; - perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; vddpe-3v3-supply = <&wlan_en>; vdda-supply = <&vreg_l28a_0p925>; }; +&pcie0_port0 { + reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; +}; + &pcie1 { status = "okay"; - perst-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>; vdda-supply = <&vreg_l28a_0p925>; }; +&pcie1_port0 { + reset-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>; +}; + &pcie2 { status = "okay"; - perst-gpios = <&tlmm 114 GPIO_ACTIVE_LOW>; vdda-supply = <&vreg_l28a_0p925>; }; +&pcie2_port0 { + reset-gpios = <&tlmm 114 GPIO_ACTIVE_LOW>; +}; + &pcie_phy { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi index a4dcc88bb01f..7a3f8afae22d 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi @@ -210,12 +210,15 @@ &mss_pil { }; &pcie0 { - perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; vddpe-3v3-supply = <&wlan_en>; vdda-supply = <&vreg_l28a_0p925>; status = "okay"; }; +&pcie0_port0 { + reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; +}; + &pcie_phy { vdda-phy-supply = <&vreg_l28a_0p925>; vdda-pll-supply = <&vreg_l12a_1p8>; diff --git a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi index 5b42c266557a..20b5eeef46e4 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi @@ -191,13 +191,16 @@ &mmcc { }; &pcie0 { - perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; vddpe-3v3-supply = <&wlan_en>; vdda-supply = <&pm8994_l28>; status = "okay"; }; +&pcie0_port0 { + reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; +}; + &pcie_phy { vdda-phy-supply = <&pm8994_l28>; vdda-pll-supply = <&pm8994_l12>; diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi index 2abcc733dad8..3c70a9be45d2 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi @@ -278,8 +278,10 @@ &pcie0 { /* Supplied by vdd_3v3, but choose wlan_en to drive enable pin high */ vddpe-3v3-supply = <&wlan_en>; vdda-supply = <&vreg_l28a_0p925>; +}; - perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; +&pcie0_port0 { + reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; wake-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; }; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 818e5660df91..f3c004f02cfc 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -1924,9 +1924,6 @@ pcie0: pcie@600000 { <0x0c100000 0x100000>; reg-names = "parf", "dbi", "elbi","config"; - phys = <&pciephy_0>; - phy-names = "pciephy"; - #address-cells = <3>; #size-cells = <2>; ranges = <0x01000000 0x0 0x00000000 0x0c200000 0x0 0x100000>, @@ -1975,11 +1972,13 @@ pcie0: pcie@600000 { "bus_master", "bus_slave"; - pcie@0 { + pcie0_port0: pcie@0 { device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>; + phys = <&pciephy_0>; + #address-cells = <3>; #size-cells = <2>; ranges; @@ -2001,9 +2000,6 @@ pcie1: pcie@608000 { reg-names = "parf", "dbi", "elbi","config"; - phys = <&pciephy_1>; - phy-names = "pciephy"; - #address-cells = <3>; #size-cells = <2>; ranges = <0x01000000 0x0 0x00000000 0x0d200000 0x0 0x100000>, @@ -2052,11 +2048,13 @@ pcie1: pcie@608000 { "bus_master", "bus_slave"; - pcie@0 { + pcie1_port0: pcie@0 { device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>; + phys = <&pciephy_1>; + #address-cells = <3>; #size-cells = <2>; ranges; @@ -2076,9 +2074,6 @@ pcie2: pcie@610000 { reg-names = "parf", "dbi", "elbi","config"; - phys = <&pciephy_2>; - phy-names = "pciephy"; - #address-cells = <3>; #size-cells = <2>; ranges = <0x01000000 0x0 0x00000000 0x0e200000 0x0 0x100000>, @@ -2126,11 +2121,13 @@ pcie2: pcie@610000 { "bus_master", "bus_slave"; - pcie@0 { + pcie2_port0: pcie@0 { device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>; + phys = <&pciephy_2>; + #address-cells = <3>; #size-cells = <2>; ranges; -- 2.34.1