From patchwork Mon Jul 17 17:26:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13316525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org From: Sebastian Reichel Subject: [PATCH v3 0/5] RK3588 PCIe2 support Date: Mon, 17 Jul 2023 19:26:46 +0200 Message-Id: <20230717172651.64324-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+lwn-linux-arm-kernel=archive.lwn.net@lists.infradead.org List-Archive: To: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Serge Semin Cc: Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Shawn Lin , Simon Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Hi, This adds PCIe v2 support for RK3588. The series has been tested with the onboard RTL8125 network card on Rockchip RK3588 EVB1 (&pcie2x1l1) and Radxa Rock 5B (&pcie2x1l2). Changes since v2: * https://lore.kernel.org/all/20230713171851.73052-1-sebastian.reichel@collabora.com/ * Removed num-ib-windows/num-ob-windows/num-viewport from DT * Added patch making 'msi' irq optional, if 'msi-map' property is available * Updated binding according two discussion with Serge Semin, I provided two options by adding one extra patch that should be squashed into the main one or dropped depending on preferences from DT binding maintainers. * Collected Reviewed-by/Tested-by from Jagan Teki Changes since v1: * https://lore.kernel.org/all/20230616170022.76107-1-sebastian.reichel@collabora.com/ * Dropped patch adding 'RK3588' (queued by Rob) * Updated patch adding legacy-interrupt-controller according to comments from Rob and Serge - added missing additionalProperties: false - added all properties to new required property - removed useless quotes around interrupt-controller - added Rob's Reviewed-by * Updated patch adding the missing RK356x/RK3588 interrupt names, so that it provides more details about the interrupts * Updated the DT patch according to the comment from Jonas Karlman, so that the addresses are in 32 bit address space starting at 0x40000000 [0] https://lore.kernel.org/all/20230612171337.74576-1-sebastian.reichel@collabora.com/ Thanks, -- Sebastian Sebastian Reichel (5): dt-bindings: PCI: dwc: improve msi handling dt-bindings: PCI: dwc: rockchip: Fix interrupt-names issue dt-bindings: PCI: dwc: rockchip: Use generic binding dt-bindings: PCI: dwc: rockchip: Add missing legacy-interrupt-controller arm64: dts: rockchip: rk3588: add PCIe2 support .../bindings/pci/rockchip-dw-pcie.yaml | 70 ++++++++++++ .../devicetree/bindings/pci/snps,dw-pcie.yaml | 18 +++- arch/arm64/boot/dts/rockchip/rk3588.dtsi | 51 +++++++++ arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 102 ++++++++++++++++++ 4 files changed, 237 insertions(+), 4 deletions(-)