From patchwork Thu Apr 20 22:31:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 675953 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 08E9DC7618E for ; Thu, 20 Apr 2023 22:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbjDTWcN (ORCPT ); Thu, 20 Apr 2023 18:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232767AbjDTWbw (ORCPT ); Thu, 20 Apr 2023 18:31:52 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E4605FC7 for ; Thu, 20 Apr 2023 15:31:36 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4ec94eb6dcaso956934e87.3 for ; Thu, 20 Apr 2023 15:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682029895; x=1684621895; 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=NzW0EyxEnLgGTr4kvlR1jpwpJYgRpLH7LzUuysQn5LU=; b=Ma+NvWDMWecNjRhGTfS//RRzl2qjKfBRdeBNrSRoygMzT+qFjy6e5EiGGczTSb5dJQ QUpRkTZYWPqvbYclf4czjUwFg8Jc+x1ddtNq2+acsgMYXfHTBp2An6xaef3DGNB47MFA RItS3E7jplMvc58KP3pYAAOfwyBvOtLZjWlFqcMuj/Ux2o9WmBOgjiGs7xsE4Ei+Dk6U TNCxGR6mx3jphy5h9te+oQcrunggUVSUZJKM2n7ODWlAh8AIAZGwK6dO7T+zaciZ5iMB hTgdZvo1iVvmavJ6rfpl0cxgkICr9PYdMBmHUAXnkQY9/os5RPiZxbZIFmxdEN+nwDHz QZew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682029895; x=1684621895; 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=NzW0EyxEnLgGTr4kvlR1jpwpJYgRpLH7LzUuysQn5LU=; b=IiOjTpYIhn/6ODVBr/K7+eODNqFLw3APqd91d+qaloSukncqrpH5A4Wm1p8yuT0zqr taQLA8BQ4+llDB2yiEuTy9gpsXC5VMZk+/GRwhSL2GLZlH/opxORRUUceN2xyJlNLzNb YiblKxldNIZXYVmlC/TtF2OE8fk+tV1UVojZ+sX5bQb0QzoeRvke+CjZ2PFiGa37K+Fm waiOAROyc1ZRjFnpG8nHttL9e7xXCYDN+AdlZgsBkAUkqKbmyfGbRkmx4Rrb/msxvenI BQ2gR6BGf/Sc4CkGxzdHORLWkHIM9rpuT6LTdrT3PKVpRe7FSuFJC5/plryd297KzrkK LwCg== X-Gm-Message-State: AAQBX9elp7/yGEFqRL6Y7jvw3BLF7BOdlE4Pe3PFppH8vrZtOhGa8O1A pPFxsCWZ7cZNmmT+A/AML6h14g== X-Google-Smtp-Source: AKy350YZCctAZ8o+9QesV16tsV96ubVi/ClzN4jAIauRdQ6iFbOb2/iQX4NOlAez5gusI19gaCZ1/A== X-Received: by 2002:a05:6512:3c9:b0:4ec:857d:9c94 with SMTP id w9-20020a05651203c900b004ec857d9c94mr705379lfp.15.1682029894970; Thu, 20 Apr 2023 15:31:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 15:31:34 -0700 (PDT) From: Konrad Dybcio Date: Fri, 21 Apr 2023 00:31:17 +0200 Subject: [PATCH v2 08/13] drm/msm: mdss: Add SM6350 support MIME-Version: 1.0 Message-Id: <20230411-topic-straitlagoon_mdss-v2-8-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=1325; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=YJnhuotbycPo0Lxuk2IRtdOzqse8Z1bIU0CErB+UTrw=; b=d5k6WYZUd1XbcPs5nVQlXqkJtEycVrXqJI6R1+zGm9QHV1JuWYVoLyI0UBWtYcyZeJB+Ge8Enm6E pWe8cxtkBAoI/eYMad7nfABBlIGkHpu+c6+M/fst+9zWU45spktu X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for MDSS on SM6350. Signed-off-by: Konrad Dybcio Reviewed-by: Marijn Suijten --- drivers/gpu/drm/msm/msm_mdss.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index e8c93731aaa1..4e3a5f0c303c 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -538,6 +538,14 @@ static const struct msm_mdss_data sdm845_data = { .highest_bank_bit = 2, }; +static const struct msm_mdss_data sm6350_data = { + .ubwc_version = UBWC_2_0, + .ubwc_dec_version = UBWC_2_0, + .ubwc_swizzle = 6, + .ubwc_static = 0x1e, + .highest_bank_bit = 1, +}; + static const struct msm_mdss_data sm8150_data = { .ubwc_version = UBWC_3_0, .ubwc_dec_version = UBWC_3_0, @@ -571,6 +579,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sc8180x-mdss", .data = &sc8180x_data }, { .compatible = "qcom,sc8280xp-mdss", .data = &sc8280xp_data }, { .compatible = "qcom,sm6115-mdss", .data = &sm6115_data }, + { .compatible = "qcom,sm6350-mdss", .data = &sm6350_data }, { .compatible = "qcom,sm8150-mdss", .data = &sm8150_data }, { .compatible = "qcom,sm8250-mdss", .data = &sm8250_data }, { .compatible = "qcom,sm8350-mdss", .data = &sm8250_data },