From patchwork Tue Jul 18 21:24:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 122259 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2024540vqt; Tue, 18 Jul 2023 14:39:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGDSeCeECRRQuUjCmd5Dpp8qtGBhbo4rtxTd76dZeWl9sReSWs+7Khn5RYAqIgUqsg/llit X-Received: by 2002:a05:6a20:244f:b0:131:4d40:3c9d with SMTP id t15-20020a056a20244f00b001314d403c9dmr649841pzc.9.1689716373437; Tue, 18 Jul 2023 14:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689716373; cv=none; d=google.com; s=arc-20160816; b=vLg+Tmk7ndnQb4UTZYeQibz7yVxhL6VDdq6oU2e7YORZKLwjuTyHq37FJW4hdro3k+ XyYSs6wiW09/53zCULTvwt9sd6w2iIpfvS+c+CDlzrck3m4IOAmqA1mgs5bVI7FyYefS GvxL0/H4sGi8yJZ7JQJK09V70I12OK1Wm2Hb5ySHzz8FLe3IiavvYbhuLAQsqxMAidTn TkA+c5Ccm2pkhOMjfcqX6Vas3NKvTQZnu2MsfSlqk7LgzS+KC/uw6rcfYdEkw76d6Hl1 J98Dt+bY6dUInxhBLtpfVS5ZgFCTwfy2qveIL9shHAyvpFwiIO+uj9E/QYEgigC8Ve95 9Mvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=Qf6/fH15ErL7CtFRn13K/CFfulNEKHFfvtgiatEvH00=; fh=iqz7oRQIyFPzKfYtMH2XRwjdfOOz2hPKEmrmNt7b2jU=; b=EwyL91+2xHgE03c66AQo5u9JIMLTTJplpNiwZWFWBxZnV0KqrI/tlKgegCLyIqlAc9 Rnp8HgskjUOWeDEEVeyVCK/8TnLVQ/ixl4ku+CbM5lSsjs20XnwiYO1SxuX56GtrtXLC iA82ul5SYdWY3ugSQPFVpm3thPHlMw233uNwUuPEWA/b7r78dwPm5ct/7DPaj4/ACorY LM9krTkHMx628bHPdM0Pbhznt3NNSExZ1+LdsQJg4v4FJcU3/oZstR5tjVqzDEKewdIZ uE3iaCwjoH/DDHq0ktRhwPX9F9Rvi/tiCsbsK6QeTlYht7lMSZbChVrTtrCLuPlxzwm7 qenA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b36-20020a631b64000000b005575b3902c1si2056354pgm.346.2023.07.18.14.39.17; Tue, 18 Jul 2023 14:39:33 -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 S231449AbjGRVZf (ORCPT + 99 others); Tue, 18 Jul 2023 17:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbjGRVZK (ORCPT ); Tue, 18 Jul 2023 17:25:10 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A5A519A9; Tue, 18 Jul 2023 14:24:56 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 9AE753F696; Tue, 18 Jul 2023 23:24:53 +0200 (CEST) From: Marijn Suijten Date: Tue, 18 Jul 2023 23:24:47 +0200 Subject: [PATCH v3 11/15] drm/msm/dsi: Reuse QCM2290 14nm DSI PHY configuration for SM6125 MIME-Version: 1.0 Message-Id: <20230718-sm6125-dpu-v3-11-6c5a56e99820@somainline.org> References: <20230718-sm6125-dpu-v3-0-6c5a56e99820@somainline.org> In-Reply-To: <20230718-sm6125-dpu-v3-0-6c5a56e99820@somainline.org> To: 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 , Marijn Suijten , Loic Poulain , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , 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 X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771796035575726091 X-GMAIL-MSGID: 1771796035575726091 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. This, including the register offset is identical to QCM2290, whose config struct can trivially be reused. Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c index 323498237ef4..f59cf2a47b4c 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c @@ -561,6 +561,8 @@ static const struct of_device_id dsi_phy_dt_match[] = { .data = &dsi_phy_14nm_660_cfgs }, { .compatible = "qcom,dsi-phy-14nm-8953", .data = &dsi_phy_14nm_8953_cfgs }, + { .compatible = "qcom,sm6125-dsi-phy-14nm", + .data = &dsi_phy_14nm_2290_cfgs }, #endif #ifdef CONFIG_DRM_MSM_DSI_10NM_PHY { .compatible = "qcom,dsi-phy-10nm",