Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp657886lqp; Wed, 12 Jun 2024 12:07:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8JGV5iTf0CE6BpRD2GfujOzvxhXpqSrQBlMhrV/QhLbL6dYZsPACEx0zgMSIeA76C0VtsRS7daTCmoyIAybmtubm26+Zux8UnO9mXCw== X-Google-Smtp-Source: AGHT+IG//bo3KP3rMvHskbkv2/cP6Xdam/jgTXeiZ0HWTsiHYZ2fuUIbCcdF3sfGxt0ScJ7XstOF X-Received: by 2002:a17:902:c942:b0:1f6:f0be:4099 with SMTP id d9443c01a7336-1f84dfcf629mr9036395ad.11.1718219269207; Wed, 12 Jun 2024 12:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718219269; cv=pass; d=google.com; s=arc-20160816; b=cM+ILbe3tZ0ozzS6vv9J5yHsBqh1iDn1L3no0NMY+MFgfY/gjt8zJNYQgprXnZlKwX jRrf5Nzr+JFTQZZyXmmB3Oq3deD8lNmTMSyo5AQi3eKCgYegEbV7Dlzrl5FpPIQIY82F a3OCULvB+opEsz1ZYQb4ZJKg4YjXQI1FyGkbH/EvUBeEY+pYwWdBXqTFNgmNhiIp7/qj f1BkE+gb8rFywBx8zuKmX7XfuL4pDZP+YUbjPsFWB/TefCeUWJS430v0NvsCIo3JEuy7 IEklKdMTViwH7SaWOmJ9w5dVCp/LgoF9yb+Kt1jg8l4+6gJj+v8QyW7vDTI6FPjwiQIK gx+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=eRpIh3MFWWqDMzGpIXCuBn+ib8JMfonjDSqndcF6t/A=; fh=UV+q5xOpvD1P7608hDwRvu9l0s8/P3l5UiARRzBDWF8=; b=D3cpMIezugzbBVO5bp+RjQIi8xdiXxLzdjRuslzBlrTGOxhHYfTn3wDgrIm3USVzj9 ouuwXXC4nvjGJ1knA5HGXLdedQDeX8yFNWcDtAl4LqR5mMJYWIp80wNdMNjNeu5WhKxb AXRKnc13cG6cHm4KqYtzKNkv4+9pVwGK3BrckHEZw2VcRInikVV6ZoO28kH28NvAXMCg 0+ZP+Yhp78JvILbRV0RY8CYAvosmqFMyh05Yv2pBqHFOlC2mCWu4yJtgPk09DfeFMClf 9ZhDZ74NSHR7l255e9IRc1oHzdcMRt7gE2t4fP9zhFkkm58c5bbCWxk8KR1GHD35/uSY G2oA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@jiaxyga.com header.s=mailru header.b=pa3yICGS; arc=pass (i=1 spf=pass spfdomain=jiaxyga.com dkim=pass dkdomain=jiaxyga.com); spf=pass (google.com: domain of linux-kernel+bounces-212110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212110-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f727e86c2dsi42895225ad.553.2024.06.12.12.07.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@jiaxyga.com header.s=mailru header.b=pa3yICGS; arc=pass (i=1 spf=pass spfdomain=jiaxyga.com dkim=pass dkdomain=jiaxyga.com); spf=pass (google.com: domain of linux-kernel+bounces-212110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212110-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 93676B25F11 for ; Wed, 12 Jun 2024 18:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E1506A34F; Wed, 12 Jun 2024 18:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=jiaxyga.com header.i=@jiaxyga.com header.b="pa3yICGS" Received: from smtp17.i.mail.ru (smtp17.i.mail.ru [95.163.41.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 159104F60D; Wed, 12 Jun 2024 18:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.163.41.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217851; cv=none; b=YN8u3llXrtROGceuDaFEq1nREug35gZF6qM1u0doisjFTs98c0IsXjfMqFwY+6pRqCureoDhDHrhUfLaZeZ2tCDy7VhJhi7nVCOrC4yqbVWDmxfWr0GIlACDdWEWwnBNrK/9cqXONxyy4wM9HfMYmNrN51VzcFNu4d03jLJ5n7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217851; c=relaxed/simple; bh=4I9UOF9Uh4jSmXW4a0DcVXIOa4Y2dOTld9DKkPRVX60=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fKfcwtDM4WU0lA2vWVdbyVD2UTMYAUE1BbiBrS42OnLVeKAD0iPgpTUqE7auo3AZdNqTulYAZhZaZ+B2SRaznvf3QLJLoLJA2dzDmtYzPFRqKkdpQRdUtL1nWdD+j9adXrXiSMOrG4yaEobbskmvAQNp8LhpinzvSbF6vrU00Lc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jiaxyga.com; spf=pass smtp.mailfrom=jiaxyga.com; dkim=pass (1024-bit key) header.d=jiaxyga.com header.i=@jiaxyga.com header.b=pa3yICGS; arc=none smtp.client-ip=95.163.41.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jiaxyga.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jiaxyga.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jiaxyga.com ; s=mailru; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:From:Sender:Reply-To:To:Cc:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive: X-Cloud-Ids:Disposition-Notification-To; bh=eRpIh3MFWWqDMzGpIXCuBn+ib8JMfonjDSqndcF6t/A=; t=1718217850; x=1718307850; b=pa3yICGSFi7AIubu1cuaACELS1YmvNJdxJdO3XdMLLS6I+mq1Uey+A6i+rSOAnzt0KCdPX4iLei jULevhjtxcKiWjlWLp16CpyXZOTiA1Ha4VCC4dHpGvbVcSSoyrjaBJZZkSwnYKJibvG/WktFVJ0RT EQFzxhBD9Q1Y2swZm9k=; Received: by smtp17.i.mail.ru with esmtpa (envelope-from ) id 1sHSx4-0000000D0R6-0Mqj; Wed, 12 Jun 2024 21:44:07 +0300 From: Danila Tikhonov To: robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, marijn.suijten@somainline.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, quic_rmccann@quicinc.com, konrad.dybcio@linaro.org, neil.armstrong@linaro.org, jonathan@marek.ca, swboyd@chromium.org, quic_khsieh@quicinc.com, quic_jesszhan@quicinc.com Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Danila Tikhonov Subject: [PATCH v2 2/4] drm/msm: mdss: Add SM7150 support Date: Wed, 12 Jun 2024 21:43:34 +0300 Message-ID: <20240612184336.11794-3-danila@jiaxyga.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240612184336.11794-1-danila@jiaxyga.com> References: <20240612184336.11794-1-danila@jiaxyga.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp17.i.mail.ru; auth=pass smtp.auth=danila@jiaxyga.com smtp.mailfrom=danila@jiaxyga.com X-Mailru-Src: smtp X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9AC8CA0B4439200FA9F827F83B79F671BF8FDA50EA86A90BE00894C459B0CD1B9B94C71BE9E53DE1283E6F0B08ED3DBBEF2B593887A7F923157EC9FF7D4E61EADEC456C66D2279EA7 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE743D95D1474A4F818EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637EDC9855826FBDF5A8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D833B2EA5C37C23AF9C0955C639EDBD42EF62CE15361E7A91ACC7F00164DA146DAFE8445B8C89999728AA50765F790063741F7343E26298569389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC878444BBB7636F62AF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947CDA7BFA4571439BB2302FCEF25BFAB3454AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C386712D2D5FBAF151BA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CFED8438A78DFE0A9E1DD303D21008E298D5E8D9A59859A8B652D31B9D28593E5175ECD9A6C639B01B78DA827A17800CE74F0F518E68DBD4F843847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A5E201E877967942C55002B1117B3ED6967B9C4122E6252D7C108A05421C070DB8823CB91A9FED034534781492E4B8EEADC8D8B8CB12567299C79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF5D9EAA1F3B2412C60966FDD54634C9BCDB82958D3C65BB9F29905A44C27CE191A7F6D8DEE3A50DD404A26A3878DC13300E9362EA79C879C2EB33B4587FF888A363DB507CBEF059A254A6BD6C3A9AE7E002C26D483E81D6BE72B480F99247062FEE42F474E8A1C6FD34D382445848F2F3 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojP/c/PTD82AlKHUozd4dVHg== X-Mailru-Sender: 9EB879F2C80682A09F26F806C73949812BC0DB2261ED53631356DD24693B53BC0BC8E9E4773051228DFC58918DFEC9C32C62728BC403A049225EC17F3711B6CF1A6F2E8989E84EC137BFB0221605B344978139F6FA5A77F05FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Add support for MDSS on SM7150. Signed-off-by: Danila Tikhonov --- drivers/gpu/drm/msm/msm_mdss.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index fab6ad4e5107c..d90b9471ba6ff 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -632,6 +632,13 @@ static const struct msm_mdss_data sm6350_data = { .reg_bus_bw = 76800, }; +static const struct msm_mdss_data sm7150_data = { + .ubwc_enc_version = UBWC_2_0, + .ubwc_dec_version = UBWC_2_0, + .highest_bank_bit = 1, + .reg_bus_bw = 76800, +}; + static const struct msm_mdss_data sm8150_data = { .ubwc_enc_version = UBWC_3_0, .ubwc_dec_version = UBWC_3_0, @@ -713,6 +720,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sm6125-mdss", .data = &sm6125_data }, { .compatible = "qcom,sm6350-mdss", .data = &sm6350_data }, { .compatible = "qcom,sm6375-mdss", .data = &sm6350_data }, + { .compatible = "qcom,sm7150-mdss", .data = &sm7150_data }, { .compatible = "qcom,sm8150-mdss", .data = &sm8150_data }, { .compatible = "qcom,sm8250-mdss", .data = &sm8250_data }, { .compatible = "qcom,sm8350-mdss", .data = &sm8350_data }, -- 2.45.2