Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5474180rwl; Tue, 11 Apr 2023 06:06:51 -0700 (PDT) X-Google-Smtp-Source: AKy350auTaPwv8MLTGF12gn5cBtwzo2VkalZyRIB8QCH11j7n19y7PBy/yZbQm3xBEcNd8IOveH9 X-Received: by 2002:a17:906:72db:b0:94e:4457:c433 with SMTP id m27-20020a17090672db00b0094e4457c433mr112406ejl.17.1681218411085; Tue, 11 Apr 2023 06:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681218411; cv=none; d=google.com; s=arc-20160816; b=yxJqOP4a/G7PYUJAEouZ20nqTtfp1Rguo5TqO5IHG8mnrwKC0Csda0MQFykvvsYPTG FHHmtjCB//5X9jsVdcs9nekcXnMQk3llzw2+nvPgxREx6NwYb1fQ7RiOhTs1x/wgP/6c 9rsuvP1g6TKb0QxtK0r2g52yquUg2DaQG2RWH5IcX1i5DPcfskEb0+uHiAYujRZ22NZ0 SGvwinb4T1NWrdA3hvjAg8LHHARRnZ1oNEcLcxGyUoidgXIqXKNikJLp1KtFu8EI59+o wU81bdIuJI7ALXkybeCvTg104/pJx0cD6yKRU6hUDOfuP70mShtF2Nu85pxxf7FdcpM5 ii6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eibFHvIgf05QKZ/3r3/eY9NPHy7GReZl9L/HNNvsxXE=; b=CF0SMOy5ilXaP8eqacIDBYR3qNXK0vz8my7NpJD264y1/VBW3/LsQY4AhpIeW58duj hjrE+S9HUt8HJyDRSqE4RPMXqBVoq4x0QO95LsZkNK1EYOY+F6vvIxYCKDpwNLcAdeKS nEbEHQdmEe4+4YthEkcYa42I0gWVjg3R/VWVbcOQ9QjAFHDbb+C/WDVeNCBBJZehMO0w 2Nc26C4FfwpBSoqDqeTrvkkrxgZMdOU21zlfl+i/isON8ZsY+wgSui/SE8ynX+zIe3Q8 +Wb1eLbyop9etaLRbtz8ceo9PXgTOlbkCgLtHb19kFCBbiBVI62wF6BBNnw19O2yixpA vduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=OjTJrHqj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr16-20020a1709073f9000b009302c3128c4si3071033ejc.833.2023.04.11.06.06.20; Tue, 11 Apr 2023 06:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=OjTJrHqj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230351AbjDKNFT (ORCPT + 99 others); Tue, 11 Apr 2023 09:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbjDKNFG (ORCPT ); Tue, 11 Apr 2023 09:05:06 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 498FC4C03 for ; Tue, 11 Apr 2023 06:04:54 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id q5so4477933wmo.4 for ; Tue, 11 Apr 2023 06:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1681218293; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eibFHvIgf05QKZ/3r3/eY9NPHy7GReZl9L/HNNvsxXE=; b=OjTJrHqjKnFcNtpxu+Jm5Qtw20XraHvEi7KW4YG5WJitLaThv138G8Ep+/ASeVEEfd ZDzqG+0RKLyMV9AZ2qtySMtce1bsorkt6nZviZVcsAtar6uLGjiVWx8MrKLJNy4ypnPb Fpn/DFqZ6iSw5WivvMhw3yhYLSMH2PHW+rULdXOXoyxGUB1V8Eq1sKGFGZnxApLpso+n yStFXsdWBkAHp4Zzthp04LtHgkXfp0esJVy01GetuGeyMFPFPApmQ2GrxPhimjrL4gW/ P0mhTEbTDTvpjysE52MK0egEkotIv4w4+lfyGn42Hu6rbwYDLinBb2rfMpvxTGT2r+50 wqxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681218293; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eibFHvIgf05QKZ/3r3/eY9NPHy7GReZl9L/HNNvsxXE=; b=T3nOs6/a8QuWI/dzCSxpKgi6AIBCBsRXci6BXEBOdl3S5VJAUIvi8V/SDIsHT8BnZr 2mJ0npEWlR0DGOM3JZ+z2EY3viLG9+jLGnZ+wKjluIVjc4Ws6kE+JXWSUpjpMvVZT6T7 L68Ty1mz99/qsLUbViLciKd1ZVDFI9vmvxjc2CyxGc05Jr8tsdboJh9YaKZYq78uXwxN WBAKTtO9ZhvjFXszZPTZ0Y8j3M7xu7Jz3rK1+M+un0RvFQfjYF6HYaqWEHivq4qDgj59 C85YatsYgDuIrZLXxtKtYzq4154sK6T33BEPZhZC+8eP4b7ALwY4ELltsXiWGpdX1oPn R9Zg== X-Gm-Message-State: AAQBX9dKm97b3FQM/1snOxzxxx7I33KgBD+gviUlENXO5EkuRo9PgQ0t W1pQbK38U/vnNme9fHd0ckvMaA== X-Received: by 2002:a1c:ed02:0:b0:3f0:7dd1:8e4b with SMTP id l2-20020a1ced02000000b003f07dd18e4bmr8941221wmh.6.1681218292676; Tue, 11 Apr 2023 06:04:52 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:a099:fc1d:c99a:bfc3]) by smtp.gmail.com with ESMTPSA id t6-20020a7bc3c6000000b003f04646838esm16921301wmj.39.2023.04.11.06.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:04:52 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 3/5] phy: qualcomm: phy-qcom-qmp-ufs: add definitions for sa8775p Date: Tue, 11 Apr 2023 15:04:44 +0200 Message-Id: <20230411130446.401440-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230411130446.401440-1-brgl@bgdev.pl> References: <20230411130446.401440-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Add QMP PHY config for sa8775p and add support for the new compatible. Signed-off-by: Bartosz Golaszewski --- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index d58822049211..5612282eb378 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -853,6 +853,41 @@ static const struct qmp_phy_cfg msm8996_ufsphy_cfg = { .no_pcs_sw_reset = true, }; + +static const struct qmp_phy_cfg sa8775p_ufsphy_cfg = { + .lanes = 2, + + .offsets = &qmp_ufs_offsets, + + .tbls = { + .serdes = sm8350_ufsphy_serdes, + .serdes_num = ARRAY_SIZE(sm8350_ufsphy_serdes), + .tx = sm8350_ufsphy_tx, + .tx_num = ARRAY_SIZE(sm8350_ufsphy_tx), + .rx = sm8350_ufsphy_rx, + .rx_num = ARRAY_SIZE(sm8350_ufsphy_rx), + .pcs = sm8350_ufsphy_pcs, + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_pcs), + }, + .tbls_hs_b = { + .serdes = sm8350_ufsphy_hs_b_serdes, + .serdes_num = ARRAY_SIZE(sm8350_ufsphy_hs_b_serdes), + }, + .tbls_hs_g4 = { + .tx = sm8350_ufsphy_g4_tx, + .tx_num = ARRAY_SIZE(sm8350_ufsphy_g4_tx), + .rx = sm8350_ufsphy_g4_rx, + .rx_num = ARRAY_SIZE(sm8350_ufsphy_g4_rx), + .pcs = sm8350_ufsphy_g4_pcs, + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_g4_pcs), + }, + .clk_list = sm8450_ufs_phy_clk_l, + .num_clks = ARRAY_SIZE(sm8450_ufs_phy_clk_l), + .vreg_list = qmp_phy_vreg_l, + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), + .regs = ufsphy_v5_regs_layout, +}; + static const struct qmp_phy_cfg sc8280xp_ufsphy_cfg = { .lanes = 2, @@ -1600,6 +1635,9 @@ static const struct of_device_id qmp_ufs_of_match_table[] = { }, { .compatible = "qcom,msm8998-qmp-ufs-phy", .data = &sdm845_ufsphy_cfg, + }, { + .compatible = "qcom,sa8775p-qmp-ufs-phy", + .data = &sa8775p_ufsphy_cfg, }, { .compatible = "qcom,sc8180x-qmp-ufs-phy", .data = &sm8150_ufsphy_cfg, -- 2.37.2