From patchwork Thu Apr 20 22:31:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 86069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp661679vqo; Thu, 20 Apr 2023 15:38:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ahYvC/4/9SPRQc6y9+pG54hTPbggvd9FkS7Lgx7iNxnWjuuWXEhjuXFD2kEUmhHz3hYNIQ X-Received: by 2002:a05:6a00:14cf:b0:63d:408a:e14 with SMTP id w15-20020a056a0014cf00b0063d408a0e14mr3878631pfu.4.1682030311377; Thu, 20 Apr 2023 15:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682030311; cv=none; d=google.com; s=arc-20160816; b=aCttS1Eal5ihoVa0Lnrcob54I51qn4T0qS5aLThC9ijAf+U5pbwD/DaArkdVwkE59f wmoAJd8hs8MLc1CDKdFPg2jSBTXjVhQr2ABIrB1TZqKOmsbXj2j0j1MUrntPUcuOt7jT mFPIE0qvq7+ilEztlX3dN0xn4lVCTrWc0LQNjkDKB0OGVkB/ewNqGug0aE7BXGVDFN2D ggdDYM8AcQ/crFUkrVZVgtuskuajFzL7pp7tIaX2Gv0d/OGP9xDpxVxnFBokJfnFVpPT WgJzBxLqgkzWsBAptZeIsAR/30A/Vu/bP6pNf38mxIH7hW4xhSvfPvoATqI+ycQY63ar omsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=1Gx9hOgjws0YjXjWKNVHvwkPmSavQFOa1C9EN/R+wqo=; b=yuIV3tewMgVtCK7sVfvXvU9ZAJWdmzMEpiaUyq8Dl/su3YOpF7Zerp0gqJWbXqNHzC XE0Ko5V7a2ijuhW8H1yLjdSCLsZxB9AgI1xMn1PbHADBmp18mkqoxp/vkd/0hJKoZmgA AMKZeOqTNB9KzEQ2iLJUtCU/I5mS7xYvlNX5Hap7oqSYOShYCjhiNohSLMbuwEwHdOPt J35pWJBLxf79YcvzbUv6b826yQtlMdxKTL1m5kkJ5rmv5gjVaS7xOxWWyRXIYLHhVk/1 9fCsex6yMNsSlUJE9wxjHXuqXRNPNodVZvyI+zIVsN+4ZtD4tGBdt/2ryq+Qswpq5uIh 3JqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r69+OTvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a656484000000b005193a2c7b1esi2488435pgv.447.2023.04.20.15.38.18; Thu, 20 Apr 2023 15:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r69+OTvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232982AbjDTWcY (ORCPT + 99 others); Thu, 20 Apr 2023 18:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233006AbjDTWbz (ORCPT ); Thu, 20 Apr 2023 18:31:55 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6915F6EB2 for ; Thu, 20 Apr 2023 15:31:40 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4ec81779f49so947116e87.3 for ; Thu, 20 Apr 2023 15:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682029898; x=1684621898; 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=1Gx9hOgjws0YjXjWKNVHvwkPmSavQFOa1C9EN/R+wqo=; b=r69+OTvdPAJ4sKqvjR7kEd3QeVT7UrZWAtHfwc9VPuD4P23u0aKU04R04eI1I4vDhv ZLdrDuU/SUV972AzJsfmBa834BQ/eT8x3IKHJvnSaAchmOcUDNaly1SCgXKZdSTFmv/A XkqyQqJU707bQACaa4zhxHd6AQ54Bxzi2OCLHdhRnRLf2h940aCzSUSN9HaD+jKB4kKx IXstLdu1YaFPc+VJOKHFJQpYpS/QIMt/BJPvMLoEVPD0PKVRs4k/L/kDbUzt8EeRpl2y rUkgnfn1GHnqxWI72pKXIPH6Sk0KFQY3n2tAjaq2QxtzhU6GVA0HqL/S/hXiW861V0bI RGwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682029898; x=1684621898; 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=1Gx9hOgjws0YjXjWKNVHvwkPmSavQFOa1C9EN/R+wqo=; b=Y9lL87D1SMbrUSKMUwdRn4F1Ve+3GEzjx/iqFhKHj004RzNb8qyii9soN5fkIvH+B7 F2hrLNW5rHHrL5mNSzWNnDZEHFcGoz3ZtI9qcZ6w+vklXHGWB5ZbHdDWqhf0LqDuYz1N TzX/9TcK8/alRVK19m6IjoMJYNj6hkFQJHsmU/GBllqzkuElpxGCYYTdAa0UX2UiCB6j sZP1NjNLAjjLln1frBtRu+SImo6KDvAAq5kWB0YSXl7xY2IEvitai2kC9nMW22sqqFfa Hnz5ot0Ji5DOmxamb3qp6cc/7069+XoC0dOQyS53dC0IKrVoB1nTTq7DsWFBQpO/PAPh IO0Q== X-Gm-Message-State: AAQBX9fu+jYAopwGbp+ynQGTwoD8MBlxXV+0a7U1ANjuvKZ5Ctz2RjpR EDxck2PkF1QJjuel8TWCw95/Hw== X-Received: by 2002:a19:ad4c:0:b0:4e8:3b51:e7eb with SMTP id s12-20020a19ad4c000000b004e83b51e7ebmr826262lfd.7.1682029898488; Thu, 20 Apr 2023 15:31:38 -0700 (PDT) Received: from [192.168.1.101] (abyj144.neoplus.adsl.tpnet.pl. [83.9.29.144]) by smtp.gmail.com with ESMTPSA id w8-20020ac25d48000000b004eedb66983csm324256lfd.273.2023.04.20.15.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 15:31:38 -0700 (PDT) From: Konrad Dybcio Date: Fri, 21 Apr 2023 00:31:19 +0200 Subject: [PATCH v2 10/13] drm/msm: mdss: Add SM6375 support MIME-Version: 1.0 Message-Id: <20230411-topic-straitlagoon_mdss-v2-10-5def73f50980@linaro.org> References: <20230411-topic-straitlagoon_mdss-v2-0-5def73f50980@linaro.org> In-Reply-To: <20230411-topic-straitlagoon_mdss-v2-0-5def73f50980@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Krishna Manikandan , Will Deacon , Robin Murphy , Joerg Roedel Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1682029879; l=1357; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=IZraHC2rKjwAxvGejhLYdH/8ZPnRD2vaDl4IpBKvSDs=; b=FP2ipxs5Nr8YDG41US/6zI6ekAMslR4vE0K4u7LOeT1EivuPnX1w5tKQTXEck12W9qVTOEtDivz3 WuRS5/DZDjHC58OaEhn697/T/kdfsd1bZWmPg7vS1HYlJv1GAHpk X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763736615514452748?= X-GMAIL-MSGID: =?utf-8?q?1763736615514452748?= Add support for MDSS on SM6375. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten --- drivers/gpu/drm/msm/msm_mdss.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index 4e3a5f0c303c..f2470ce699f7 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -546,6 +546,15 @@ static const struct msm_mdss_data sm6350_data = { .highest_bank_bit = 1, }; +static const struct msm_mdss_data sm6375_data = { + .ubwc_version = UBWC_2_0, + .ubwc_dec_version = UBWC_2_0, + .ubwc_swizzle = 6, + .ubwc_static = 0x1e, + /* Possibly 0 for LPDDR3 */ + .highest_bank_bit = 1, +}; + static const struct msm_mdss_data sm8150_data = { .ubwc_version = UBWC_3_0, .ubwc_dec_version = UBWC_3_0, @@ -580,6 +589,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sc8280xp-mdss", .data = &sc8280xp_data }, { .compatible = "qcom,sm6115-mdss", .data = &sm6115_data }, { .compatible = "qcom,sm6350-mdss", .data = &sm6350_data }, + { .compatible = "qcom,sm6375-mdss", .data = &sm6375_data }, { .compatible = "qcom,sm8150-mdss", .data = &sm8150_data }, { .compatible = "qcom,sm8250-mdss", .data = &sm8250_data }, { .compatible = "qcom,sm8350-mdss", .data = &sm8250_data },