From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk2-f13.google.com (mail-qk2-f13.google.com [74.125.230.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CE1250255B for ; Fri, 18 Sep 2026 15:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.230.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789745233; cv=none; b=gfBRawtSAvGcjIDSZJ/uWlaPeo2mhmu7Ft9gYzRGUMhz/IBB3qOR9PzfVOWxQndsrlK8YDUjJanP1BlHo17WdM8njAI1cWrns99DTrtVsm8NYO7jt8yHADyk5Er/DDhDEoDRqAjFhdcGnA9C8BfXh8OLhzWA03S7NVGjSaDq/No= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789745233; c=relaxed/simple; bh=Yrg8axLPLWORg699bra798c8gsnBqtweBph1kEWPw3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=USPiuxIPKeISqj9Gi2aI34Y+V1BF82K0Jbs4CgSDLPZgwhHfSHs9B39c4Pnu6ZLG2/4z2msUOqiKNQlL6GvYL7QWueyqP/gxRNnCGKRyLMx/y2QmTkEzzpbDUExZeyL9fGXqC6wKN6F4pDBxNpbnmRns2r4DaC+wxzWvu1153dk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20251104.gappssmtp.com header.i=@riscstar-com.20251104.gappssmtp.com header.b=RS+Df+lP; arc=none smtp.client-ip=74.125.230.205 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20251104.gappssmtp.com header.i=@riscstar-com.20251104.gappssmtp.com header.b="RS+Df+lP" Received: by mail-qk2-f13.google.com with SMTP id d75a77b69052e-52fb76ec395so6956441cf.2 for ; Fri, 18 Sep 2026 08:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20251104.gappssmtp.com; s=20251104; t=1789745228; x=1790350028; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=TOeSHivgGtBKP6OSBvHEzAeHzrnxsuhi0YKgz/54Wow=; b=RS+Df+lPU0Bch51mpyx2zIXy1mn308spz/kJd19Z3NzjbJs/ig8NhFZHaNN6C0p51c ky+XAYBIab87qUWlDoSudil7ChLeFbmpr/J5UZXXJMIrYW2HFOaXLDZK6vY89yIeZpvn lu8Yx/7YYsDzu9/ixJMhdG4dfea6njc8JQGY72MBWupNmxWQ1b2FaEOqnE07yR2EFRMa YwizgoVt6FpYq+/KcSvSmt9aBtE2JZA1yu5Zay/Nkt4wEfTRJhG9wq4cIxhopjdWHjtk YIptxyQcaNiqeZNKhzh2/4g7DrhbvnVaSHJjF0IJXMtHGNw5p7Tl/Q5y/hR2HpkLX8lX 3p5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789745228; x=1790350028; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=TOeSHivgGtBKP6OSBvHEzAeHzrnxsuhi0YKgz/54Wow=; b=vVz0lDqAs+tgJjFSMzOG8PWGcXgaW0PEXo/4cAzJTL6c+c/UVUqLPhdiHExJKvI4zP llUZTVTOqpCEQWLBLUQENpeGYvdnsDZKho7oOL8si95sw7BTuyd0w42xJGO95x16R4uo 9YQCQ+Gq9bvf46cGCIapD0Zn+DvUpEUX9HqBFI0ynTef9QCiLEowTkM7Zfh4CUaaeRrg JkiSXVcX0NzAViaOIpZwt0AEFr91QVA8Zi9i18wyhrMnQcTqrUh/KC+USKt1Ty2PJr0C IeL7f3U7BysEwsTYMfUPcvH6RItWn93OX7pzo8ZY+2TEcyJSFOZ64TX5SeyxzLfcxdML Htkg== X-Forwarded-Encrypted: i=1; AKwUvBxo9pAllOyKPNsXYfhShX1J0cHFmiZaJ8Q/LrT6frOe6O1QE3l4c4KItNPuqwCjo/SJd95PpD3TZ6BuIOpa@vger.kernel.org X-Gm-Message-State: AFuF++kW6NXIO8iWJ7rQEwpY8r0c9k8BiRHFL78ovN92xr5M8nQEQe4R dLK6BGk0XeK8o0Wjvxy15fDL0kSvBrq5L/Y42aMUqxqGUAxfz1fXeVnX6heOexmmSq0= X-Gm-Gg: AYBFou2Z/sPiisHkTSrwtvvvfkvvwzI69UnsFs5c3DuhCVVdpjDBP/9UPMQ14Bu/saV tW5AfXs+e9mNb1ZmdLd0gmorEP06SSykQJuBSE/bkmySA8ET4ql6BEefk4HErIt0RME6D96cAa9 vPTliHxoRjTZAg2mCcFxgd/HOCd7aNVAqeKqVZwNSk0T1JD/4/lfbCev36/S6h+64zV17DXWBvX kl9+1542hsChCkDEk4HntkN3YC4DmN3DNzt+HdnCD3sFare5yfND8aYRnu7jyY9VViDVDKOxJJn 4ThwVgc58jUhLrjS+Ik606MuU4zl/IMsM8HthOY7qggc+p3D+Cm6lQqetgRXhjrR8es1vpg5+Zo wRU/sCo/rpOFaOyhWwjtmN+mZpdlXAW2Hp2Gj7jqVFX7txLEuLewFePuH7BxSUxfkbLMam18oJM iJcL6RiFWRnvJy4slf5W9EOPGxAB/VD1BWjEX5zz7SJ+1IriI1m21sxpfYBku8SlCb9hmiGOlDM q46 X-Received: by 2002:a05:622a:30a:b0:532:84d3:ac7 with SMTP id d75a77b69052e-5329e47ff64mr49202771cf.41.1789745227649; Fri, 18 Sep 2026 08:27:07 -0700 (PDT) Received: from zippy.localdomain ([73.62.185.64]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91257f326d8sm15099766d6.6.2026.09.18.08.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 08:27:07 -0700 (PDT) From: Alex Elder To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, bhelgaas@google.com, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org Cc: daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/3] arm64: dts: qcom: qcs6490-rb3gen2: add endpoint buses Date: Fri, 18 Sep 2026 10:26:58 -0500 Message-ID: <20260918152659.413268-4-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260918152659.413268-1-elder@riscstar.com> References: <20260918152659.413268-1-elder@riscstar.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Define the devicetree nodes representing these buses, including the mapping of each BAR's address range to its local address space. The endpoint's ranges property must be defined, but it will be updated dynamically to include all BARs. As a result of this update, the parent address portion of each range will reflect the specific address assigned to the BAR. Co-developed-by: Daniel Thompson Signed-off-by: Daniel Thompson Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 3bb5fca8e2b13..5b7f5292a8864 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -955,11 +955,41 @@ 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 will be updated dynamically */ + ranges = <0x0 0x0 0x0 0x83050000 0x0 0x0 0x0 0x4000>, + <0x2 0x0 0x0 0x83050000 0x0 0x4000 0x0 0x80000>, + <0x4 0x0 0x0 0x83050000 0x0 0x84000 0x0 0x200000>; + + 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 will be updated dynamically */ + ranges = <0x0 0x0 0x0 0x83050100 0x0 0x0 0x0 0x4000>, + <0x2 0x0 0x0 0x83050100 0x0 0x4000 0x0 0x80000>, + <0x4 0x0 0x0 0x83050100 0x0 0x84000 0x0 0x200000>; + + 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>; + }; }; }; }; -- 2.53.0