From patchwork Sat Oct 29 21:13:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 619874 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 9095EECAAA1 for ; Sat, 29 Oct 2022 21:13:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbiJ2VNS (ORCPT ); Sat, 29 Oct 2022 17:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiJ2VNR (ORCPT ); Sat, 29 Oct 2022 17:13:17 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453723D59B for ; Sat, 29 Oct 2022 14:13:16 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id g7so13585993lfv.5 for ; Sat, 29 Oct 2022 14:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mq8Mg06fdD8FFSs+dwD1ITMKqlWnIs/wVZyIglcsiPc=; b=po6WXVw9WSHq/UQZyPh9zCXDgLHvb4PeMI38LBF4vn0NS5ZDPMaKDJgzN4ctT4wZKw spnRodfwn+6y/mYskrqV/NDQu+SZ/Xy9z9+xkVzewoRaA7oXZcSZSuT/q/BiJy5CjkzQ MZ4Y+SPB85ndhYiqLj8ZYx3hgZNsKdJXZubR9t/kV8vZ5+vpZRzjc8kiw/GvTRdDEMo1 uDSnYQbb/0NTsYzszJEfbv5IKehB1E/RyQ+fvg/CzJHER0ajcAc3UrJygAejKVP+ER3r NlUPeAk/7CknWx65tjHv1EQy9QMiVZU7sk1GjLYgk9q4Ai3r9pjEOr+FIoDswROARauU Qkjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mq8Mg06fdD8FFSs+dwD1ITMKqlWnIs/wVZyIglcsiPc=; b=K2GypN35dfqs5e7Au+GwHu7KAyE4GMhKJIdfmCjnwhuEYxh2F+DqTJkzm8TDOEd1OL JWHTobPrSEQTJwuKOsuLy83c0NBpSbidsmbmbazi+GH6aZiUIzAoCX1MLNeJnYD8LVzn cuIK1vWfRbPn5EHuqs2J6cQ186z+WOJZ6xugFLBxbelE3Rj5o7JzbbPUGbdcqpg1ZULX ORuTINsAS46YDPgV5tQR1LWWSOaIYXiaSZIaHOHfhsEi9i43wF51AgxFOlrtDGWu4Meu VArFJVdytBOkcv/SX/6QRL78sY/xFHzR4f2TYfnIDY4FJoOW8D4HoZyOy9MbzjLZ1Cfq Tcwg== X-Gm-Message-State: ACrzQf2CxT0GKOOIscR2x34p4lZfc9v1hBhcmZsjhwoXbVogqkNPrByn V/nCYbjG5A1eJSZsRgrqtClnUg== X-Google-Smtp-Source: AMsMyM46iI4lf7SmclXK+EHWE1Atz1jHMgUHdPOMtJSyDkqEgBOlRePWkwbCVNxvvkAnY6D4+s/FNg== X-Received: by 2002:a05:6512:2102:b0:4a2:48a2:2cc1 with SMTP id q2-20020a056512210200b004a248a22cc1mr2379585lfr.167.1667077994504; Sat, 29 Oct 2022 14:13:14 -0700 (PDT) Received: from localhost.localdomain ([195.165.23.90]) by smtp.gmail.com with ESMTPSA id j14-20020a05651231ce00b004a480c8f770sm433508lfe.210.2022.10.29.14.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 14:13:14 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Bjorn Helgaas , Vinod Koul , Kishon Vijay Abraham I Cc: Philipp Zabel , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v1 0/7] PCI/phy: Add support for PCI on sm8350 platform Date: Sun, 30 Oct 2022 00:13:05 +0300 Message-Id: <20221029211312.929862-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SM8350 is one of the recent Qualcomm platforms which lacks PCIe support. Use sm8450 PHY tables to add support for the PCIe hosts on Qualcomm SM8350 platform. Note: the PCIe0 table is based on the v2.1 tables, so it might work incorrectly on earlier platforms. Dependencies: - phy/next - https://lore.kernel.org/all/20221028133603.18470-1-johan+linaro@kernel.org/ Dmitry Baryshkov (7): dt-bindings: PCI: qcom: Add sm8350 to bindings dt-bindings: phy: qcom,qmp-pcie: add sm8350 bindings PCI: qcom: Add support for SM8350 phy: qcom-qmp-pcie: split and rename the sm8450 gen3 PHY config tables phy: qcom-qmp-pcie: add support for sm8350 platform arm64: dts: qcom: sm8350: add PCIe devices arm64: dts: qcom: sm8350-hdk: enable PCIe devices .../devicetree/bindings/pci/qcom,pcie.yaml | 54 ++++ .../phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 22 ++ arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 16 ++ arch/arm64/boot/dts/qcom/sm8350.dtsi | 248 +++++++++++++++++- drivers/pci/controller/dwc/pcie-qcom.c | 1 + drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 164 ++++++++++-- 6 files changed, 487 insertions(+), 18 deletions(-) base-commit: 25dcaf94448f41f1634e8e44f28f37b1aff4bc2c prerequisite-patch-id: 2653b8544469dbf460318520629a991707063a74 prerequisite-patch-id: 8e104dd9bcbfc111a3e3a40e653b7529bc43c2da prerequisite-patch-id: a20eaeb1d3c239365d6941e0b78bd735d80ac16c prerequisite-patch-id: 564c51aafef04658f6f72a90680640f77117c8eb prerequisite-patch-id: 6d7542be2843ccfd1f649d2dc85230e640adf5f1 prerequisite-patch-id: e36118b08045416bf3d79a2c69b7f1b2009d6945 prerequisite-patch-id: d48963bb923f85108a8f0d574e92dc63ce341483 prerequisite-patch-id: d8dfcbc4413e5a29ed9d4c2a50f5e6cdec0d261a prerequisite-patch-id: 0493226b1dd5989626619e598650d98e165a9c1b prerequisite-patch-id: 7264ed9ab2e1fc6c25db45812c6834f36590e72e prerequisite-patch-id: 2784713a211929f0b253674742a7bf0966e02c22 prerequisite-patch-id: 454b9956cd3d4c4cdc4f39e746175a5d6a1ca084 prerequisite-patch-id: ce69ae926fb095edd2f3699cfe28e9e75719985c prerequisite-patch-id: 0286a9947535ee3be9f58b8a06f7b3018d1309d8 prerequisite-patch-id: 9d0856ce66a0603950eaa4024057c1cf1f84ed95