Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13831103rwd; Sat, 24 Jun 2023 07:13:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EWJ0lI5s2iq8rFgSmZbunEUGHZl/3b+yoDZOal1hGitTeaSXomORS9ARNRo6MJY3JML05 X-Received: by 2002:a05:6a00:23c6:b0:668:79c4:a65a with SMTP id g6-20020a056a0023c600b0066879c4a65amr16319053pfc.32.1687616001361; Sat, 24 Jun 2023 07:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687616001; cv=none; d=google.com; s=arc-20160816; b=K0MM1wGrvQTRRJyZKFs/kaZtlkmQimRJvfyfts5v1rl/HIxdi8K5jBVDotoFqju48y 7OiC+K+TnmTTgEjg+PfYiNcTiRThOfmLnOQT0HOAdCk8vwTbKC82qfRbhm+0NVYTu3kB cRLVsF1FrHy3TG4IIIKVkv/hxdqR1NxEFdrRc519Pf92FTAPK5j3360F6pJ4IqMliFQs CZsP1zFzRsw7qtQJwOrk6Qk0iSirumONWuSGk+m5FsO1swNWKOvdYbXEhqiCyJTnOt0a 1qUyNJR0kHmSdib6RXXZl7zHhcxTH2d6U4lCXqsibEZkMH3UsIxtlzZRMJv39gI09uF0 +ARA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3Oi1lF/kkeimU7XmipbBvg8q7/HjZupz5o5jzKFagIM=; fh=+POrScuKyzsDmvzpFFUykkfniDxAIzDbATcgeMOgWx4=; b=aNL+LsPst1NO/g5nG5IQ6S9xfjm7VD8OwX75HDoj/IKBtOzfMvO3uW/aPGSIk8xJLf S3EP9gjBAEHKjOiIO6hXqK5wUP0KJhz5+34v+XQr8bW62Ric4MRJ8dj+Baz5sx/2yOtv 34VhOFtPF+deZaPUXoNbKWOLm8Uk/weymYTYWxCJ+e9r/SNpTQVwpuym+we/p/BoD8iu TkOJcrRELWBhvsw74IcwsAXSb3BxTFurGBedMtJtJrsvaudU1yLmUc7AjSZ1GYJ+m+7S 3tc3gEmBkjX5cjC7GHfJEpql/N1C+smcFMPNMz8q7U+TCNy1QrSzoi4VHsEPldlwT0KY lxRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IEz5Il4B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a65670c000000b0054f78758283si1572656pgf.601.2023.06.24.07.12.56; Sat, 24 Jun 2023 07:13:21 -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=@linaro.org header.s=google header.b=IEz5Il4B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbjFXNvp (ORCPT + 99 others); Sat, 24 Jun 2023 09:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbjFXNvn (ORCPT ); Sat, 24 Jun 2023 09:51:43 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F9C1FCE for ; Sat, 24 Jun 2023 06:51:40 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b45e347266so25093791fa.0 for ; Sat, 24 Jun 2023 06:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687614698; x=1690206698; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3Oi1lF/kkeimU7XmipbBvg8q7/HjZupz5o5jzKFagIM=; b=IEz5Il4BczoOZSDNpKTWfxYQIXnw1PWYudJXZYKUh1P1aLgWGSoQgbgodcvqZI1clF oWRhs1G4zYF+AoqU+SYfNPkiyC5q4INa0Mok0aP9M0heefBSXKJZ8zH/dVmo0mwR9sFJ nl42A5o3UeS0BuJ+x0wvJ1ABU5GFzn1CHGJ/SI7XLNVqdPv9FVyOX3dIz1ON3qA2NzDx UsAJjsq7/UPGAf1/nJsuZuls/3oCtLrrwZLgFw2TMmmIodteMqm1Ul1E2OClrhPqpfd/ D9XZAlZ6m029jawHWoHoTsl9VEhFikItbhwz6BGJ5rRb3CxTMq9KuqFvmULxl6zOFaMl vFDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687614698; x=1690206698; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3Oi1lF/kkeimU7XmipbBvg8q7/HjZupz5o5jzKFagIM=; b=W/H2624hgDOkFstXJ1vD3IHhRtaFuPgW9/P6mQAohZg0bvDOM5YeI0xoqadmHePFt7 go8F9JY8SGldvRTlrntVfH7bIqJv35sbqzGyD0cfIU2mh+OTlp09w5FNURSfOLIjwOPg ch2qUrh4g8tKP1enEdPQzG8oyyuuR2EIiN6DSySX81aFC2iXFYCU6/ZPxIoXP2rR/GAu lfrWr+QHomkiKP4twbKQQqPR7j+KJLoQ4zuCocnzi6GzksFdDBBkZU1e6JK7gntS/dzc Elv5SOm/kMaI1D7z0v8c9I31Pf+cVccGFmASwy+C7dxMsi+U1x2BmwXyWBFq+zGhG2fQ 8YVw== X-Gm-Message-State: AC+VfDyz2zKflPjzxfxmMHE2A8AQYjs4AF1Rw2UQ6ka90kNFYlBTSi4F qOsTeqVuzXD6rPkH8AaHDUI5tg== X-Received: by 2002:a2e:83d0:0:b0:2b4:792d:a4ad with SMTP id s16-20020a2e83d0000000b002b4792da4admr10979503ljh.26.1687614698631; Sat, 24 Jun 2023 06:51:38 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id b21-20020a2e8955000000b002b1a872c826sm282414ljk.61.2023.06.24.06.51.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Jun 2023 06:51:38 -0700 (PDT) Message-ID: Date: Sat, 24 Jun 2023 16:51:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 11/15] drm/msm/dsi: Add 14nm phy configuration for SM6125 Content-Language: en-GB To: Konrad Dybcio , Marijn Suijten , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan Cc: ~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 References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-11-1d5a638cebf2@somainline.org> <18d969bb-69b5-0d42-1518-e8a3b92859b7@linaro.org> From: Dmitry Baryshkov In-Reply-To: <18d969bb-69b5-0d42-1518-e8a3b92859b7@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 24/06/2023 04:49, 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.. > > But the regulator is absent on both (VDD_MX powers it instead), so > feel free to clean that up and reuse it ;) Could you please send a fix for qcm2290? > > 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, >> -- With best wishes Dmitry