From patchwork Tue Nov 15 13:30:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 20375 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2729863wru; Tue, 15 Nov 2022 05:33:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4vY0uhnw4Xtlhd35EmlHVBfKpXGrrz3tCg1bMLyc0COEZyjFbKcWpuMEA5tr/A6MwnEgws X-Received: by 2002:a63:f307:0:b0:43c:428d:1701 with SMTP id l7-20020a63f307000000b0043c428d1701mr15745984pgh.307.1668519211577; Tue, 15 Nov 2022 05:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668519211; cv=none; d=google.com; s=arc-20160816; b=SxnET3CACBfUY7E3AfozIp2pZPVEJWTr0NLMjx4VtDVnJKYrn6Sxd30zbKsa/V6Td/ qcuAAma3RH3Kr07dzIRuvlhrUP8u5m1mq7LexLavn07NPSsOb+pE5gM1e+6+8nG/TulE vuI4MNsZfN38iZmsUSbUazFrI4yerhVa44f2uDFgyrlhR2DaAlC3rM+g8HfaZuo9NXM1 jajx5G5RJuGLlaCLk9mZtHI/bVzp8GHY7Sw+KQOlKstxH1cZV145AEYJxxrVT5Y9zoIW T9+JLZGP0FEckvhxdTTTZ4v5uN6F4uDFVE8rnpst+BTPpP3iYhSie+g3hdUmpbX9qzuE gQaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=FA6VZLr8EX+1LwmM9brJgk2AqL1UbJ0XsUIaiz9n7JY=; b=ToSFcVCLs/qpmv51yV0u3zD1yM22NSw1wLzxW3kiNyUFN9yOXazpbw7DHp3NwPK6wW pSQvn3mma9oIvALQhgGxb0IoLvTrBFcJd9HoYoWevLkcf0R2D0V0ENk8lpJ6sT4b8tQy +glP2ntZMR1w1WP4iRmspCcdkH0ovI8oe9ooQb9NhitIlmb74yObbq2Wat1r1XyLi5z3 PiBdZ2fbJUoeCwAQrV0y4KHUEPuN96KUTFulW7Cm9qfYwGkyn6iA3EZ6sHFro5ILmgAT G/cBBXiCeT/JdqrSqyYlPHSS4eDyjxmQkz2100ZVLmClS0wJJwQHZ+VcHvR4ZGQR528A Dj1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nilNDcO+; 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 t21-20020a635355000000b0046a1ae37df5si11440272pgl.147.2022.11.15.05.33.15; Tue, 15 Nov 2022 05:33:31 -0800 (PST) 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=nilNDcO+; 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 S238255AbiKONbz (ORCPT + 99 others); Tue, 15 Nov 2022 08:31:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238209AbiKONb0 (ORCPT ); Tue, 15 Nov 2022 08:31:26 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C25B19C23 for ; Tue, 15 Nov 2022 05:31:25 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id n20so15436089ejh.0 for ; Tue, 15 Nov 2022 05:31:24 -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:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FA6VZLr8EX+1LwmM9brJgk2AqL1UbJ0XsUIaiz9n7JY=; b=nilNDcO+Dvh/GNaQwv21UPwBlAYUKgxhJWDnVkZyC1w8s7CF6k2t4w/0Oe7Zc+QTKM OmSEcOwqrjlJBLTueyUKYQLCg9VlfK9fcIWjt49uHPUrsBcMuxsZxWJIrCHVYakcoBRN q/Vrfcu+vF+s1p7v2rsRo6IA6PK78R6L/XRw7ufmKqIpj/mP0hO7JtSR7ICUW5T2RD9P UQN23qjsr1Z3qmHuIlULhQBDbi9cUTsLGZ830607AXHX5XutJ9q+nRbLk5gt6vqjeeIO gM/vkwpe0xLTKDdr2PFiyDdcjH/ENbqRcg5Gn651+Nse0JxNccOfiIQb8WTm8Vfl8jyp Nsjw== 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FA6VZLr8EX+1LwmM9brJgk2AqL1UbJ0XsUIaiz9n7JY=; b=PD3OGhzJB2dwfVcVu1Z22cJePkaBMnHYJlyLglI2CJDdVc3X0S26klUFCaUPhx5Bau 75eLALS8tSA+b8v7Jlc/oVlfz6CCZITvhorIDFrltmRDM/cZEGUze4KxQyoNSpjRxk9q JO/k87pm9LtvYBgJWB2k/M/LC5EwYjN/LRRtWe3YI+dyMzr5Y6057PGgVfhqxqQvG7JS +qJ665EXEYT4bPIhW8DgALNXCpibdZHOHZ6rj9/wAutNOBi6gmLS8Qpb331nVWtt0GFk jhJPVIZexUcZpTZeVkjLo5h3ImDhfQCpd2SRHUsCF87rMD+G3nDOxR9nx824rhOvwieN fCIQ== X-Gm-Message-State: ANoB5plBhWgaVVkeLC+i/Ez7hb1SpTwJh9/35+NEvEGOLr3ZZeCczG3Z dmbtuYszUv2WEFwJdQYAnzvuXA== X-Received: by 2002:a17:907:20a5:b0:78c:9b67:6655 with SMTP id pw5-20020a17090720a500b0078c9b676655mr13338211ejb.90.1668519084603; Tue, 15 Nov 2022 05:31:24 -0800 (PST) Received: from prec5560.. (freifunk-gw.bsa1-cpe1.syseleven.net. [176.74.57.43]) by smtp.gmail.com with ESMTPSA id q22-20020aa7d456000000b004618f2127d2sm6162176edr.57.2022.11.15.05.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 05:31:24 -0800 (PST) From: Robert Foss To: robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, quic_kalyant@quicinc.com, swboyd@chromium.org, robert.foss@linaro.org, angelogioacchino.delregno@somainline.org, loic.poulain@linaro.org, quic_khsieh@quicinc.com, quic_vpolimer@quicinc.com, vkoul@kernel.org, dianders@chromium.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Marek , vinod.koul@linaro.org, quic_jesszhan@quicinc.com, andersson@kernel.org Subject: [PATCH v2 06/12] drm/msm: Add support for SM8350 Date: Tue, 15 Nov 2022 14:30:59 +0100 Message-Id: <20221115133105.980877-7-robert.foss@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221115133105.980877-1-robert.foss@linaro.org> References: <20221115133105.980877-1-robert.foss@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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?1749569201121232831?= X-GMAIL-MSGID: =?utf-8?q?1749569201121232831?= Add compatibles string, "qcom,sm8350-mdss", for the multimedia display subsystem unit used on Qualcomm SM8350 platform. Signed-off-by: Robert Foss --- drivers/gpu/drm/msm/msm_mdss.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index a2264fb517a1..39746b972cdd 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -293,6 +293,9 @@ static int msm_mdss_enable(struct msm_mdss *msm_mdss) /* UBWC_2_0 */ msm_mdss_setup_ubwc_dec_20(msm_mdss, 0x1e); break; + case DPU_HW_VER_700: + msm_mdss_setup_ubwc_dec_40(msm_mdss, UBWC_4_0, 6, 1, 1, 1); + break; case DPU_HW_VER_720: msm_mdss_setup_ubwc_dec_40(msm_mdss, UBWC_3_0, 6, 1, 1, 1); break; @@ -530,6 +533,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sc8180x-mdss" }, { .compatible = "qcom,sm8150-mdss" }, { .compatible = "qcom,sm8250-mdss" }, + { .compatible = "qcom,sm8350-mdss" }, { .compatible = "qcom,sm8450-mdss" }, {} };