From patchwork Sat Jun 22 23:25:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13708434 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5B4CC2BD09 for ; Sat, 22 Jun 2024 23:26:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C94010E518; Sat, 22 Jun 2024 23:26:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j75eXl17"; dkim-atps=neutral Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 45AF810E504; Sat, 22 Jun 2024 23:25:58 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4247f36f689so21939435e9.1; Sat, 22 Jun 2024 16:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719098756; x=1719703556; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MWHAXFFmaSZgvBXZR/Mxp9Pkz4SLmkvmM+jATo6r8UE=; b=j75eXl17FykEXjETtteaB4eku97TbZ7yElQfDhFmgPoer79mypAHmrS7oiZ9n8NoLC HKmmFMLcGn14OR4DF6AZeq8IixOXRYFPsX6IdwIfJcs+OqsS5INAdtz96/Xfx/1un+vW 9IZ8Uu/9TN6STdCqLCZo93D/5xWqXKKGUtmI6yVCOcja3a1Z8Tj7kMPGCYuPUhm+k3G0 6rB8aiEvdp1OC3pOYkHuRZ2F28F9JXZ7kDq+mKD4ei5H429f5/mZ7IGOkZaRMk0I2qjS gFqrK4sjmLrlSC84rXAkHM4BTaSuO9XpZ+m7YXSAC/N6UhLxRtcGHfq4ll9h/oJtJ6i/ AVIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719098756; x=1719703556; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MWHAXFFmaSZgvBXZR/Mxp9Pkz4SLmkvmM+jATo6r8UE=; b=JnO57E4iyl3MLIr81tt3V/IaukbSlMP4MeZ4UER3ID2LNtLuVsWqbCeh4mY6Ljovqs yMiQxeW40BQe5TmNybmLXH546tRN6tmj318BesnI7D9kYsUO3WLAVwes6L95KQNo+ZDr 8IBKBT6l53dfJae76mFcbUr0adKM53yXEUql8cU3Xf/d/WdiOIRWlA+5gfA9YCmwzvwj i4AcZGjQ0Ao2lTwUN2Uk3zzMkAPx+1iMFg0pavIyqQtd+c+1aKxxcBqpdOZIqQv272DF WI5PwRPMJfkgmOkx67BU410MtiGqHXqRDtEmVHcMs0YhESqOm4nocC+kriwY1qKUx4Vm 14CA== X-Forwarded-Encrypted: i=1; AJvYcCWTbRHJnrvNASsS+7t6USgkPvsjtr2P51eUDk5est1/FqlRybX2ziOuE9a+jLJ+jeyiHOhItlAsF5DthgqBRGcZ+TQQe2WrKtSNWfQCQ1DFGWcfBJytMcTFD0Z2uyVM8wHpVoKfi3dkJ62ASKJ6jNeA X-Gm-Message-State: AOJu0YzW6dLnw7ahTI9ekuTO6aHrTw6w+zBSx8WOad30f+5N4ssSuFgi AliPV6EjmmJ3NWRGUQ9F4Wv1PC/dnneyoTWisHEnGYUQrQHXQ6FF X-Google-Smtp-Source: AGHT+IFhTw2K1zlg7CzOin7QPXHZw+j792pc9HEAWcyNu9FkjvzuZaBZouhfEhzH1nRepX8KYSZ8Ag== X-Received: by 2002:a05:600c:56cc:b0:421:7bed:5274 with SMTP id 5b1f17b1804b1-4248b95d0edmr11914775e9.10.1719098756419; Sat, 22 Jun 2024 16:25:56 -0700 (PDT) Received: from [192.168.1.90] (20014C4E18129200DEAEE2020304A5A2.dsl.pool.telekom.hu. [2001:4c4e:1812:9200:deae:e202:304:a5a2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d2190desm120301875e9.48.2024.06.22.16.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 16:25:55 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 01:25:51 +0200 Subject: [PATCH 1/4] dt-bindings: display/msm: qcom, mdp5: Add msm8937 compatible MIME-Version: 1.0 Message-Id: <20240623-dsi-v1-1-4ab560eb5bd9@gmail.com> References: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> In-Reply-To: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Mailer: b4 0.14.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the compatible for the MDP5 found on MSM8937. Signed-off-by: Barnabás Czémán Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml b/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml index 91c774f106ce..e153f8d26e7a 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml @@ -25,6 +25,7 @@ properties: - qcom,msm8226-mdp5 - qcom,msm8916-mdp5 - qcom,msm8917-mdp5 + - qcom,msm8937-mdp5 - qcom,msm8953-mdp5 - qcom,msm8974-mdp5 - qcom,msm8976-mdp5 From patchwork Sat Jun 22 23:25:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13708433 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A70D3C2BD09 for ; Sat, 22 Jun 2024 23:26:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6C7110E520; Sat, 22 Jun 2024 23:26:02 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SJzW6edH"; dkim-atps=neutral Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8DCE310E518; Sat, 22 Jun 2024 23:25:59 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4217c7eb6b4so27655775e9.2; Sat, 22 Jun 2024 16:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719098758; x=1719703558; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=PNu7xeRP88jipeI6HHfobP1Qgyw76oR5Po2K0A0gOkc=; b=SJzW6edHYsGyRT84mguI39nUrNrf0nSMZ9dTDTvFf3+/Ot7deQc+udxkC67xoxoKWP t64lTs6tn2sxdj8U3Oau/6UAnG4ml9Z2SNTMQ4ZJacGFRljge+2rY3spMg1Q2dFg5WRu /eNrXWwHqAMPd/JDvu7PACE77/rxoMxGRKp6Rt3JGv4ZsZiNKjhA3yxWet2v5XdA39fE X421daShxtDcmBGs/Wyokhb05PPtbC5d2dEGUPdNtEWCI1feGLX12QwwxfEbya011nA6 SQAB89AEAJbDA+5v9ymtpspzazT/c8/nEIXT7VCnf3hjnVewIQH5zQTNd1PEaMZ3cmIm ohcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719098758; x=1719703558; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PNu7xeRP88jipeI6HHfobP1Qgyw76oR5Po2K0A0gOkc=; b=mo4w2BBcNRYBNywr24+s6l8oQAJ+GwyxflB6nnusyTpwyvurTpg5skH/OK9zbhVieU GNvHQ3KdClEW1EHZm9m2zTuMQyP9mLhPf655LaXYeyaUbg/oWWu4WtJZsc6aZ/vy7pZn ekBNb9I+dCAzIkCGATREvTuWPX8I3cTEVetqB6D9cHq+gclnWs5CMIF6PRdUVQAAJ45d RQfpX55RGhWiT9J2MCSqefU0N9TlY2P+krPHGmu4CckbEw5o43g9o6tTJrgv4oU1pMOB RfNwrQIHHRe3SXKFy8WSLCpoYHnh1yMyUyUJjZlP4F4LY9dJrex825YhSMLFMiuYuWTU En8w== X-Forwarded-Encrypted: i=1; AJvYcCWwj1E2+kEIDeMae5yGZYQda09XyV0l7fPyfK574nR1yThf2vdDhWnh61p8p9ipyKInUR+nDZcSuNKxYQNh8QoWzTik9hooC3yVwl1ripCvaf00HbcMq8dFzcLNsCuUdp3+U+ua8GASfu/qQPZu4Ugq X-Gm-Message-State: AOJu0YwoN7gqqGT25RXeyCPutOQ4G3GjVbKmO1lAyJTe1W0d26EOcTey AMNzBqBpStZ78PtiZoTi0MylASdc8QsZrn6HG+yZZRAsJ6gqlQh2 X-Google-Smtp-Source: AGHT+IH46DHY7jFQjqPPtgD7FXczy15ke69mR2FvCy0K0rrmLqtmKJ4cNCM9ziz8EjvCFharm4qOvQ== X-Received: by 2002:a05:600c:68c:b0:421:de31:81 with SMTP id 5b1f17b1804b1-4248cc35d9cmr5842505e9.24.1719098757615; Sat, 22 Jun 2024 16:25:57 -0700 (PDT) Received: from [192.168.1.90] (20014C4E18129200DEAEE2020304A5A2.dsl.pool.telekom.hu. [2001:4c4e:1812:9200:deae:e202:304:a5a2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d2190desm120301875e9.48.2024.06.22.16.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 16:25:57 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 01:25:52 +0200 Subject: [PATCH 2/4] drm/msm/mdp5: Add MDP5 configuration for MSM8937 MIME-Version: 1.0 Message-Id: <20240623-dsi-v1-2-4ab560eb5bd9@gmail.com> References: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> In-Reply-To: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= , Daniil Titov X-Mailer: b4 0.14.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Daniil Titov Add the mdp5_cfg_hw entry for MDP5 version v1.14 found on msm8937. Signed-off-by: Daniil Titov Signed-off-by: Barnabás Czémán --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 89 ++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c index c5179e4c393c..6413c0d3e237 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c @@ -1011,6 +1011,94 @@ static const struct mdp5_cfg_hw msm8917_config = { .max_clk = 320000000, }; +static const struct mdp5_cfg_hw msm8937_config = { + .name = "msm8937", + .mdp = { + .count = 1, + .caps = MDP_CAP_CDM | + MDP_CAP_SRC_SPLIT, + }, + .ctl = { + .count = 3, + .base = { 0x01000, 0x01200, 0x01400 }, + .flush_hw_mask = 0xffffffff, + }, + .pipe_vig = { + .count = 1, + .base = { 0x04000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SCALE | + MDP_PIPE_CAP_CSC | + MDP_PIPE_CAP_DECIMATION | + MDP_PIPE_CAP_SW_PIX_EXT | + 0, + }, + .pipe_rgb = { + .count = 2, + .base = { 0x14000, 0x16000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_DECIMATION | + MDP_PIPE_CAP_SW_PIX_EXT | + 0, + }, + .pipe_dma = { + .count = 1, + .base = { 0x24000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SW_PIX_EXT | + 0, + }, + .pipe_cursor = { + .count = 1, + .base = { 0x34000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SW_PIX_EXT | + MDP_PIPE_CAP_CURSOR | + 0, + }, + + .lm = { + .count = 2, + .base = { 0x44000, 0x45000 }, + .instances = { + { .id = 0, .pp = 0, .dspp = 0, + .caps = MDP_LM_CAP_DISPLAY | + MDP_LM_CAP_PAIR }, + { .id = 1, .pp = 1, .dspp = -1, + .caps = MDP_LM_CAP_DISPLAY }, + }, + .nb_stages = 5, + .max_width = 2048, + .max_height = 0xFFFF, + }, + .dspp = { + .count = 1, + .base = { 0x54000 }, + + }, + .pp = { + .count = 2, + .base = { 0x70000, 0x70800 }, + }, + .cdm = { + .count = 1, + .base = { 0x79200 }, + }, + .intf = { + .base = { 0x00000, 0x6a800, 0x6b000 }, + .connect = { + [0] = INTF_DISABLED, + [1] = INTF_DSI, + [2] = INTF_DSI, + }, + }, + .max_clk = 320000000, +}; + static const struct mdp5_cfg_hw msm8998_config = { .name = "msm8998", .mdp = { @@ -1325,6 +1413,7 @@ static const struct mdp5_cfg_handler cfg_handlers_v1[] = { { .revision = 9, .config = { .hw = &msm8x94_config } }, { .revision = 7, .config = { .hw = &msm8x96_config } }, { .revision = 11, .config = { .hw = &msm8x76_config } }, + { .revision = 14, .config = { .hw = &msm8937_config } }, { .revision = 15, .config = { .hw = &msm8917_config } }, { .revision = 16, .config = { .hw = &msm8x53_config } }, }; From patchwork Sat Jun 22 23:25:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13708436 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E75A6C2BD09 for ; Sat, 22 Jun 2024 23:26:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0DF1110E52D; Sat, 22 Jun 2024 23:26:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hdMMaJu2"; dkim-atps=neutral Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE1BC10E518; Sat, 22 Jun 2024 23:26:00 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42198492353so27068525e9.1; Sat, 22 Jun 2024 16:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719098759; x=1719703559; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uNZIBBitXPi1uUiKPoj+62/BSgetTcrhDK59sUyVjUo=; b=hdMMaJu2Lfzq+kirPixF/1bRCM4lshymqhV6G7edvGmLTt7R56SE8TFN5mk0l+qkm8 BJ8/u0+D4bGDEjv5/DdLomB08TCPg8sPTzfIjOrYYHlEWRk7TDaESivMvWw4roJbJFUn 2DX62roOZnR8cKr4x2MJVeXo5rvXB5glOzcH6wQDFsGDs6dJmQ5sKgxzyeWQWubWD2jj d9KO1DThBAew+yCKOWOhaGYgEs8LfYFpXTEtg6k+7Anp3U8Zh9XILKSk1cIPTG7eZ5JP jVTxpyPrP/aV+WeXchVxdjzQ4WXr9QZ1Ge5bP77cJfFkmVgHCATQMY3+h6XrmkZGbaur uHGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719098759; x=1719703559; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uNZIBBitXPi1uUiKPoj+62/BSgetTcrhDK59sUyVjUo=; b=MQR52e4oh0/HwZ+J+zVYiE0Qg4djCz5aFRxq0SyMbYtuQ9A7RRLbZ8YuELr2kHyMtN 6nWhCohqVGhmGekqQhNfas1pxbuB1px4rkbkuAUOfw9p+JZzQrzE7DllvNrOlYEFTm0n aSBtKNEN9Emg7gmxfFVUqzmp917S6apUP9ovY4ZPzoGYX/fXvSWr1NBSwJmwIj4LdN4c c89YgkSjpLQW6tlTpia12PP8+Xz5fenAchM6Dz+OQiNBFuAFrKGQC0ZnMDS9mBwL9o7K mE6wMizP78OoR9iLRSh35H3Imv0xGe59ns5mS32ZIoVW6VDE3F/MOBZBQXpmx1xFCtkX 0DmQ== X-Forwarded-Encrypted: i=1; AJvYcCU15yh50kneLAhbjuHAQ7t73mvujeiGT7g3dywFS0bHV1FdvX/o8oZsF37vbhohY1667Kj1GHH8x3o53iPccRrqdBexaey8s987zW2rxgNHAArbSvkCDbgUYhxXRvjRThMK8RuLkQv2MgwCtYaOIwyD X-Gm-Message-State: AOJu0YyVmYheeTOtsamcbdxa1Tw1sKcVaZy08Olfpy/abJ/k9pJYGHB9 S0cSWLvAMkStL/roDYR8ihpWGfUNPp+o9MbXNvYRV60dhGwO/rDV X-Google-Smtp-Source: AGHT+IEgNo+6duAt+aCgvMCkwCVQGht/gvaa7NRc/S63e47o7jVhTD+sGrZavu2g7pi1hRkGDj8wQw== X-Received: by 2002:a05:600c:3209:b0:424:7d42:fd7a with SMTP id 5b1f17b1804b1-4248cc2b71cmr6092835e9.15.1719098759079; Sat, 22 Jun 2024 16:25:59 -0700 (PDT) Received: from [192.168.1.90] (20014C4E18129200DEAEE2020304A5A2.dsl.pool.telekom.hu. [2001:4c4e:1812:9200:deae:e202:304:a5a2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d2190desm120301875e9.48.2024.06.22.16.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 16:25:58 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 01:25:53 +0200 Subject: [PATCH 3/4] dt-bindings: msm: dsi-phy-28nm: Document msm8937 compatible MIME-Version: 1.0 Message-Id: <20240623-dsi-v1-3-4ab560eb5bd9@gmail.com> References: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> In-Reply-To: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Mailer: b4 0.14.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The MSM8937 SoC uses a slightly different 28nm dsi phy. Add a new compatible for it. Signed-off-by: Barnabás Czémán Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml | 1 + Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml index 288d8babb76a..a55c2445d189 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml @@ -16,6 +16,7 @@ properties: compatible: enum: - qcom,dsi-phy-28nm-8226 + - qcom,dsi-phy-28nm-8937 - qcom,dsi-phy-28nm-8960 - qcom,dsi-phy-28nm-hpm - qcom,dsi-phy-28nm-hpm-fam-b diff --git a/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml index e4576546bf0d..7c6462caa442 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml @@ -126,6 +126,7 @@ patternProperties: - qcom,dsi-phy-14nm-8953 - qcom,dsi-phy-20nm - qcom,dsi-phy-28nm-8226 + - qcom,dsi-phy-28nm-8937 - qcom,dsi-phy-28nm-hpm - qcom,dsi-phy-28nm-hpm-fam-b - qcom,dsi-phy-28nm-lp From patchwork Sat Jun 22 23:25:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13708435 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF106C2D0D0 for ; Sat, 22 Jun 2024 23:26:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 98DE010E527; Sat, 22 Jun 2024 23:26:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KpOjV5YF"; dkim-atps=neutral Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5EDD110E518; Sat, 22 Jun 2024 23:26:02 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-364b2f92388so2112467f8f.2; Sat, 22 Jun 2024 16:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719098760; x=1719703560; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9HxxfvJUbEcWAuUqzp/z3HeawFFFv82S2A3aKWCvEsY=; b=KpOjV5YFMaDOSV0qzky0RoPSSy+X6Z7NWVFo0uWfHovRwyRP7w/MTBMMPXKxsGliav DkqZCa9tJUM5QaioDeyjQpdEUDw0cEhwGO/ybiFCP18N9lBBOgAJO1Tgzp3PFVWbR7IN qpHHVFrTtM1ZaHJqA2eIm9Ir44dQJ43TeWu3y1fkb+j5Ll89svA5ppeW3+fwfbhr7LEA sdKgJUVFVhIcydxotO4ByHzElntpJrHNAU0GtnPqZih/wgZdUx+zlL1uvvA6A7S3agQO hmOY5/6RVCWzJNKLnh/3uP9F5foAdZ2uZh24B0n12N3ipyyXhRjfWKgIDSn5KONQoqcN 1SQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719098760; x=1719703560; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9HxxfvJUbEcWAuUqzp/z3HeawFFFv82S2A3aKWCvEsY=; b=VblkJQkf1hZSff09owr6YLo8eobcPpSPLtuGfHouF/GR4PbEXnggj+quWQO28aPvCj YdHsd8k+Y9+++Xc4Km57JswY4vdKf5n82uZ4ns9M/P8ljYVFfRrOUg9rG6pOwm9PPbyc 6GcU8YEKJ/IJCLIrsoKRcEiC7bDiqXN+X0k987of419C4Z/F330ryDHR/8Ehv9WN54oU J2eqtUbK0EC0AFh0TE906FafuwrHq16a29S4tlz6yeouZc4qvAJ7kNBWwZ+jd5a6/zdP LVYl4ikpqhaLtk2FbuQ4MKJ2aEY9rd0lj6bOQxm8ah1JpBU2LjP0RLR+tLLGtyipNLzV 0jUg== X-Forwarded-Encrypted: i=1; AJvYcCXSXTeaBmJ4ZmUGx0UNajr5mrG/DdJqCsEqHMM5TlaxAjArT5MzR4Zdm1WoNVOhYjAylsTNv90hrZdn1pVYcoicEwUzdC0lKZVvHe3G/c09wNDplLl+B58oElAEUMESzKhCMZkuMO8sYalo0ZS7F8bC X-Gm-Message-State: AOJu0Ywq1gTYfDk0tL/EkYexsU/fJG3TQlQfJqEKJH1SViPn9OiCJ9Le 8QJVaDwEVJ6NPU635TgEeOw8J9RGulu+bxpWdm4D3ZJG3NOB5u+v X-Google-Smtp-Source: AGHT+IF+eQztVkaYxVTPniLTiN0Q2Wuwvs1PNUhkt+p/MWOEuEvm4JylLlMlCQKx4FGcg1T83BFCHA== X-Received: by 2002:a05:6000:2c2:b0:366:eb45:6d55 with SMTP id ffacd0b85a97d-366eb456ecemr217579f8f.49.1719098760243; Sat, 22 Jun 2024 16:26:00 -0700 (PDT) Received: from [192.168.1.90] (20014C4E18129200DEAEE2020304A5A2.dsl.pool.telekom.hu. [2001:4c4e:1812:9200:deae:e202:304:a5a2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d2190desm120301875e9.48.2024.06.22.16.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 16:25:59 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 01:25:54 +0200 Subject: [PATCH 4/4] drm/msm/dsi: Add phy configuration for MSM8937 MIME-Version: 1.0 Message-Id: <20240623-dsi-v1-4-4ab560eb5bd9@gmail.com> References: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> In-Reply-To: <20240623-dsi-v1-0-4ab560eb5bd9@gmail.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= , Daniil Titov X-Mailer: b4 0.14.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Daniil Titov Add phy configuration for 28nm dsi phy found on MSM8937 SoC. Only difference from existing msm8916 configuration is number of phy and io_start addresses. Signed-off-by: Daniil Titov Signed-off-by: Barnabás Czémán Reviewed-by: Dmitry Baryshkov --- 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_28nm.c | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c index 24a347fe2998..dd58bc0a49eb 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c @@ -545,6 +545,8 @@ static const struct of_device_id dsi_phy_dt_match[] = { .data = &dsi_phy_28nm_lp_cfgs }, { .compatible = "qcom,dsi-phy-28nm-8226", .data = &dsi_phy_28nm_8226_cfgs }, + { .compatible = "qcom,dsi-phy-28nm-8937", + .data = &dsi_phy_28nm_8937_cfgs }, #endif #ifdef CONFIG_DRM_MSM_DSI_20NM_PHY { .compatible = "qcom,dsi-phy-20nm", diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h index 5a5dc3faa971..a9b4eb2c0e8c 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h @@ -47,6 +47,7 @@ extern const struct msm_dsi_phy_cfg dsi_phy_28nm_hpm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_hpm_famb_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_lp_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8226_cfgs; +extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8937_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8960_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_14nm_cfgs; diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c index ceec7bb87bf1..3afc8b1c9bdf 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c @@ -917,3 +917,21 @@ const struct msm_dsi_phy_cfg dsi_phy_28nm_8226_cfgs = { .num_dsi_phy = 1, .quirks = DSI_PHY_28NM_QUIRK_PHY_8226, }; + +const struct msm_dsi_phy_cfg dsi_phy_28nm_8937_cfgs = { + .has_phy_regulator = true, + .regulator_data = dsi_phy_28nm_regulators, + .num_regulators = ARRAY_SIZE(dsi_phy_28nm_regulators), + .ops = { + .enable = dsi_28nm_phy_enable, + .disable = dsi_28nm_phy_disable, + .pll_init = dsi_pll_28nm_init, + .save_pll_state = dsi_28nm_pll_save_state, + .restore_pll_state = dsi_28nm_pll_restore_state, + }, + .min_pll_rate = VCO_MIN_RATE, + .max_pll_rate = VCO_MAX_RATE, + .io_start = { 0x1a94400, 0x1a96400 }, + .num_dsi_phy = 2, + .quirks = DSI_PHY_28NM_QUIRK_PHY_LP, +};