From patchwork Sun Jun 23 20:30:36 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: 13708748 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 B964FC27C4F for ; Sun, 23 Jun 2024 20:30:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C97010E21F; Sun, 23 Jun 2024 20:30:53 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="T9VrSqC9"; dkim-atps=neutral Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id A927310E110; Sun, 23 Jun 2024 20:30:44 +0000 (UTC) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-366edce6493so351606f8f.3; Sun, 23 Jun 2024 13:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719174643; x=1719779443; 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=8/H5C81Y675DpCKTHyrBPsjadWIIyfe3/F8KGCSH21I=; b=T9VrSqC9RxpRb57k6icRgcr408hhNfPROZDJkHBkt53dtiBp1u431J4P6Ybmpq9aA0 B+VfXcRsijBnRjXb6Aao8sN6pMBtlTCT29/cH6B9yIyfuvgb4GEOV04sdP444c/DOfok VYwOjYx3C7UGi9BuxqME6BwhX9RHoLJ6KjSw5GDFHKK0Qq3foqyOqZCMREG8Y8OkkxaU fWAnZdyChKBbn8miSwSZTj8zXv8poJulveYui+yox/UWo6YIyp1CbD6kzaOBJLHP4wjL bZoEU+a0YNBrXXLDQYxWkK43vksrTdBWTiXBXGA//swQ/3iQGwR40ue50a2G1PaTVP/Y HjuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719174643; x=1719779443; 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=8/H5C81Y675DpCKTHyrBPsjadWIIyfe3/F8KGCSH21I=; b=jYklhxihfG2nCw4B9XWOtfjAKNjC+bVea9Db/L7Xwibm2X/g7lhKAr6F8jxEFjYf/z KhHmxA4b8bmqSFCmi6oJLrRwdV57OxiOhNXMehLz/G6l8CGf0b16ltnTxvLHWklC8NOp SWp6N5P9hsK0k2hXQmTNMq5VZK4mxHIzMNr6hzrOA/daj7mCOa2nfsvEZbwKZIGW/gpQ bqOQiQ/ckS39ZmY7WSGRlpURvM5zw75w9Uyb1rZRuh0aG8eWT0IZuctePiLQqudO9ziT KK2gLvc+BL/CMHzjxPqeOXELfPf0P810IbsW7rjI9JPPyj1rojdXcaT9lQdS1Df70Y7r PO9g== X-Forwarded-Encrypted: i=1; AJvYcCWUcj19d7f6xfjuwmUGCk5M+rXLo0qVu5OUBUc5CS0lkpeKwpIuGz+XCzDp2BqyUejS4rGn7AV/E92E0FJrjKQET+mbOu9iDjYeo2FPQgKP7QqksB+hyFOz/pz9TIS/6GCpAhzv7snXnU/hZaMCTkC4 X-Gm-Message-State: AOJu0YzotJRQbm2Ar5mxdkwUZnRDSNmqWVWQnqNlucyxzx7N/7E8leUv gbjfbTvIMuDNm3hBcCkmNUTJfzpM5FfQ1sxLKqVfmtNk4ZUNdmiCfxhq9u7zvVY= X-Google-Smtp-Source: AGHT+IEwjjtcQORbdGpX3Q7URvaTjVDJl8ms7m20O6UywXTO6HIij4s86Eygram2ppZwdFy1YumRoA== X-Received: by 2002:a5d:47ae:0:b0:366:efa2:f2f7 with SMTP id ffacd0b85a97d-366efa2f485mr915943f8f.1.1719174642725; Sun, 23 Jun 2024 13:30:42 -0700 (PDT) Received: from [192.168.1.130] (BC2492F3.dsl.pool.telekom.hu. [188.36.146.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366389b8ad2sm8088599f8f.33.2024.06.23.13.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:30:42 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 22:30:36 +0200 Subject: [PATCH v2 1/4] dt-bindings: display/msm: qcom, mdp5: Add msm8937 compatible MIME-Version: 1.0 Message-Id: <20240623-dsi-v2-1-a0ca70fb4846@gmail.com> References: <20240623-dsi-v2-0-a0ca70fb4846@gmail.com> In-Reply-To: <20240623-dsi-v2-0-a0ca70fb4846@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?= , phone-devel@vger.kernel.org, Krzysztof Kozlowski 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Barnabás Czémán --- 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 Sun Jun 23 20:30:37 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: 13708749 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 03DDAC2BA18 for ; Sun, 23 Jun 2024 20:30:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7611F10E30E; Sun, 23 Jun 2024 20:30:54 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="E3otxra+"; dkim-atps=neutral Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id DD5B710E011; Sun, 23 Jun 2024 20:30:45 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-35f090093d8so2541270f8f.0; Sun, 23 Jun 2024 13:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719174644; x=1719779444; 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=WcQwj4t9zR+7uYrgBkNTvxKkblY1AhgJTZPnMnuWT20=; b=E3otxra+Mo93CE3r9YZo+N8t1+F8uyrcSp/LCM9Z4Ajszo+7TY4D5O12ifcfrQ/YvT jVLNs7Z7p2fAKq6Amy/0yd0ZL37cA19wo8JNXN4lsg0aD52l6wCHoTY/Kp4YGdtbM9kp PJrM+jewTitiUyCkwYGV3Wcf0fJi1+Jq9GihsLLCJ9JQapoHJbT5Hppg0H8g0uCMy1Zo EYCek4csLRPMVz+Y/9ilFAyox++GzgJkxYMXsIsFA6rvKNlJPXBzNS+zhtT0IUHxTwi5 ZG0S7cZT01hRxfjeQI5WB2yGGol872z+EvmFlzb8QUSN4Bn7LTWP66euctAmZrgMgjyP /Elg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719174644; x=1719779444; 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=WcQwj4t9zR+7uYrgBkNTvxKkblY1AhgJTZPnMnuWT20=; b=jXsYd0Oi7lxVflSe93O6pCCJldywxBNjz0mYFBGuoiz74799AEhcY76nBMkRdVG/Eh 4LB8cXI4pEk8ASuPr3IFqnUosrD/3/7ugfqNnzy5vR7Lb5PaACk9hHAio60cZYX/Q6OW aVmlRLD9Vg0M2UXPJpBZQ2vWd/vUp8AGVP1XS18x68c7GTqxw+Bd4CtjRx8VgBu53o1f mlxIIo1adHxNOpD1KE1B5xHdoQx7yaogmolGmilbXK3AHMaQrFut2h9FHf+BY2sbAS7u AaRsMjWtEXg7kejqC7HVQnbZ484NPMA00Ty3DoqCD1c0mMzsWDpq7VRsm4+UxDZzIbR1 Irjg== X-Forwarded-Encrypted: i=1; AJvYcCW7sNoqamcr0Qs6ZXq95sZ/jePurnIN1GCueK7QHF5OogQLC/Xz826VW4vy7GLu1cpIrqbiWSXSqeco1Ah3wAPUhi6eFYvIVaVkEKhl+EbL29Js5NRsrwnyve9BdebLq0iQtJR7Bi6ej7kO8mwLVIa8 X-Gm-Message-State: AOJu0YzdPMF7CRHmqEpedr5ZGitSejHVx+XxUQNh6qFRencUWkKIee16 nMersv5WuMTW51yypt1MujudGmpAkSJC3pTpjITYORV7pNx+eWTFTg0Uw+xQav8= X-Google-Smtp-Source: AGHT+IGQquz5k2BVLGaucgi4cKq8o9F9G60dY1wEBUIUTqJaF6oBnYohr7FR/h/6RtTQnKBlHZ0zVA== X-Received: by 2002:a05:6000:1f83:b0:366:f496:c0c2 with SMTP id ffacd0b85a97d-366f496c101mr220821f8f.6.1719174644185; Sun, 23 Jun 2024 13:30:44 -0700 (PDT) Received: from [192.168.1.130] (BC2492F3.dsl.pool.telekom.hu. [188.36.146.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366389b8ad2sm8088599f8f.33.2024.06.23.13.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:30:43 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 22:30:37 +0200 Subject: [PATCH v2 2/4] drm/msm/mdp5: Add MDP5 configuration for MSM8937 MIME-Version: 1.0 Message-Id: <20240623-dsi-v2-2-a0ca70fb4846@gmail.com> References: <20240623-dsi-v2-0-a0ca70fb4846@gmail.com> In-Reply-To: <20240623-dsi-v2-0-a0ca70fb4846@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?= , phone-devel@vger.kernel.org, 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 Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 88 ++++++++++++++++++++++++++++++++ 1 file changed, 88 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..fac8e276da52 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c @@ -1011,6 +1011,93 @@ 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, + }, + .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 +1412,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 Sun Jun 23 20:30:38 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: 13708750 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 F0864C2BD05 for ; Sun, 23 Jun 2024 20:30:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C839C10E011; Sun, 23 Jun 2024 20:30:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="K+qZk9yu"; 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 7179810E1C6; Sun, 23 Jun 2024 20:30:47 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4218180a122so27711745e9.1; Sun, 23 Jun 2024 13:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719174646; x=1719779446; 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=LSLZRfc59PgjAu3IAfb10/Y7qX+44+MtwIvZ2wCAgyw=; b=K+qZk9yu5UxfK1mjT+iVoiA3jABVhFlHZ4oJC9pJRAqStBcNT86D46dpUDZLpu9TIo hIQTMN6ohXCIGXFO/lLkuRh6LuEZsfucd5OBl1yyYNpCByKF4LAmO4RIGuhCi2wLVbxv UG42uPZ783RSE8er4MeoqcigUJ/58hZsCx/ZzaNMF1u2mLz62+f3l3oeD0ZaJHBOOvks tWJHGC1GdziXO32VZda82RmiKPKs4lVD0lA1TUh3yLbjpH5vm9t32abD0e1dIQQ7FMqF R2/DYvzzi8p6gPa+370j0RzUphn3CtsX6qGzkslil00iwVXsB0rqVfPjx5LzXzNmB/xv 3/zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719174646; x=1719779446; 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=LSLZRfc59PgjAu3IAfb10/Y7qX+44+MtwIvZ2wCAgyw=; b=DaKcDj4ccpF8vkTQ9909yzWvuRKyxh3RtWNpY87JtDL1f0A+M3AXXyf5KH1JMeg+vT vez/dNWjzHl2gmn/IG8sVTvBsq8AtTlmd8QIjXrBpKS8fvCpamPTwqJmysDC0ww6lVQe rOjC9HPoTwtFYgX7MgocVBz+QtPDAKb1Y/cbtbTlFXoatpgmo6RvQ1+Y++7AXtpiKNXv fCvdk0ijtKQZZJcqEWZwtKKhK2Hmafsd0zlIhGQVjVcxzxF3bPztfnGPRj36xfLU6Z3e YkQGeEn7qgQe7xg4BeOXAIkdTfeUchN0YnOrJK4jibMJZUg35XIjGbaf5iHHsnDp4Mm+ Mxcw== X-Forwarded-Encrypted: i=1; AJvYcCVcMfN1PR7n7rrw39vomo4NfQR0wpG1qOuHtk/ysj24EZPetDnGJI+HK3Rm2WDr1Hoqo5sTW5YiJRppnJeVSUyTdfanMNocowXcASl4jPH/CrNPMu1nJa9BACCDh8oVzCN7e4AUWB7H2ovsIZ06PkNk X-Gm-Message-State: AOJu0Yy5q3t+J/ojSRcvc5dcqPQhC6s9neGj+BT87qORa11xfXSoLm2i GypTmWhWctMJ0jy5Oqj+zXgIR4MJNmGockcqoUOsbHZkipKPAs0DyqQ9FcADURQ= X-Google-Smtp-Source: AGHT+IFQYzva89WBUwkGC27QsYMXMAq2H+qOvshVT5ndxoilTZ70p8PAYKz5+yc8iBxI+YDaJVklkA== X-Received: by 2002:a5d:64c4:0:b0:366:f627:37 with SMTP id ffacd0b85a97d-366f6270197mr171245f8f.53.1719174645659; Sun, 23 Jun 2024 13:30:45 -0700 (PDT) Received: from [192.168.1.130] (BC2492F3.dsl.pool.telekom.hu. [188.36.146.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366389b8ad2sm8088599f8f.33.2024.06.23.13.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:30:45 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 22:30:38 +0200 Subject: [PATCH v2 3/4] dt-bindings: msm: dsi-phy-28nm: Document msm8937 compatible MIME-Version: 1.0 Message-Id: <20240623-dsi-v2-3-a0ca70fb4846@gmail.com> References: <20240623-dsi-v2-0-a0ca70fb4846@gmail.com> In-Reply-To: <20240623-dsi-v2-0-a0ca70fb4846@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?= , phone-devel@vger.kernel.org, Krzysztof Kozlowski 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Barnabás Czémán --- 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 Sun Jun 23 20:30:39 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: 13708751 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 9E232C27C4F for ; Sun, 23 Jun 2024 20:31:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FD3710E316; Sun, 23 Jun 2024 20:31:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OUhFtakV"; dkim-atps=neutral Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id AB05F10E011; Sun, 23 Jun 2024 20:30:48 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-362f62ae4c5so2048318f8f.1; Sun, 23 Jun 2024 13:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719174647; x=1719779447; 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=5IThLSZxCkprktvpOp0R1xO5qT7TqcAXcmsbOx04wBw=; b=OUhFtakVuQq64xlki5bAT9HAZYAfvSjUlbnqc62YPEo7DO7au9nDfGSJjJWN7EnJa6 uBqphvtIVsztiyeOGbmp2LZU2byLXv08Um+NZTIgUbjiwEa2foGKJCSwKCbVO+/BsD6b v9bGQBlT9fzGS1EqglU47NQKcbPASQrdHqyO4OYSY+/bb3MYazzHWDfd8iJLYSi9yNlC t2b3gzJhuHfx4NThv8u/0oszX2RkfsQiLD1bRB2NfOXF5GYV+HPfzi9TVffUAKFp/CGw LuNMH76PonBVhk0z1ML+qPMExRqzfa6sRzuJmRz+kLOaKXpiDzXlH7zaXxXqP8lORkQ5 79Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719174647; x=1719779447; 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=5IThLSZxCkprktvpOp0R1xO5qT7TqcAXcmsbOx04wBw=; b=jnxq9bL2Ddf93MNYHhcxHjQkcWQO27/DgaN/vrCSpanW7cvQcAngff7q6gt47QPUN0 M9K+hHnnDYVJQZ7KQIlz4s82lYY2ViQREospIgUYzx4ODk4a5iYg3P4XuepmuC2AyJcR 1j5BdQ61Y7w0EilKw5vyVe7FesUdBsbEuKj2aXbx7cmDdC610+E0sF5f3edo0D/i0wXX AU/L+tQGoIc6o1kFwY/AL/Oj7hWOhFeDa3985C+6x9qHuFWNRmdOB+k9jZDG8gvmNmPd A3DP7pzf9pTpII3k26Ai0vXhA1GFN7SCPwaYMRj6Y8z3KqdJr2gWaddGIkCx15O0kvqJ CWUA== X-Forwarded-Encrypted: i=1; AJvYcCXBWJbNfFQ44Y1ZiRGJ5z3pbOhwiHL+sDj00YuCbUNZWTzjAu5xYQUV62vr77dbQTXDosGceXTd/eI1j/WwcYuaz1529rorKZhrRScBcpUK4hlC9fT7iGOb2BAR7+ssumOiCw70NCuek85uHDiIFPA0 X-Gm-Message-State: AOJu0YyZOolQ7Xgk7V+R89cFkwjG9StWbftmmiKlp9Ew39B4tMlYwQm7 d9zyB3Z7ASSJi3be2APffRwa3Qb0fH/zOc+agZNBmLeIIYnIKDsw4yt3kAdUMxE= X-Google-Smtp-Source: AGHT+IEtxSf0FqRKKf6O5su5WO1aK1An8BcYpxm9JuMgBzotWwroMshjUUv72Y3gADnWy0VLBDhhqg== X-Received: by 2002:adf:efcf:0:b0:360:7c76:dd5 with SMTP id ffacd0b85a97d-366e3677026mr3662823f8f.14.1719174647089; Sun, 23 Jun 2024 13:30:47 -0700 (PDT) Received: from [192.168.1.130] (BC2492F3.dsl.pool.telekom.hu. [188.36.146.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366389b8ad2sm8088599f8f.33.2024.06.23.13.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:30:46 -0700 (PDT) From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sun, 23 Jun 2024 22:30:39 +0200 Subject: [PATCH v2 4/4] drm/msm/dsi: Add phy configuration for MSM8937 MIME-Version: 1.0 Message-Id: <20240623-dsi-v2-4-a0ca70fb4846@gmail.com> References: <20240623-dsi-v2-0-a0ca70fb4846@gmail.com> In-Reply-To: <20240623-dsi-v2-0-a0ca70fb4846@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?= , phone-devel@vger.kernel.org, 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 Reviewed-by: Dmitry Baryshkov Signed-off-by: Barnabás Czémán --- 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, +};