Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5871493rwp; Mon, 17 Jul 2023 10:42:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHyLKUF31XDlPxfzsm3glYC0FQ1fmMbobaa7DbEjx2t7Q9Fzty0ogFQPlMAlddl+/o4IRBt X-Received: by 2002:a17:903:1d0:b0:1b6:bced:1dd6 with SMTP id e16-20020a17090301d000b001b6bced1dd6mr13016832plh.35.1689615765503; Mon, 17 Jul 2023 10:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689615765; cv=none; d=google.com; s=arc-20160816; b=0NH88nz2sBi4cgQRTA/yb2U6cWHHGqv5een73jz8XhjsTCs3nPzGPBg1XPXP9RRuZ3 DHoaLuwQh0XTwVvLlTkt5GUJlUBW0bgfR48LAnYG6m35LatHjCqfWiC70BA9ICVUpkff qDwnxgsB9g65cgiJAvpxXjtELjGxAgnmnrqQUL27tAjufciEpQIr7k0JNiThnhxrqo4I rlB7CfMgo5aRrthjcYACCKwM9gHzOw6tYnDJSPYByDDqAuJph1uC5UK7wnShetstYuSj K5BcQfp8oJWqZ5vvjnX2DrmYZ2ndAVbmeYFP+o65K4j8bYKe6p3pIeXBfCOKcDHKuCeJ QSHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jmTSf4hkCAgJXyldCrcWhpyn/n/YaM3Je6qIoHJPfIw=; fh=LfQCrBMaKEgbD0siDAPrEFK33OeuzJ3zXGk+5eD9ICw=; b=LIo9a7mVLKB8v3okzkPrnAQBcG4H+ywDrkhGTABwvC1fUJAdGWcLPEPH8YMN/z9AZ+ 2efAsHAWMBXIMa6tfWKcWbi5Z1snkHjMU7Zn0ok77rjeKZmaWqDxM04nxpre7g+W6/oZ eXN4Asf/rXsa5Mh34BuNQYpnsiiUfku9gzpWrgIySKlxmopf6o1lLzvAYEHXgq/VCpAq HlSGqrzyal+LeeCufSm9rxGgQjhhE8UK6i4KG67L3TsUm6md2fvb+V8ab/Hj0kLyCF4a +5atYs2DiMCoq6Iz45DNUxweOCnAZDU/09xGWfhj7RIT/GKHGxK0o8ok0C+JcLL53kES BhFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JVOOWYXg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a170902f68100b001b046acc853si138431plg.589.2023.07.17.10.42.32; Mon, 17 Jul 2023 10:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JVOOWYXg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231241AbjGQR1Z (ORCPT + 99 others); Mon, 17 Jul 2023 13:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbjGQR1D (ORCPT ); Mon, 17 Jul 2023 13:27:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBFADD; Mon, 17 Jul 2023 10:26:57 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-171.ewe-ip-backbone.de [91.248.189.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id CDA85660297B; Mon, 17 Jul 2023 18:26:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689614816; bh=br7WffVrrPWJblI6hMOtAA0jJageWK+7UkJ5nR07nqU=; h=From:To:Cc:Subject:Date:From; b=JVOOWYXgss8UA4sAVTgkYDtjcBT/b6kAw/X48OcmDdWKC7MgBaUKwgFoWBWaK9pWl 480byhNk9NwbJ1RIyLepO5zC2pVEdDGmt9F8RZp9r2yO3CzbcUA6cVCYRm4zCG7Xnh Pc1xQMC8jP2n5p8NHF7pWOPdTXZzCF6nJ0g9b75+xNY1PGJscSHdTwA+tD3QcBlkAP xbl3z2WMoFMJjokghr0P2YmcmE1hdxpDPy/lXC8fGMJRLjENSCkD3CDcj6ENQN+4y2 OixAH6wUx+BOUMrMRjjDhk8MsGUJNEhjcc3nKlkS6y8chaso5eG6zOXmtwR3nFVARg RVJ8qqXAkSNgw== Received: by jupiter.universe (Postfix, from userid 1000) id 17F5B480C72; Mon, 17 Jul 2023 19:26:53 +0200 (CEST) From: Sebastian Reichel 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=20Wilczy=C5=84ski?= , 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 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> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.40.1