From patchwork Wed Nov 16 12:01:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 625179 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 05A90C4321E for ; Wed, 16 Nov 2022 12:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233379AbiKPMHx (ORCPT ); Wed, 16 Nov 2022 07:07:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233293AbiKPMHa (ORCPT ); Wed, 16 Nov 2022 07:07:30 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C55FF10FFA for ; Wed, 16 Nov 2022 04:02:01 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id z14so29387329wrn.7 for ; Wed, 16 Nov 2022 04:02:01 -0800 (PST) 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=dpRgnbMi8qckAARNiFgw/+KtlyEj1vTV5D3PXlU2xTg=; b=vj3zT89Y9w4Wmm6PjLwvVOBkxfmwSg71xksovxuPW14LdTfbw12qfIabfdtDu/+qt7 C2IfBL6jUaK0shIZ3cf0uxGE+cqEBdowBAsxePJ+8ThqoPH8NFcfPV3ULp4EWnZmM8gp B9zCTYy7S3Z7mlFNGzu6LiTvfhs608kKx0bLOK/nFdC2ct9N/qnpIGVNidhHyuopolWW Whq3XkSZb8P57pXpoERARY90aPcOBPXZLiiN1VaZtLB+CTro6HdiPDJbFhXUgTKDi4xm vp/wrHyTJmWfp1pOXCeri51IyaCGZJNP8gsnTEKpZFS3fPSROCHDDcbSGEkTrt8aqIgD jgIA== 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=dpRgnbMi8qckAARNiFgw/+KtlyEj1vTV5D3PXlU2xTg=; b=qOobHVChQ493AIbm1crZxR0FHuq/3wEgDrB7YdRicCOXLECgC7DP3fBnyyH3o1K+Vt kLvDdrYIs/M3BeBiIb+gxQLq9SkzZ0gP51OHZ1T1TGdRK96ByWijGNnMe835HmXeROum PeAxOSvYnpurbwUnYN5CZ7kXFrPxvLWCs2GwHhMLmTjKsVOqAa1VAtFervBHygBvwWgq DweZPyWE1dpwncSZGeXD1QWL6TAXujwgDOhMrIdPnpI+I99iIuduluf6Pk98jtvTG3h8 J8QXy9lGaUH+4T9nlJUzapFIjwYduC0lDSQ+GIkdjxeXKxVI95ptxoc9QwbB/+DwsHff QXfw== X-Gm-Message-State: ANoB5pkdyDQk/olTA9NmFKrS+LnLa0CzhGo5EDxr2gLWPRGz3CSerGyb MfFlpYPaSifPaME3nXCoB7NpCA== X-Google-Smtp-Source: AA0mqf6ixmpppWedB5Oh+piLn1Omme6b6zbkSxNf6UmceeGl0ZaoCF8e8wNiQu1SaTCKMsF8koLSlw== X-Received: by 2002:a05:6000:181c:b0:236:60ce:7c10 with SMTP id m28-20020a056000181c00b0023660ce7c10mr13546096wrh.440.1668600120343; Wed, 16 Nov 2022 04:02:00 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id r8-20020a056000014800b002206203ed3dsm15120109wrx.29.2022.11.16.04.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 04:01:59 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , "vkoul@kernel.org" , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH 00/10] phy: qualcomm: Add support for SM8550 Date: Wed, 16 Nov 2022 14:01:47 +0200 Message-Id: <20221116120157.2706810-1-abel.vesa@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 This patchset adds PHY support for the PCIe, UFS and USB found in the new Qualcomm SM8550 SoC. Since the SM8550 bumps the HW version to 6.0 (respectively, 6.20 for PCIe G4), add support for it beforehand. The SM8550 also uses Synopsis eUSB2 PHY, so add a dedicated driver for it. To: Andy Gross To: Bjorn Andersson To: Konrad Dybcio To: Vinod Koul To: Kishon Vijay Abraham I To: Rob Herring To: Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org Cc: linux-phy@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Abel Vesa (9): phy: qcom-qmp: qserdes-com: Add v6 register offsets dt-bindings: phy: Add QMP UFS PHY comptible for SM8550 phy: qcom-qmp-ufs: Add SM8550 support dt-bindings: phy: qcom,qmp-usb: Document SM8550 compatible phy: qualcomm: qmp-usb: Add support for SM8550 dt-bindings: phy: qcom,qmp-pcie: Document SM8550 compatible phy: qualcomm: qmp-pcie: Add support for SM8550 g3x2 and g4x2 PCIEs dt-bindings: phy: Add qcom,snps-eusb2-phy schema file phy: qualcomm: Add QCOM SNPS eUSB2 driver Neil Armstrong (1): phy: qualcomm: phy-qcom-snps-eusb2: Add support for eUSB2 repeater .../phy/qcom,ipq8074-qmp-pcie-phy.yaml | 38 +- .../phy/qcom,msm8996-qmp-ufs-phy.yaml | 24 + .../phy/qcom,msm8996-qmp-usb3-phy.yaml | 1 + .../bindings/phy/qcom,snps-eusb2-phy.yaml | 84 ++++ drivers/phy/qualcomm/Kconfig | 9 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 354 +++++++++++++ .../phy/qualcomm/phy-qcom-qmp-pcs-pcie-v6.h | 15 + .../qualcomm/phy-qcom-qmp-pcs-pcie-v6_20.h | 23 + .../phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h | 31 ++ .../phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h | 31 ++ drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h | 16 + drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6_20.h | 18 + .../qualcomm/phy-qcom-qmp-qserdes-com-v6.h | 75 +++ .../phy-qcom-qmp-qserdes-ln-shrd-v6.h | 32 ++ .../phy-qcom-qmp-qserdes-txrx-ufs-v6.h | 30 ++ .../qualcomm/phy-qcom-qmp-qserdes-txrx-v6.h | 68 +++ .../phy-qcom-qmp-qserdes-txrx-v6_20.h | 45 ++ drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 91 ++++ drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 171 +++++++ drivers/phy/qualcomm/phy-qcom-qmp.h | 13 + drivers/phy/qualcomm/phy-qcom-snps-eusb2.c | 467 ++++++++++++++++++ 22 files changed, 1634 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v6_20.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6_20.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-com-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-ln-shrd-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-ufs-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v6_20.h create mode 100644 drivers/phy/qualcomm/phy-qcom-snps-eusb2.c