From patchwork Mon Jan 24 16:27:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 12722365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3C10C433F5 for ; Mon, 24 Jan 2022 16:30:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5BjrdtYCrHpEkOFZpPJDB4Y8WGQUWnFOr3EqPexO4L0=; b=r+t7K0QFYnW637 4SJfObVC30yk4b+P+s5SkZfRlSnBEF2TotDxudnAA0dRx594CtqlSrEKEHQkdaPzaq744oJiyioRK 6nkjKArIOmTS+FUBJDiSZMnyrsuvwf1pk7IL0bb6aYx7R2mvfZZ9ksmPJ1DOeK4CjD+LQo4qabcjD nB3Y3c2ovOv6HKNWu3P/RAioMXkwbeRSREFLJoXS8jl7X8ksNBmhUf11KsYbIBn8XUsU+IdxAVvVo YveNddzr7bB9MAJygdaFOrxttyO5w4KI23wWh0FvjPkBNpcpJd0MXLjNBVbCLu3Wfh2rCAN+rovEa tX4X0oBiKt1Oz3XPjqLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC2DW-00426d-Kl; Mon, 24 Jan 2022 16:29:18 +0000 Received: from guitar.tcltek.co.il ([84.110.109.230] helo=mx.tkos.co.il) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC2DI-004227-QQ for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 16:29:06 +0000 Received: from tarshish.tkos.co.il (unknown [10.0.8.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 26FF2440430; Mon, 24 Jan 2022 18:28:47 +0200 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tkos.co.il; s=default; t=1643041727; bh=DjS6s/K0SfWhGGh/pVn+WNtUFdUvuIJItZj5VJ/R+Es=; h=From:To:Cc:Subject:Date:From; b=UrCf5rBnp+G3/q5NFvmCkABIJFE7lwrGfR6GHA9ugyuD0Hb42NFM1idKvhhCH0lDM wZRe437uHmFyhuBj1iOsevI0O7YpwD6seLZJu4y+sThgOPjYfdrgBJ4FpexYL0sJ1r Br7mUnKuhWcJgiEqxCgBMhGmp1YaLRGvsogdZeSJyWtWL21iduzQMOB7Mvf5Kq2F60 7+q0kNb+ClKJC5M0fYy/rKrK+Zbj/ZzGUhyrsfiQ2oGGS079CtsYOlNQ6Dkwo0m38o nQBNKx6aAQu0fMRJY6MTi5rJyJDuBRQQL5qv3ujuO51H3y0o5KfvZeFfw1HO/ZypKa WD/tnwi2CA2kg== From: Baruch Siach To: Andy Gross , Bjorn Andersson Cc: Baruch Siach , Selvam Sathappan Periakaruppan , Kathiravan T , Bjorn Helgaas , Rob Herring , Thierry Reding , Jonathan Hunter , Jingoo Han , Gustavo Pimentel , Robert Marko , Bryan O'Donoghue , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 0/3] arm64: IPQ6018 PCIe support Date: Mon, 24 Jan 2022 18:27:28 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_082905_263950_9BD53711 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds support for the single PCIe lane on IPQ6018 SoCs. The code is ported from downstream Codeaurora v5.4 kernel. The main difference from downstream code is the split of PCIe registers configuration from .init to .post_init, since it requires phy_power_on(). Tested on IPQ6010 based hardware. Changes in v5: * Remove comments from qcom_pcie_init_2_9_0() (Bjorn Andersson) Changes in v4: * Drop applied DT bits * Add max-link-speed that was missing from the applied v2 patch * Rebase the driver on v5.16-rc3 Changes in v3: * Drop applied patches * Rely on generic code for speed setup * Drop unused macros * Formatting fixes Changes in v2: * Add patch moving GEN3_RELATED macros to a common header * Drop ATU configuration from pcie-qcom * Remove local definition of common registers * Use bulk clk and reset APIs * Remove msi-parent from device-tree Baruch Siach (2): arm64: dts: qcom: ipq6018: add pcie max-link-speed PCI: dwc: tegra: move GEN3_RELATED DBI register to common header Selvam Sathappan Periakaruppan (1): PCI: qcom: add support for IPQ60xx PCIe controller arch/arm64/boot/dts/qcom/ipq6018.dtsi | 1 + drivers/pci/controller/dwc/pcie-designware.h | 7 + drivers/pci/controller/dwc/pcie-qcom.c | 137 +++++++++++++++++++ drivers/pci/controller/dwc/pcie-tegra194.c | 6 - 4 files changed, 145 insertions(+), 6 deletions(-)