Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15254523rwd; Sun, 25 Jun 2023 13:35:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DElra5ETiBBxfEjlYX/iDJsIzvFqiy2mXOjXw99wBDIlsdSiwxE1C4jQZp4ZghxBhNyKk X-Received: by 2002:a17:903:1105:b0:1b6:6985:ff8d with SMTP id n5-20020a170903110500b001b66985ff8dmr7121146plh.42.1687725311196; Sun, 25 Jun 2023 13:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687725311; cv=none; d=google.com; s=arc-20160816; b=SH7ASwa2Oj6Am1D519b28WSce+fAuWQyzwu3b7se5Xu7XobIXt7xlRVqgoKGy6o64n 4xc5u86cnF0DvTryfYxWOf4ryWBn9oIQHBE2fnc1hwIiR+yN9vfy5UdUwp/hmqtItO+v D49SrZgute6jgKGSZtrsxPIFMbuYJER75wEwr+kvjIgdAwCLiSdupIN0KLPYMo74XVjO TvMSfP3Wk3LqxneQ01tXTe/JNC3gVoaKor6hI8gM5WmMYCtG5KxclD1In1J6so1mM+C0 zUgqJgZLOOratzBotUsghSZC+GPLu+1NwcmOfTb4borLpzoSEXKEIh2z8/N6yFFl14Ry ZRxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4UVerLkXGvt2Vtc6YCNaTugsQZfJLfEE76+4BDCCG78=; fh=djDN5Fva8FmLoU0DRmInJWrBHVIqjCqUczAQ4tJuB6I=; b=euxSza808+U/tkB3rT70PMwNd/pVlWgER5h/ZJ98IH/cSqFVuFKAh1VZthw+Y9A6TG G/7ZIEeCvgL3F3OAuo5PeN0IJGM1OkAA37JV17BmolTS5DQyr7BJcyrHGmmPlmRZfs4d ytf2P5Gw7Pv0EFJ43+iIvZl9U52SVmGUxsKqssIoobro9rf6l2GzJnlP2s53KDO/dbGa LhAPB2oFQIMCPiqPNg/dNLWPATjK4gnyWax383W8DZXtgapN/OTj1R4AeOdef0R+8VH8 fCf2KyNPu2qgBrYZAHsMC9RWsM3ggZ4N43G7WhStIvQO46dXwtHvTCRu+0hiwHD0/ZR5 t8Aw== ARC-Authentication-Results: i=1; mx.google.com; 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 f11-20020a170902f38b00b001b7e6528c77si2671015ple.144.2023.06.25.13.34.59; Sun, 25 Jun 2023 13:35:11 -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; 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 S229559AbjFYUXR (ORCPT + 99 others); Sun, 25 Jun 2023 16:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjFYUXP (ORCPT ); Sun, 25 Jun 2023 16:23:15 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [5.144.164.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 281B49B for ; Sun, 25 Jun 2023 13:23:14 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id B4D371F8D6; Sun, 25 Jun 2023 22:23:11 +0200 (CEST) Date: Sun, 25 Jun 2023 22:23:10 +0200 From: Marijn Suijten To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga Subject: Re: [PATCH 11/15] drm/msm/dsi: Add 14nm phy configuration for SM6125 Message-ID: References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-11-1d5a638cebf2@somainline.org> <18d969bb-69b5-0d42-1518-e8a3b92859b7@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18d969bb-69b5-0d42-1518-e8a3b92859b7@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 2023-06-24 03:49:25, Konrad Dybcio wrote: > On 24.06.2023 02:41, Marijn Suijten wrote: > > SM6125 features only a single PHY (despite a secondary PHY PLL source > > being available to the disp_cc_mdss_pclk0_clk_src clock), and downstream > > sources for this "trinket" SoC do not define the typical "vcca" > > regulator to be available nor used. > > > > Signed-off-by: Marijn Suijten > > --- > The introduced ops are identical to 2290, modulo regulator.. Sure, I can create a "drop unused regulators from 14nm qcm2290 config" and a second "reuse qcm2290 14nm dsi phy for sm6125" patch, instead of this one. > But the regulator is absent on both (VDD_MX powers it instead), so In the DT patch you requested me to use CX instead of MX... Which one is it? Also note that I moved it from DSI PHY to DSI0 because that's where the rpmpd opps reside. - Marijn > feel free to clean that up and reuse it ;) > > Konrad > > drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 ++ > > drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 1 + > > drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 15 +++++++++++++++ > > 3 files changed, 18 insertions(+) > > > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c > > index 9d5795c58a98..8688ed502dcf 100644 > > --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c > > +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c > > @@ -559,6 +559,8 @@ static const struct of_device_id dsi_phy_dt_match[] = { > > .data = &dsi_phy_14nm_2290_cfgs }, > > { .compatible = "qcom,dsi-phy-14nm-660", > > .data = &dsi_phy_14nm_660_cfgs }, > > + { .compatible = "qcom,dsi-phy-14nm-6125", > > + .data = &dsi_phy_14nm_6125_cfgs }, > > { .compatible = "qcom,dsi-phy-14nm-8953", > > .data = &dsi_phy_14nm_8953_cfgs }, > > #endif > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > index 8b640d174785..ebf915f5e6c6 100644 > > --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > @@ -52,6 +52,7 @@ extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs; > > extern const struct msm_dsi_phy_cfg dsi_phy_14nm_cfgs; > > extern const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs; > > extern const struct msm_dsi_phy_cfg dsi_phy_14nm_2290_cfgs; > > +extern const struct msm_dsi_phy_cfg dsi_phy_14nm_6125_cfgs; > > extern const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs; > > extern const struct msm_dsi_phy_cfg dsi_phy_10nm_cfgs; > > extern const struct msm_dsi_phy_cfg dsi_phy_10nm_8998_cfgs; > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c > > index 3ce45b023e63..5d43c9ec69ae 100644 > > --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c > > +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c > > @@ -1068,6 +1068,21 @@ const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs = { > > .num_dsi_phy = 2, > > }; > > > > +const struct msm_dsi_phy_cfg dsi_phy_14nm_6125_cfgs = { > > + .has_phy_lane = true, > > + .ops = { > > + .enable = dsi_14nm_phy_enable, > > + .disable = dsi_14nm_phy_disable, > > + .pll_init = dsi_pll_14nm_init, > > + .save_pll_state = dsi_14nm_pll_save_state, > > + .restore_pll_state = dsi_14nm_pll_restore_state, > > + }, > > + .min_pll_rate = VCO_MIN_RATE, > > + .max_pll_rate = VCO_MAX_RATE, > > + .io_start = { 0x5e94400 }, > > + .num_dsi_phy = 1, > > +}; > > + > > const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs = { > > .has_phy_lane = true, > > .regulator_data = dsi_phy_14nm_17mA_regulators, > >