From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) (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 E9C232DC350; Fri, 3 Oct 2025 03:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.248.80.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759462758; cv=none; b=kYwt32CEmskIFmBOCuPbv5be/HVGSi7CBNVn2LQfZOo4nEkLCnCde+Bq0ifXzVgh15wQBex49/L+LECYDZtYH8XKGGLI9v44fyeiZ4NUxdfLXGxVS1EDQ6l2zmwwu51HAJUQLiiJ2YO0PJFUNLsuceD4UhV//MeAIiJZ/q5HDhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759462758; c=relaxed/simple; bh=oB3+pikzo1u/9bJXUFVCCM1BiW5U2kaDO8edghe8f/8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=khL00uYu6wagAbEXMFqyooy2E7BQDEqcpVGOb+1/tcGFRiLE3nuMY7pGdWN0uBIttHZsxrQ1mvUrW4VY+SNayfYPnGoxP54VM7luk5qQoGRzIph60RSquypt3bNQkgUwzwkg56/YljK0mtMkFDieSWSGSDBcGlGWpw72Re3/qT0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=permerror header.from=andestech.com; spf=pass smtp.mailfrom=andestech.com; arc=none smtp.client-ip=60.248.80.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=permerror header.from=andestech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=andestech.com Received: from mail.andestech.com (ATCPCS31.andestech.com [10.0.1.89]) by Atcsqr.andestech.com with ESMTPS id 5932ZYAP070264 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Oct 2025 10:35:34 +0800 (+08) (envelope-from randolph@andestech.com) Received: from atctrx.andestech.com (10.0.15.173) by ATCPCS31.andestech.com (10.0.1.89) with Microsoft SMTP Server id 14.3.498.0; Fri, 3 Oct 2025 10:35:34 +0800 From: Randolph Lin To: CC: , , , , , , , , , , , , , , , , , , , , , , , Randolph Lin Subject: [PATCH v6 0/5] Add support for Andes Qilai SoC PCIe controller Date: Fri, 3 Oct 2025 10:35:22 +0800 Message-ID: <20251003023527.3284787-1-randolph@andestech.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-DKIM-Results: atcpcs31.andestech.com; dkim=none; X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL:Atcsqr.andestech.com 5932ZYAP070264 Add support for Andes Qilai SoC PCIe controller These patches introduce driver support for the PCIe controller on the Andes Qilai SoC. Signed-off-by: Randolph Lin --- Changes in v6: - Fix typo in the logic for adjusting the number of OB/IB windows --- Changes in v5: - Add support to adjust the number of OB/IB windows in the glue driver. - Fix the number of OB windows in the Qilai PCIe driver. - Remove meaningless properties from the device tree. - Made minor adjustments based on the reviewer's suggestions. --- Changes in v4: - Add .post_init callback for enabling IOCP cache. - Sort by vender name in Kconfig - Using PROBE_PREFER_ASYNCHRONOUS as default probe type. - Made minor adjustments based on the reviewer's suggestions. --- Changes in v3: - Remove outbound ATU address range validation callback and logic. - Add logic to skip failed outbound iATU configuration and continue. - Using PROBE_PREFER_ASYNCHRONOUS as default probe type. - Made minor adjustments based on the reviewer's suggestions. --- Changes in v2: - Remove the patch that adds the dma-ranges property to the SoC node. - Add dma-ranges to the PCIe parent node bus node. - Refactor and rename outbound ATU address range validation callback and logic. - Use parent_bus_offset instead of cpu_addr_fixup(). - Using PROBE_DEFAULT_STRATEGY as default probe type. - Made minor adjustments based on the reviewer's suggestions. Randolph Lin (5): PCI: dwc: Allow adjusting the number of ob/ib windows in glue driver dt-bindings: PCI: Add Andes QiLai PCIe support riscv: dts: andes: Add PCIe node into the QiLai SoC PCI: andes: Add Andes QiLai SoC PCIe host driver support MAINTAINERS: Add maintainers for Andes QiLai PCIe driver .../bindings/pci/andestech,qilai-pcie.yaml | 97 +++++++ MAINTAINERS | 7 + arch/riscv/boot/dts/andes/qilai.dtsi | 106 ++++++++ drivers/pci/controller/dwc/Kconfig | 13 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pcie-andes-qilai.c | 240 ++++++++++++++++++ drivers/pci/controller/dwc/pcie-designware.c | 12 +- 7 files changed, 474 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/andestech,qilai-pcie.yaml create mode 100644 drivers/pci/controller/dwc/pcie-andes-qilai.c -- 2.34.1