From patchwork Mon Dec 13 17:31:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 12674423 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DEA3C433F5 for ; Mon, 13 Dec 2021 17:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236830AbhLMRTx (ORCPT ); Mon, 13 Dec 2021 12:19:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236018AbhLMRTx (ORCPT ); Mon, 13 Dec 2021 12:19:53 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF4AC061574 for ; Mon, 13 Dec 2021 09:19:53 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id d72-20020a1c1d4b000000b00331140f3dc8so12100092wmd.1 for ; Mon, 13 Dec 2021 09:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=uaj/eu9mxTDJeXwct1gACUmB6rL8PuyqUHpHR94Vh0I=; b=duH2Z3BFLZ+dIqNoUaKGsKPYsH5m42KOJ8MmpY9k9GwlOTwxhXgHEancoD+NoFcCQ+ IX6MwxTIJtjXvcXdfpBw4FYqRJ/rIesgtz4/j1qYSgvYotOaoWzmvplggCTA88hQnBGF Eyrxa+Da798NEW4X7KALP+eqMqp/0h11q75M+IyeeIKB8HF7QH6cVPljD0DvWH1uVkKH YIKv/NUGZ838RVmTcSJK8kL2pHpt/WKGzbJ7SIOcR550GFU7M4N6rWPPAyIYGlPqun9R Sr6zpNXz7Vr+LhWa/a3cWlrSCiI6X0feBlt73xiYgx6v0k4vHma3gqbi0IaBJCDVrVbQ ZV1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uaj/eu9mxTDJeXwct1gACUmB6rL8PuyqUHpHR94Vh0I=; b=p4gBTFYKYA/+oGRn4RmSJLuaEgyget8hxxSiPUePRFutFoZPIiWGiahh6BnO+qMN+2 hQEOzJMlN7r5CZo7vL7sK5x/abVSIfUkm16R3FN0GCwdJrHtmL28KyMbs1GACUMvydQf ZUZSFHmdZKNwxKqsVbUIdnZP7T9mARmkmQO5PSQgeEAyEg48CE6xbnE9TNDQj2IDenb1 yB5+woUeykRS+VttYgNjWp+OFkO2duxCQIEX/kHtFB2VKTQ4LtRrema3LXrkNSOx5rhd oIz9ElBVBnT6CTFGRzGHZmtG0rX5QUZLlUiudd2yRuWnLQOpAEkf3egEGQcvLgsTgBrQ IJBg== X-Gm-Message-State: AOAM531cR5Mjdu2uJEQuMTHE4xPDFah/d6/oqZIZNnaNQ5ktG/YZcfI4 4ZuvO7Dthkgnh/DLniNkOAoEPw== X-Google-Smtp-Source: ABdhPJwIHfgdwQJWMfncY3RVPmuzABdzzwQ/eq9/hLxhb+Vv/8Ge0q56XIfwtgJ069OV3wnl9fKShA== X-Received: by 2002:a05:600c:2e46:: with SMTP id q6mr111115wmf.6.1639415991431; Mon, 13 Dec 2021 09:19:51 -0800 (PST) Received: from localhost.localdomain ([88.160.176.23]) by smtp.gmail.com with ESMTPSA id u10sm8483283wrs.99.2021.12.13.09.19.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Dec 2021 09:19:50 -0800 (PST) From: Loic Poulain To: robdclark@gmail.com, sean@poorly.run, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, shawn.guo@linaro.org, Loic Poulain Subject: [PATCH 1/2] drm/msm/dsi: Add phy configuration for QCM2290 Date: Mon, 13 Dec 2021 18:31:59 +0100 Message-Id: <1639416720-6732-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The QCM2290 SoC a the 14nm (V2.0) single DSI phy. Signed-off-by: Loic Poulain --- 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 | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c index 9842e04..c42e8f5 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c @@ -627,6 +627,8 @@ static const struct of_device_id dsi_phy_dt_match[] = { .data = &dsi_phy_14nm_cfgs }, { .compatible = "qcom,dsi-phy-14nm-660", .data = &dsi_phy_14nm_660_cfgs }, + { .compatible = "qcom,dsi-phy-14nm-2290", + .data = &dsi_phy_14nm_2290_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 4c82575..68e0777 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h @@ -48,6 +48,7 @@ extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8960_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_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 7414966..20eadce 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c @@ -1084,3 +1084,24 @@ const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs = { .io_start = { 0x1a94400, 0x1a96400 }, .num_dsi_phy = 2, }; + +const struct msm_dsi_phy_cfg dsi_phy_14nm_2290_cfgs = { + .has_phy_lane = true, + .reg_cfg = { + .num = 1, + .regs = { + {"vcca", 17000, 32}, + }, + }, + .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, +}; From patchwork Mon Dec 13 17:32:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 12674425 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68FECC433EF for ; Mon, 13 Dec 2021 17:19:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237971AbhLMRTy (ORCPT ); Mon, 13 Dec 2021 12:19:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236018AbhLMRTy (ORCPT ); Mon, 13 Dec 2021 12:19:54 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A284C061574 for ; Mon, 13 Dec 2021 09:19:54 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id u17so28316091wrt.3 for ; Mon, 13 Dec 2021 09:19:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=075Yk0+y68GloxUXTf/Thww/w+qmHUDekOuz0aOcf0Q=; b=nZYah+y0wyEUy8U0mi7D03PliOVEhrN1pu022fo9i4e3eWzjTSNbSlinRNb/0NXafy XT7ziMe+yLbCMrIcuayBK8VbSmgL2NtC1UeLEX5OI3itfszWki6RdPrQ2HnVul1/1OkO AVWpG/1hJq6zGRq9q4KBieqKv88PvK2XYG9bVPP2CjpGC7eBLIQvRWsLafAyadnLq5at HCPhJYNJIfLsFbBGuiMlDPAA3gZ1OPp3R1IYWG9CkmHU+pCgAcXOe6/3/fmduxF0tnAY 1Ir52p8mjepyrDZJXuYX+rWQSYX3PalLJPe0E73+Kf84op4pNfKVvMnAbhi0YlOjmeVe nu0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=075Yk0+y68GloxUXTf/Thww/w+qmHUDekOuz0aOcf0Q=; b=gJ7QxSjfPIupk9moECNS1bpntc+Eknzz28cKberEO5gWRksEeXCE1eSqrHyJpQhTAM bn3KZBNzx9c8wrIG3aqb81OjAMztUdbO02C1swWsvY0fwQlQYCLXiIqRnbYbhwFoyBbt KG9gZSpwriQI3vLX6HZC/wJtKJZQc5VRTWXT6CETtcNdiAJIgER8D7kxJDGb5NhDboN8 464O8b9t/p8Z/+SAxI7HUYVsIkBjx6Jc+f7cNYR+Y9KDsIIFnDMmaxJZygUK8/OQnPFM +jxMVKD29aYj+50AFR0N8tyOL9Gq9KcRXLEP5t1CpA5XuFJTn3XHw4h07T5XINoc9h/p Gd3w== X-Gm-Message-State: AOAM532SR2blxMytSvVHohCo36NW99R702KsgZM5AePfuphpjP5aiaU1 EoQaIXX3e4iZXhaoTpNnEzzP1A== X-Google-Smtp-Source: ABdhPJyAwS+zgaTzXAAzYkD2cTgfRy9evWiBsjvc4LqUC01XO/9zVqQaVozt6C9tDubEy5gAsmZ9qw== X-Received: by 2002:a5d:618f:: with SMTP id j15mr32718756wru.506.1639415992703; Mon, 13 Dec 2021 09:19:52 -0800 (PST) Received: from localhost.localdomain ([88.160.176.23]) by smtp.gmail.com with ESMTPSA id u10sm8483283wrs.99.2021.12.13.09.19.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Dec 2021 09:19:52 -0800 (PST) From: Loic Poulain To: robdclark@gmail.com, sean@poorly.run, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, shawn.guo@linaro.org, Loic Poulain Subject: [PATCH 2/2] dt-bindings: msm: dsi: Add QCM2290 DSI phy Date: Mon, 13 Dec 2021 18:32:00 +0100 Message-Id: <1639416720-6732-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1639416720-6732-1-git-send-email-loic.poulain@linaro.org> References: <1639416720-6732-1-git-send-email-loic.poulain@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org QCM2290 platform uses the 14nm DSI PHY driver. Signed-off-by: Loic Poulain --- Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml index 81dbee4..1617efc 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml @@ -18,6 +18,7 @@ properties: - qcom,dsi-phy-14nm - qcom,dsi-phy-14nm-660 - qcom,dsi-phy-14nm-8953 + - qcom,dsi-phy-14nm-2290 reg: items: