From patchwork Tue Jan 17 12:55:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 643834 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 8B9ECC63797 for ; Tue, 17 Jan 2023 12:56:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236931AbjAQM4H (ORCPT ); Tue, 17 Jan 2023 07:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236596AbjAQM4F (ORCPT ); Tue, 17 Jan 2023 07:56:05 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D94181BAE7 for ; Tue, 17 Jan 2023 04:56:02 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id iv8-20020a05600c548800b003db04a0a46bso1273165wmb.0 for ; Tue, 17 Jan 2023 04:56:02 -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=Kqhws25vCfr+KtN44sNbAes05bM1bGpfEYSXw7WryfE=; b=KATTs6l9/8eFALrmE/PARmJXB+OJhINK1bpVy5E0K94Kqngab/bmHcfgbkw/gpPGTw 3gz2xCCkVhsaQi962ml2qo5pkgSoYrxausxWk5QRUSoZsyC4PhrApdGgZDR8x6C7lbd6 abxD2/W1DsjM+DU3FwShLfS3je/WvRhrCIA1TqlqqLHzAYoSBjmlHSaXXYLHPKESYYvh aGdUMDV/tAZ4NKYh6u39Grq6aYK1fUl00jqfWXwe2Kq4f8gOxWjEfZZd22DsdCWkDFMJ Ie42H1XSnXlvFS6XLmkQXNhYLT8WHzGIfBE8Ujdy1PKxDDZeUZaaAvsHfXmWUEfT7+HB IBkQ== 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=Kqhws25vCfr+KtN44sNbAes05bM1bGpfEYSXw7WryfE=; b=3bAQJ2hpfm206aYrL9jH9/2reLjOESw4To475pA7EkETq/JWXiAbV5e9stJ33bXzLb nn/r036eLmdq9avLgnJNPDj8jMzo8Chj2y6ewzIubwTUWRNyS8ZQdkZU72NAL1raXKyU oWKAFNDjjJOB4be1tB1nUWEpG5Q8nMlZ1ZLeeAGknHjBF8QwBS1S29XLhLL8JI9446G+ bt0IAFEnCrfyEoebgDi/tKipJ1s+B80EJSe3R8rGkEUr1AQsBYGzgOClTRGgq9gI6LMs EraE9BU5shbc/YjYXbtrug0K+5yn7K3X/sr6UF+bKf0DX+u4jTuz0eZYpNPxhWwi7EEb s9cQ== X-Gm-Message-State: AFqh2kpI2zXqHA+DnATOfYHPkifKJ2kVQFyy4r3/3DnkICLA3EU6fr// uowEaTbxaWPifyX7K5s+bM9Hdw== X-Google-Smtp-Source: AMrXdXvqtGtRoLFDkn2W9oAJUq+uFk2SZmQkZJFMhbCCc178PKwlPxcU5GY21cpxJ19dpuBfLPSbrw== X-Received: by 2002:a05:600c:1695:b0:3da:1c49:d632 with SMTP id k21-20020a05600c169500b003da1c49d632mr2998500wmn.1.1673960161411; Tue, 17 Jan 2023 04:56:01 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id g12-20020a05600c310c00b003c70191f267sm45069778wmo.39.2023.01.17.04.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 04:56:00 -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-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , Johan Hovold Subject: [PATCH v3 0/6] phy: qualcomm: Add UFS support for SM8550 Date: Tue, 17 Jan 2023 14:55:49 +0200 Message-Id: <20230117125555.163087-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 The v2 of this patchset is: https://lore.kernel.org/all/20230112130542.1399921-1-abel.vesa@linaro.org/ Changes since v2: * rebased on linux-phy/next * dropped sm8550_ufs_phy_clk_l, used sdm845_ufs_phy_clk_l instead * zero padded pcs value in qmp_ufs_offsets_v6 to 4 digits * replaced LF copyright with Linaro's in all header files * moved the UFS specific includes in the UFS specific driver file * added Krzysztof's A-b tag to the bindings patch Abel Vesa (6): dt-bindings: phy: Add QMP UFS PHY comptible for SM8550 phy: qcom-qmp: qserdes-com: Add v6 register offsets phy: qcom-qmp: qserdes-txrx: Add v6 register offsets phy: qcom-qmp: qserdes-txrx-ufs: Add v6 register offsets phy: qcom-qmp: pcs-ufs: Add v6 register offsets phy: qcom-qmp-ufs: Add SM8550 support .../phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 1 + .../phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h | 31 ++++++ .../qualcomm/phy-qcom-qmp-qserdes-com-v6.h | 82 +++++++++++++++ .../phy-qcom-qmp-qserdes-txrx-ufs-v6.h | 30 ++++++ .../qualcomm/phy-qcom-qmp-qserdes-txrx-v6.h | 77 +++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 99 +++++++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp.h | 3 + 7 files changed, 323 insertions(+) create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-com-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