From: Alex Elder <elder@riscstar.com>
To: andersson@kernel.org, konradybcio@kernel.org
Cc: robh@kernel.org, krzk+dt@kernel.org, abelvesa@kernel.org,
conor+dt@kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Daniel Thompson <daniel@riscstar.com>
Subject: [PATCH] arm64: dts: qcom: qcs6490-rb3gen2: add endpoint buses
Date: Fri, 2 Oct 2026 13:18:48 -0500 [thread overview]
Message-ID: <20261002181849.790275-1-elder@riscstar.com> (raw)
The TC9564 SoC incorporates a PCIe switch, which is connected via
the second PCI segment (0001) on the RB3gen2 platform. The third
downstream port of that switch (pcie@3,0) has an embedded PCIe
endpoint that implements two PCIe functions. The SoC implements
other peripherals, and they will be accessed via PCI endpoint bus.
Record the PCI VID/PID compatible string for the embedded PCI functions
attached to the third downstream switch port. Define the pci-ep-bus
sub-nodes for each, along with the #address-cells, #size-cells, and
ranges properties for both the endpoint and its pci-ep-bus node.
For PCI endpoint bus, a PCI function's ranges property will be updated
dynamically to incorporate the address ranges assigned to each BAR
during PCI enumeration.
Co-developed-by: Daniel Thompson <daniel@riscstar.com>
Signed-off-by: Daniel Thompson <daniel@riscstar.com>
Signed-off-by: Alex Elder <elder@riscstar.com>
---
===== PLEASE NOTE =====
A version of this patch was previously included in this series:
https://lore.kernel.org/lkml/20260918152659.413268-1-elder@riscstar.com/
The first two patches in that series are now in char-misc-next
This patch must go through the Qualcomm tree. However for this to
function correctly, it depends on this code getting merged:
https://lore.kernel.org/lkml/20260924222444.1351466-1-elder@riscstar.com/
I sent this message today to clear up any ambiguity about whether/when
this patch should be merged (probably not yet).
-Alex
=======================
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 24 ++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index 909039816a216..0e3bbdaf4661f 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -955,11 +955,35 @@ pcie@3,0 {
bus-range = <0x5 0xff>;
dev@0,0 {
+ compatible = "pci1179,0220";
reg = <0x50000 0x0 0x0 0x0 0x0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ ranges; /* This will be updated dynamically */
+
+ pci-ep-bus@4 {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ /* Map 0x0-0x1fffff to BAR 4 */
+ ranges = <0x0 0x4 0x0 0x0 0x200000>;
+ };
};
dev@0,1 {
+ compatible = "pci1179,0220";
reg = <0x50100 0x0 0x0 0x0 0x0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ ranges; /* This will be updated dynamically */
+
+ pci-ep-bus@4 {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ /* Map 0x0-0x1fffff to BAR 4 */
+ ranges = <0x0 0x4 0x0 0x0 0x200000>;
+ };
};
};
};
base-commit: 705529dab1fa872d8b53b09c95e1b03a95573376
--
2.53.0
reply other threads:[~2026-10-02 18:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261002181849.790275-1-elder@riscstar.com \
--to=elder@riscstar.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel@riscstar.com \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®