From patchwork Sat Dec 18 14:10:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 525890 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55C50C433EF for ; Sat, 18 Dec 2021 14:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233343AbhLROKb (ORCPT ); Sat, 18 Dec 2021 09:10:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233341AbhLROKb (ORCPT ); Sat, 18 Dec 2021 09:10:31 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93E11C06173E for ; Sat, 18 Dec 2021 06:10:30 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id v15so7991910ljc.0 for ; Sat, 18 Dec 2021 06:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lFt6X0KER9eQ+C0OYY/wY0eK0N3IsPMop2A/RWQEB+8=; b=Sv78hEqnXqXaU8ZsZL+1SFCTGZio744Bua3QkrdgMwABcuhMRNQCQxnq6V0H8yLzRp 5B8s9Bg9pgSENp2SVlkwmR3dJJ5UqmCa8VuXdkROUho77JvyIz6qXMdYXrjIwnvD9hUZ NoqUDmdcjf315URgqhjhttQX7CtaSZsNn1LdQeS5ceZGIPARlPqIBu2tgMdvbnYr1C78 OxRm0+p4tN+jFDxYauWeNHdWDuTm+9R8RtAXs+U3czmoq+IaFgOmwSkA19Plt9dGVJpY rvi3HlXMH9o315iWLFMvnPFvQt43yaHctk/N29/w5Gj/noEQ3P3FRScTEIlLu7UBp0GA nZuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lFt6X0KER9eQ+C0OYY/wY0eK0N3IsPMop2A/RWQEB+8=; b=UHD+zDmc/JgUDwzGDMj6soQ3PibMD1JU5KtxIOSDk8ojtKke0pOpSujHVmUYAfeUJ4 5Vb0CHD6SUaVZu5qXFUaPk1c1V35pWWAs9o09OgHL1Lt5WQMZCYlcDwg2cq/7j1CKRpn SWrGr8P/R+D+4u/i/C9mpz/FSTWu/anuFZn2Fhv1bX2i5nCoFV2cC4hHvs/MfSVJ1YhB M6WyaexDRHaIT1+RK7t0ronnA/yySsPGI+QbMSKS8ROIlcLYahgJlG8/yvR1P9vlJNKr d2kFKx2ZrHC1HHnuE3h5xKGsYOhzQks3ywpFmU35YGyy60VcLFCEo/A1gvTmcnHiOtDQ Ie7w== X-Gm-Message-State: AOAM530lfiuMrSHSyR3wL/o0Ojhj5dSwhq8pyTsy05+WVCOkudrvkUOa PldZx/8TqeDzme0QFlzcE9KsoA== X-Google-Smtp-Source: ABdhPJxQx+BiEdXyNqa+ssNg1vIeTyUlhVk9vDvWUSuNBVNNrFZigv7asswBCg3rY4KUd29fi861xA== X-Received: by 2002:a2e:a305:: with SMTP id l5mr7140349lje.73.1639836628838; Sat, 18 Dec 2021 06:10:28 -0800 (PST) Received: from eriador.lan ([2001:470:dd84:abc0::8a5]) by smtp.gmail.com with ESMTPSA id c2sm145789lfh.189.2021.12.18.06.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 06:10:28 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Vinod Koul , Kishon Vijay Abraham I , Stanimir Varbanov , Lorenzo Pieralisi Cc: Bjorn Helgaas , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH v5 0/5] qcom: add support for PCIe on SM8450 platform Date: Sat, 18 Dec 2021 17:10:19 +0300 Message-Id: <20211218141024.500952-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There are two different PCIe controllers and PHYs on SM8450, one having one lane and another with two lanes. Add support for both PCIe controllers Dependencies: - https://lore.kernel.org/linux-arm-msm/20211218140223.500390-1-dmitry.baryshkov@linaro.org/ Changes since v4: - Add PCIe1 support - Change binding accordingly, to use qcom,pcie-sm8450-pcie0 and qcom,pcie-sm8450-pcie1 compatibility strings - Rebase on top of (pending) pipe_clock cleanup/rework patchset Changes since v3: - Fix pcie gpios to follow defined schema as noted by Rob - Fix commit message according to Bjorn's suggestions Changes since v2: - Remove unnecessary comment in struct qcom_pcie_cfg Changes since v1: - Fix capitalization/wording of PCI patch subjects - Add missing gen3x1 specification to PHY table names ---------------------------------------------------------------- Dmitry Baryshkov (5): dt-bindings: pci: qcom: Document PCIe bindings for SM8450 PCI: qcom: Remove redundancy between qcom_pcie and qcom_pcie_cfg PCI: qcom: Add ddrss_sf_tbu flag PCI: qcom: Add interconnect support to 2.7.0/1.9.0 ops PCI: qcom: Add SM8450 PCIe support .../devicetree/bindings/pci/qcom,pcie.txt | 22 ++++- drivers/pci/controller/dwc/pcie-qcom.c | 101 ++++++++++++++------- 2 files changed, 91 insertions(+), 32 deletions(-)