From patchwork Wed Jul 21 22:46:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 483348 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp6620612jao; Wed, 21 Jul 2021 15:47:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0ZIByAIzlOrLYEa4ZofuBo8Vsrxf0GL1UoXvyslbLKq2t2JBpb9pUd20ZiL4Jr3LF97k2 X-Received: by 2002:a17:907:7256:: with SMTP id ds22mr39669405ejc.363.1626907677034; Wed, 21 Jul 2021 15:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626907677; cv=none; d=google.com; s=arc-20160816; b=aGnwE96aEdqikLlfiyfjKZ46aCdhG691KiJIDVLTf1I9FdQCA8jUvKmctwNU9ha/VV KuXUTXBoqFxvgzsdhva/13xDhdb2mnMau/1GCVE8KK/ggLy89fODcoodxDRcsVyAtETt 9mNBzHC+RCpoX24ydodcQq6Hk/dNkc9P1QuqlaPDLDp4BqkDCa0X0qB5Fwx1KBzB8A98 Pnv2wshfkFwkFjowQJBI8zjbPEO9HKU3XKEKECKOQCezg+e+yxEFDzv/J1DqMTGNJvBy mldVbbPVCqGE6lI6bLRUrV+yCgsH0YDC+8wHFFGB4qt5ot4Ag2bzd7XjorRaAS4IR+ic ge7Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=y/tOk8U0jrASAGEK+93nkWtyMESJk9ZYst/jFkgGIMQ=; b=bZ2a7FmpUeCGojDdJkOmSUjyCY9QUp/R997RWRLzje+RXAQCWzsX+VCC/kPYHcTa4z 4bl2ay0kFNL/tRsaeVhaMeVQGiJwkkzVgEJuh+81FNCsdYLkGa25gYLjTSWELqTutMjp 2wwQc7u96aM8BeIKE8BC27dipoWTcTVSiJyVtgjOvDKbvO12V6bFvsXIfBLSeFW7HHP0 8SHgAUWlQFVV/jAvOczoRDnTRzI4lCZ8dKfpXEu+1MaK6IsKacRRFROFdzwiej76+51D Yudgrn8Osd0bOrbnuRGeewRzu9+zocqk7c1BilY7+B8CeNrtOTWZ7MtnOr2zyBe6We0Z YldA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ea62cusS; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx22si29046319edb.157.2021.07.21.15.47.56; Wed, 21 Jul 2021 15:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ea62cusS; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbhGUWHT (ORCPT + 17 others); Wed, 21 Jul 2021 18:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbhGUWHT (ORCPT ); Wed, 21 Jul 2021 18:07:19 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50247C0613C1 for ; Wed, 21 Jul 2021 15:47:54 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id s2-20020a0568301e02b02904ce2c1a843eso3545198otr.13 for ; Wed, 21 Jul 2021 15:47:54 -0700 (PDT) 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=y/tOk8U0jrASAGEK+93nkWtyMESJk9ZYst/jFkgGIMQ=; b=Ea62cusS2TrJJCKaUzdjeybGkwYhB84LN6BztgQ5ZTLJ7x9mRKkBLUZsdwZf9wII3o 4lPTt3HpAD/g9XHkxOQm4ngLZ3SYU+CC1/7NvtBAgdtS2Ba0SYYrjItBTshttnVIQWQK 6yPQEegfK3M77RIjQOy7C/Asvgg1HXutBRbY8TY5RKKtTAxU+00b4FSK8lON6ZA1cBwV GIk0/8ctcS1XvHkVsrmzzDEsF5ytihPns9ug1odnQScyGNIKh8nA/aeoZ/vLL2hPQhH5 gblBO9m1EpTaUgtIdZBuCv5n9eEgT8LU0Dwb0RygTuCyBBIW9rpERhSbSyRwdtY6K2ar pr5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y/tOk8U0jrASAGEK+93nkWtyMESJk9ZYst/jFkgGIMQ=; b=i+wgrf6RZc/spI2BeeggfZERu5RpIgBvIc/bLWAnvZ9DUdeH0a2756mq+55CBg1Gh4 p5q4Ga8Tp2CRV6YzCZHQGwsoiMKupgQ0hhlubUTld9tTTLB0TGcfoCEZ6Z8mC+CM+GCY tevN+VeuuuMUEirFtLbWnhdZt6TriWHi9lIGPXPbOYbkmMv6+wn7qQXXhfGEBh0n5TjV uthv7Rg6ATHDfkYbLtnrHfufbNhOgTgh9ZsqzuxnJT6XAw2deF7fMbyAyMHECCjnGtm1 Up0VqB7e5jRfthsCCkCiH/nya0NFXs/vjjwxbtUSkSUMvdtw70Y4eLvpR2x5Oue7C2Qj pfSg== X-Gm-Message-State: AOAM531lS/KAf2peP5ItK6oOy37uxPtPk6u1MIZlxqxOkhT8YDy2/fR5 aeGI2oEdaYBdh73wqhJieH/z3A== X-Received: by 2002:a05:6830:1c2f:: with SMTP id f15mr17380471ote.23.1626907673472; Wed, 21 Jul 2021 15:47:53 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id m16sm4707720oom.44.2021.07.21.15.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 15:47:53 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Jonathan Marek , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: qcom: dispcc-sm8250: Add additional parent clocks for DP Date: Wed, 21 Jul 2021 15:46:10 -0700 Message-Id: <20210721224610.3035258-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The clock controller has two additional clock source pairs, in order to support more than a single DisplayPort PHY. List these, so it's possible to describe them all. Also drop the unnecessary freq_tbl for the link clock sources, to allow these parents to be used. Signed-off-by: Bjorn Andersson --- drivers/clk/qcom/dispcc-sm8250.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) -- 2.29.2 Reviewed-by: Dmitry Baryshkov diff --git a/drivers/clk/qcom/dispcc-sm8250.c b/drivers/clk/qcom/dispcc-sm8250.c index 601c7c0ba483..bf9ffe1a1cf4 100644 --- a/drivers/clk/qcom/dispcc-sm8250.c +++ b/drivers/clk/qcom/dispcc-sm8250.c @@ -26,6 +26,10 @@ enum { P_DISP_CC_PLL1_OUT_MAIN, P_DP_PHY_PLL_LINK_CLK, P_DP_PHY_PLL_VCO_DIV_CLK, + P_DPTX1_PHY_PLL_LINK_CLK, + P_DPTX1_PHY_PLL_VCO_DIV_CLK, + P_DPTX2_PHY_PLL_LINK_CLK, + P_DPTX2_PHY_PLL_VCO_DIV_CLK, P_EDP_PHY_PLL_LINK_CLK, P_EDP_PHY_PLL_VCO_DIV_CLK, P_DSI0_PHY_PLL_OUT_BYTECLK, @@ -98,12 +102,20 @@ static const struct parent_map disp_cc_parent_map_0[] = { { P_BI_TCXO, 0 }, { P_DP_PHY_PLL_LINK_CLK, 1 }, { P_DP_PHY_PLL_VCO_DIV_CLK, 2 }, + { P_DPTX1_PHY_PLL_LINK_CLK, 3 }, + { P_DPTX1_PHY_PLL_VCO_DIV_CLK, 4 }, + { P_DPTX2_PHY_PLL_LINK_CLK, 5 }, + { P_DPTX2_PHY_PLL_VCO_DIV_CLK, 6 }, }; static const struct clk_parent_data disp_cc_parent_data_0[] = { { .fw_name = "bi_tcxo" }, { .fw_name = "dp_phy_pll_link_clk" }, { .fw_name = "dp_phy_pll_vco_div_clk" }, + { .fw_name = "dptx1_phy_pll_link_clk" }, + { .fw_name = "dptx1_phy_pll_vco_div_clk" }, + { .fw_name = "dptx2_phy_pll_link_clk" }, + { .fw_name = "dptx2_phy_pll_vco_div_clk" }, }; static const struct parent_map disp_cc_parent_map_1[] = { @@ -269,20 +281,11 @@ static struct clk_rcg2 disp_cc_mdss_dp_aux_clk_src = { }, }; -static const struct freq_tbl ftbl_disp_cc_mdss_dp_link1_clk_src[] = { - F(162000000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - F(270000000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - F(540000000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - F(810000000, P_DP_PHY_PLL_LINK_CLK, 1, 0, 0), - { } -}; - static struct clk_rcg2 disp_cc_mdss_dp_link1_clk_src = { .cmd_rcgr = 0x220c, .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_0, - .freq_tbl = ftbl_disp_cc_mdss_dp_link1_clk_src, .clkr.hw.init = &(struct clk_init_data){ .name = "disp_cc_mdss_dp_link1_clk_src", .parent_data = disp_cc_parent_data_0, @@ -296,7 +299,6 @@ static struct clk_rcg2 disp_cc_mdss_dp_link_clk_src = { .mnd_width = 0, .hid_width = 5, .parent_map = disp_cc_parent_map_0, - .freq_tbl = ftbl_disp_cc_mdss_dp_link1_clk_src, .clkr.hw.init = &(struct clk_init_data){ .name = "disp_cc_mdss_dp_link_clk_src", .parent_data = disp_cc_parent_data_0,