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: 13708428 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21ADD3FBA7; Sat, 22 Jun 2024 23:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098759; cv=none; b=fGcyJFcR6oFj78qQonYJmVgCAfyTBh2ooGJKN+d/3Lfsl/psguRd6mX/r8oiBVoFvGDaNQjgriOxh5XpRoPtvXekfUxp+jHYIjjIOUV6mipk5gsyDlfBUt1SurSAwmgsfIHpCqULwgQ6GFovWcuNc5VjBAmaN3DnJG4MRkQXG78= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098759; c=relaxed/simple; bh=2Xrp4BfEH7oom8u4Kb44md8JG1fUZgQoZXMJPeOIVuk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dnXP2oGzAC7YQsfgNDlRAZB9SWDNKvJAnQHtDOePb5JSEtPeLm9p61G8uTrHl5iJgrS8pWnPwiFEVN58DRhFrnq8kHJja+tdqIRzdeSqY3yDkbr0VVOMGWltUPurPdRalDpN2DCVTM1BCD74M6Z0+oTZFBwPAIQK+EE4Oe4IuEs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TOWyIiOw; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TOWyIiOw" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-42121d27861so27796475e9.0; Sat, 22 Jun 2024 16:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719098756; x=1719703556; darn=vger.kernel.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=TOWyIiOw9Ws6fytGuEUAGZO2BhNTBXKJovQtvpX39D1U10CNVqLB0Y6Fi4y8H4RMYv KQ+qHLvGj0lGWKvwpGCyjYBioREn6P24MzENm2HgCtSp78X6ZXZM9dV2Wl+wfudgApPO yGGyO4u1tOe3UCRAsUhAaqX8EQ6eidMvATxW/XwujLGywDTEIOhwhJUVpCEn6CLIe8qD sCxGiKKJuH2uevy+c/aCchSELTyjg6BFDVMrSQ9z5zTJTbw+67T2tIBIrXB8kViHAI6L lgBpTz5ZfL3WCemGMesHeUqAET+VgRdMJ9YiWG5tpd2gNknPzJUOf/88BRDx7DADxvzj cKiw== 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=sWwi3J+1ls4hL06IF8e4og+xuTZwAa6N1lEIPCJ9cVQ4Csq7VJSGod7RsW6ba6qlWT yw6sQewzSfAh7wzDnWJp1dK4MnqK61Y/rfXt0fYRkAl/3lwIheDr+vFN1lX2EeEn+5QI eRDGkNtkUnY7LeeeZGzfm28nRevgGtxLwxV7G+yayaLXGONOTuDL3ymKUiRCfSxH8+vd 9uuLwUbaR0+YpZ/+AMYlnI0uhfwVBqdvfRTqtKbi60KhCN2XrzaZ5NdR6krHaVyMjow8 SPAfUxCXpz1cfaZTJ4NQEgjvfh+m8s7U2Ju1m0+jjZvozrrxIPmm8zt00urkQbC+jwNe Ns2Q== X-Forwarded-Encrypted: i=1; AJvYcCU2BqGmMQsjYc2lxeLkK77b2kdT/7wUjg63b1FsKgOS9tT77sJYRoGUa4TMgfGP+4F19UBR6cWdzlqlv3HDILvMDeEsAD3YktC5V7R3HIkw4oGxsmnVQrLkOGKq/SfUNVURkkQkmQhb2Q== X-Gm-Message-State: AOJu0Yyub/ZDSj0o3pRCZ/z1jrHyEOmWi09xjv7XnpN1coMSX16wEAab UuHmK96hpKv6IOdTuwgLeyxchiWrl40YdZQRVcOmXI0+bbu1WPP1 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13708429 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A72780056; Sat, 22 Jun 2024 23:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098761; cv=none; b=cfjCH8XvrcVdwJM9OIfHRxUFfGqGinl81lhHhCEBoxtrhWvtuamsGqZ+zAWsGvZm1o1fSz2XK52cK5/aBt6bJyt9ibw5obEVuhI4swyTd39+v/9D07YdWnV+GRj5vQyXpCd6AT9oIwiXyhc0ZovkqL0z9gGWXmOoMF4e87+iVZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098761; c=relaxed/simple; bh=aW1EcPn7yp5cJwTqnBeh0dPDHZGWKayE/IkQrDcuX0Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DyK+stfiOCEcN0XgkbsvqvPDuvDH7dGm2SPeh7i2tRTZsV3BOeahlbDCDKmbU0HtGqAIVWYsUpl5rxDMe15uXv1bsjhFTRTl+6fVg2uz8p+rHYTgxnvY21XpgAwBkqGIBeBYInXOje0HnUQilloHGpwUlsCIWMIOHk1EnluZciI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gl9Q7sqo; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gl9Q7sqo" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42278f3aea4so27700005e9.1; 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=vger.kernel.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=gl9Q7sqo7aCAjPQbnBlonNs6IBrYjm682DsMmgCHofaiGrBkRRIu+3ALFWSwrHkZwi 07YaOBwHz/H9DOFW1WJ+P7LAmdKwLUTJpW7XEhdP2m19jH0ZyFhu3nnvXGOZMs1X5Fvs weIqZnonWUoZIMZuKkPiG5ovGeWhvH9B5G6qDo6vtQZsp2wqJ9ZLEbGwB+jX+gjSTrUU jEHrs1DErolrh02V4SpiUeWSs3XkIBDhytC+DJlwR0653hkByJ+PgchFTQtnfpgt2BA+ m4Q1Z5pjLF42n/qRkQz4X7dCMRY1de8RufIU9prwgb+YlAsPvi+H/0C9ppBPgF0P9mrb 2oFA== 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=I2V4111of6eyP3wOXfAN062x65V8GUGph0o3CCxu0b2e9FWRPWCputd98kEBMWdnPH HKKzm0mXv3kwoKE2HB5rRuXNCfT01d67cTceDY0+eU+B/cW5GWSagXb9U+swkzkiUyuL ctAkWECF8TAbqVM3xEsiPrZysRfnjsd223I/LqON2pMnpfjs81++pmxZJp0ZIW+y0zNw 17bP/u0mCAqOSchRbxvMsEJPNOoHVuPqOD0UxiCtPTwYGtHhgYvrwTehcHqA6gmNu5CQ PhjXpACzh8Nk0/9xGQtfXLZlszo1glOnCAnz8Dr31zkCMrgcLDMA9xkDGWGHB3vhKfy1 OX8g== X-Forwarded-Encrypted: i=1; AJvYcCWB/dUhlgWh9FHpmwXJfwCurYhZH7piMqEhvUCkYxb0W9v00zV6HpqRvmFxj6nONV9Zq/oGpSCZlC3D3MFuwX5Y0IQgPVm0sTUgXEe7M5p9EEQH7TTwqu635yQ1NWQDrYUTl+akDj1ayA== X-Gm-Message-State: AOJu0YzKl2SRW8bB0o8UJLh0QBcwYG65qdeeBSapP/3vOZn+gIRJE699 J8FHVsf7sc5X7wLpjkSJ09NsOLIrjaG/qV4HTUiYJYxo4RpyhvNs5V2zeDGdcjI= 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13708430 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9982C82893; Sat, 22 Jun 2024 23:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098762; cv=none; b=UFPfWZoBw/ucmuyW6aT8mrqM53FLyqgq6ZOd2s7mR1FrM0Eg6O7UbPVgLL3d1qjbxkGv7T1Dvd3OwCerrFOliNu7sr6pyNxJd4ugLv+Fgi/y/I+Z2hprUqB98iMsfFa1lsfl1X7ppG+QMh/EkIRwN/KhN+LhFYHB94vfFoMdtIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098762; c=relaxed/simple; bh=P74oyG550yEgHa7Z36TsUiL0BnRrPgs0SRzC/Z5xsKc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IalsxvHL5dPxZ91N8bDTl6zR/K1QtQrKBpnP0GCJ3SnZUFNhsw08mcsFaFHKAUzE2MdfwXxA2OQTOpUNA4l6npAOx3JVsSqTIce4mvf+d+z2mQ6d+radE6TGJQViH84EzmR4WAt552lGMi46WAceJzIbqz1c+K5vgMGWGCHU7Q4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ihypLwsP; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ihypLwsP" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-424798859dfso27160235e9.0; 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=vger.kernel.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=ihypLwsPHGdH/6AbNBhTexgCYugydtWPsUN3GTkKVnCHxQ6vv15sLtK0RxuVVyo6UP iqBln6VZ18YxdMgnScKHlUbVDfiMQxsTwVWUqQJ81a7a8bTfWYJtHhb1/6hSwAjW3xd9 Z+p9GplrKDoj6+XKCHnkklwa8/cngcNHYKXyXFfo82/qOk4mlVxT0dbbzcnhLhFSFoDl CNma5CmrWnz+QiA8O1QLZTqNqNzZu/q8Ez6R6fLkweBQSBRsbLt5Kg+09i3NHrveNIc6 vCrAhX+GrAnbBREaotHbsI4bwPP2A7ZxCNfKQTRTigjquMUhxwWJrJrAEdW+owksm0lW PUAQ== 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=HWpnyPpy/bNnS3TOEC2Us5oI4VNY8Np/eLQZZFM/rdg+SP83QLM81tztzXs4fkrIX2 tQOG/7bxWYcHmZKldz3zm+bh77xCSRqdgOcbqZMw9N4rCXtxUXFBtiK9ATssW6+TgqaK Gmz6jz09xbc55Xm5tiSItjadTMbHTmyOh+9Ajc+x4bD6oB9bebZLlNww7STNUZc2VnPQ 7p3Ji4hbM8MZl8wGASi+gc//BcH5YIuzgtZhWP/81alWpmUuXh/MLWNlk/nVg08R61X5 C7G4KuKAV+kdlrlP6xuwzFzmFfoJilAnEoMwM5Cu6pMf0JSTECS5BskncHZGMrnHVhQH zAtQ== X-Forwarded-Encrypted: i=1; AJvYcCWKvNmLBaboXdCMpMjIqATATwADMwAp38wm5QCkJ/0MlQti9SIBbs2sqPhRj+a8AIsaSjv1fMfAiyzes2UjEJ78WM5FPNw6ANowv4zw+jdM6yzwJ0YThaZkkPG9nNmpLQDhQXvhwNXGQA== X-Gm-Message-State: AOJu0YzlHsy/Ff22nPLHF1+Wshxt9LRa2S3KbcBac8jHNFbVQTM5E40d X7vLqgNKL0gWUhY1SXuhYT4cbdd+vBp1EeYcE+wNYQDqNy/GSSPl 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13708431 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D713684A24; Sat, 22 Jun 2024 23:26:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098763; cv=none; b=KgYQ6242uqJo9deFKppxrqO38so0dmhEkYrHub9FzXKbKXYYADroJX4J3aUDoOYxa7l++9Kiv0FflkMYlolUaUyTtwTx/UNGLPRUsx5ywyEPciff6I61gKAcstBgb+qSqkdow9LZAWxm/YdD4UhvJ3kI2Oqkx84uJqWLWSFPyvs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719098763; c=relaxed/simple; bh=3ByRKPZCxRzOwxwLlWyit3OOc6nnUrkfnIT8Zo6676A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VxbLB4ES0iw8g95jJxXJ4H/QWJ/ytiUq0aCwIdPDW3JtFrmWLMu3/eeOr83fZa97wvr531l8COkIqpFHclPVqcVSCsMEiQ7EDhVo9EwcYRM2TGQNFkCR5my8FTISc9M7N1sagShcTCghUTijiG/wzmIEL4R6jlH4uSZ0kBcM4Vg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O+xVE3pH; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O+xVE3pH" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-36226e98370so1916760f8f.3; Sat, 22 Jun 2024 16:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719098760; x=1719703560; darn=vger.kernel.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=O+xVE3pHpMTcjuTYrrxs2pwtWs5tRRch3fl5l39j7Pyr7gnxO4lcPl4d1UaLbpoihr 60kZXVFsbIRIZgzxWbUZsB1ev1ZbbStvkdvB31Oi2er53gQSL4Emu3wunwjtdcFDGxWp PWMeROs1w0vgkC/ul9FaUefVbPYYqIgWYZu/erHlsj47quGrfFjrQ5kS2E7LZeoWhOf/ Wsl6vXE9ctRGnhqs/WBajljGtFVwow5gdsP0usVHUxOy+axmVycVSPrq9g8kDJdWfswc xk7Y1QU9uTSHEPI29+pTR7QjtIyxQwmURbTsM4n88EhLnAc4e/2/tunEmymuwjdVAf9d lP2A== 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=Pw071lcD8fWJESmCqntzTe5g4gwlRoQf9q9TAzvc4Y9J2wbw1/dvUntmU9CwEe8AhY FcJSRc7YOwdLUOzPzG3bft+/c5CbcoNcYz/1Dx87g3F9uh9NVAxauc6LYooPEthKM6aU uYcs7dsSuzedYtGnS6of+RflLGvgGOe/b2Ch5MtwDhT+dU3XmaEYTMhyK7SVMutpHeTQ VWvlngs8oBspuZZ19/78qeyDzDZ1gMQVOMq5nEdTSAs6B9WiXbkabtqlhfx7ecl/vRKJ dZ9LPUh1Gmnyh6PlLTf4v/KkXYnSmWnuwP3FTn7opQTKLflHMAHV+WBfPNUCq+fdl/Eh bD7w== X-Forwarded-Encrypted: i=1; AJvYcCUjpqPrVcQxJiXzcu3PjXj0x/8ZxdQlj0tYgo9EQkCPZ7r/c9v7yIGehGOhSRTfRTrk8ojZ+Er7mWZND9oAYAD15bTCAB7KV98UC4NMb55fbGYiVooad8jCqS8J78HpfUL6U5iHOnRc6A== X-Gm-Message-State: AOJu0YwxkR61UxUUJ3gjLYwZ3PiM6OeNQ+H8LK7ek33XtIynYQLwzM6k nhyugvnsR4EI5NgxiS4oz46ke/eDv67E4yhI3Qq7fumqWZfogLgm 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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, +};