From patchwork Wed Nov 23 21:04:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 627949 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 E42B8C433FE for ; Wed, 23 Nov 2022 21:04:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238065AbiKWVEa (ORCPT ); Wed, 23 Nov 2022 16:04:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237484AbiKWVES (ORCPT ); Wed, 23 Nov 2022 16:04:18 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0101099EA4 for ; Wed, 23 Nov 2022 13:04:12 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id s8so29933311lfc.8 for ; Wed, 23 Nov 2022 13:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=i5Gb3UnijTffvUZ5061n1gC+IjflOu8fq8L5Sow654E=; b=qIxen24U8K5h1/Axh9/h7awJyD7b5j5GQd0C+SmQxJr37O/RwifoaXm5HjdRDKOpYi e3JI54ejKYU/+vrMyTjcGxeeapVHQlGWBUZP4diFzXIXsGeDGv+5DJ8W8PSGMXlOwpvH NCA92vBFQof17kWPch2d/Ji6EhRuGEtP3ja31j/9iY6w73K3o2lYWWX+0pHJ585Y13cv H3FUuV1yllXOu2NNVh5vqNf4BKTGFLqed5d+A3ErX+9kZdrd/pTxqahk4lLz4sIpBiYf gcO6pSObNBmolNfeAbGA2IZJh9GbesbxRoWf8uaeIuWHCkpUhCFRg513kHEBoQCI1rw9 mYeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i5Gb3UnijTffvUZ5061n1gC+IjflOu8fq8L5Sow654E=; b=UVW/MzgehTQ84gdEMuuCGOG4kfAVF7useSonP/EQ07+GDi32wCqmfNuFS33iPCptCw csFyI47aUN+gM1fBs3sHjMq85yOncU0rxjFDrQbVj2eGtVJrEU+fezW7OFw2a+5lJUbr +ZlorAxUtP6A60UPV9w+MMv1lQfoWIzUw60P2BGEAbl4GV8miN93d4r6skoyjXmNbvxC VvfP96GRnNDuVqeQYP2CIUCXsCE5CHZn8paNIlHKyYjKYgJ8YkfkOw9/GCT6st60vEOE ibyu9T0bB6r27ZI/rUjInQGcx3oUGlwKloyS+YzsxcyPrm7WqQ7TzZPPKpFfmNfZHVtN h8iA== X-Gm-Message-State: ANoB5pm4PB0TFHhWfo9dVQ72ZBT9WdCAF0mazKWzAR75lYZbgvgHYgvO ofgFetmJX9krKOdu1JAF5zNkCQ== X-Google-Smtp-Source: AA0mqf5jBg7VOIi+svpan2pzqx22MI42d9wHkZtnb2p51nuo9gB9boIGfF5ybyd7oJIRdB6jwawJlw== X-Received: by 2002:a19:4f14:0:b0:4b4:b20c:4b7 with SMTP id d20-20020a194f14000000b004b4b20c04b7mr4503069lfb.201.1669237450335; Wed, 23 Nov 2022 13:04:10 -0800 (PST) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id c3-20020ac25f63000000b004b177293a8dsm3009913lfc.210.2022.11.23.13.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 13:04:09 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Vinod Koul , Konrad Dybcio Subject: [PATCH v5 07/10] drm/msm/dsi: add support for DSI 2.6.0 Date: Wed, 23 Nov 2022 23:04:00 +0200 Message-Id: <20221123210403.3593366-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221123210403.3593366-1-dmitry.baryshkov@linaro.org> References: <20221123210403.3593366-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for DSI 2.6.0 (block used on sm8450). Tested-by: Vinod Koul Reviewed-by: Vinod Koul Reviewed-by: Konrad Dybcio Reviewed-by: Abhinav Kumar Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi_cfg.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_cfg.c b/drivers/gpu/drm/msm/dsi/dsi_cfg.c index 7e97c239ed48..59a4cc95a251 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_cfg.c +++ b/drivers/gpu/drm/msm/dsi/dsi_cfg.c @@ -300,6 +300,8 @@ static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = { &sc7180_dsi_cfg, &msm_dsi_6g_v2_host_ops}, {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_5_0, &sc7280_dsi_cfg, &msm_dsi_6g_v2_host_ops}, + {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_6_0, + &sdm845_dsi_cfg, &msm_dsi_6g_v2_host_ops}, }; const struct msm_dsi_cfg_handler *msm_dsi_cfg_get(u32 major, u32 minor) diff --git a/drivers/gpu/drm/msm/dsi/dsi_cfg.h b/drivers/gpu/drm/msm/dsi/dsi_cfg.h index 8f04e685a74e..95957fab499d 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_cfg.h +++ b/drivers/gpu/drm/msm/dsi/dsi_cfg.h @@ -25,6 +25,7 @@ #define MSM_DSI_6G_VER_MINOR_V2_4_0 0x20040000 #define MSM_DSI_6G_VER_MINOR_V2_4_1 0x20040001 #define MSM_DSI_6G_VER_MINOR_V2_5_0 0x20050000 +#define MSM_DSI_6G_VER_MINOR_V2_6_0 0x20060000 #define MSM_DSI_V2_VER_MINOR_8064 0x0