From patchwork Tue Dec 28 04:59:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 528709 Delivered-To: patch@linaro.org Received: by 2002:ac0:b243:0:0:0:0:0 with SMTP id s3csp2662772imc; Mon, 27 Dec 2021 20:58:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU48eU7s+p48KUbprJrr62v1TSrnJbjL5tnI8iN/VLNiP1dCDrsyr+u5G24pQd2FbawNZU X-Received: by 2002:a63:790a:: with SMTP id u10mr9348401pgc.302.1640667520689; Mon, 27 Dec 2021 20:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640667520; cv=none; d=google.com; s=arc-20160816; b=z2+0c8aXa+KbKQB8TO4J2B2zB0zeo3Kgzs5a5fY+4N07FxxbIz87cM/c8xyyic0aF4 F/Ww1NO5l50sXpn0lvktZk13lDXBFV21YZ/MVjL+c/tXuYGS7IXtHYqR/YVYi9G22sIF TmnUl90c0qTeNx+2WO3Ag0cuULkvmAZaj4hwc2Gb5ibkf28lj94JfypKOGD5lpXGi69l MRIxMeAVIvZG4A6ltXBHRkZMOin3fJqpUNniUVKuFaQ7+1RcwnaxIFd7RK1nUMsi2J1W AxY2U+X24+ij8Xfa72TEAEDrXR4nHGlb6LwW5KNLD/+db/P2cmgc6EsMIFl7aCWbjlAm 58wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=98szpQBZjtZvNYlpyX/l6mXnydiaf9Cz3PXEMmMi7WI=; b=hDdH16ugqWkG+l7tcsZiaFs1ly41UJ1TiElMs2OSDvzquLpsMLQEy6nAa9Os7E7Opl gsVCtDn/i05POBZ0+PU2qEbFEP9lRDzbS98pHX5WTQ4rpYsO419dU3vlvzn0Y28jvAwH 1Y62ZjNKKfcC4r5/3Ne9Ok6ABftMxX7REr1OBxNR8k9Ydd62BxbdpCH/WUzIgVa+0Ktz His/OAD6g5hKixbHDVW1eqIIxcMhSqe4jTxRBfXJayKSge8QTLo/eF0ZumY+JO/R1ekJ DDFfBpbnK2rDTRxyJFLWO9cMTaS7SSMVKUqPuIwTy5Jvw6iLxOjh0Ef2Zq8BD59UH4p4 JPJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RkAse5a+; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id mh11si17228452pjb.68.2021.12.27.20.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 20:58:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RkAse5a+; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C896110E162; Tue, 28 Dec 2021 04:58:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0884010E164 for ; Tue, 28 Dec 2021 04:58:35 +0000 (UTC) Received: by mail-oi1-x22b.google.com with SMTP id t23so28332241oiw.3 for ; Mon, 27 Dec 2021 20:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=98szpQBZjtZvNYlpyX/l6mXnydiaf9Cz3PXEMmMi7WI=; b=RkAse5a++wcvwXouZbSPgrz1WAGLQRgomwBlTuBF+n11/dsDnSAFBiJ5IZO71tXwWQ oG3FDo764vE2UDNwyhMV8XKQTjJ2EVfvXYrhWV84Nz2dPQRNRJGhvSbzCQ6Kvi9wletK IyNqaEnQOApQTc2sh/uEynNLXrOozmRDI3YVa8JTHsf6CQfPaoW2BqoLiBD6q7HpYBym GGI4CQXhGZAhFOrBfxmUFmGYOMxRPQbYcKDIqFbWJ6LsKOZRGv7c4YGCan52dlHN0SIX HnKaSdR0XXsFutjqissD5fp8Rsn/LZoyqDuI87U5H+YAlIFzeZaPKnRGVzD1+U4SDi1I OfrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=98szpQBZjtZvNYlpyX/l6mXnydiaf9Cz3PXEMmMi7WI=; b=Gl+toYkACWvZmyyNDik9vnvVYryPII9s0DpBCHokZSEslXzE/FU2MRufHE8BvQMWAW jxOWZfjtilIooyQcVM3OXQpZsJk+NZ3LnSPbiD6jEjHboP92m9060RDAXckRTZclqgFX 9qHOx4z31/Sk3H2C0NElfRT9FJouXfP+gcyneLN+72D0IAqgUTt9K8vzuugWZ7FyCljn soS7o+1MTAJfvoWShcN2SkweV4WtY2bz1FYBDcO81ku3SViKqdA7iBga54Fk5VmK0vlp DIte5/59tqgWjTmtG40e1TEnCs/WUgHZ1Kb2ntGxTcuxO1RfuwXkyIN1wrYbQWf/oiYK Ug2g== X-Gm-Message-State: AOAM5335JorKhy2tPzeBjvhFVx+DofopwQUXwfHnvuWFb5cXX77+it8l W4JAGBZ/EpY3/DN5lng0lwtBYg== X-Received: by 2002:a05:6808:aa7:: with SMTP id r7mr15681459oij.120.1640667514163; Mon, 27 Dec 2021 20:58:34 -0800 (PST) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n18sm3004786ooj.30.2021.12.27.20.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 20:58:33 -0800 (PST) From: Bjorn Andersson To: Rob Clark , Abhinav Kumar , Rob Herring , Dmitry Baryshkov Subject: [PATCH] drm/msm/dp: Add DisplayPort controller for SM8350 Date: Mon, 27 Dec 2021 20:59:34 -0800 Message-Id: <20211228045934.1524865-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sean Paul , devicetree@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Qualcomm SM8350 platform comes with a single DisplayPort controller, add support for this in the DisplayPort driver. Signed-off-by: Bjorn Andersson Acked-by: Rob Herring Reviewed-by: Dmitry Baryshkov --- .../devicetree/bindings/display/msm/dp-controller.yaml | 1 + drivers/gpu/drm/msm/dp/dp_display.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index 5457612ab136..cd05cfd76536 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -21,6 +21,7 @@ properties: - qcom,sc7280-edp - qcom,sc8180x-dp - qcom,sc8180x-edp + - qcom,sm8350-dp reg: items: diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 8d9c19dbf33e..fd0fd03f8fed 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -143,10 +143,18 @@ static const struct msm_dp_config sc7280_dp_cfg = { .num_descs = 2, }; +static const struct msm_dp_config sm8350_dp_cfg = { + .descs = (const struct msm_dp_desc[]) { + [MSM_DP_CONTROLLER_0] = { .io_start = 0x0ae90000, .connector_type = DRM_MODE_CONNECTOR_DisplayPort }, + }, + .num_descs = 1, +}; + static const struct of_device_id dp_dt_match[] = { { .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_cfg }, { .compatible = "qcom,sc7280-dp", .data = &sc7280_dp_cfg }, { .compatible = "qcom,sc7280-edp", .data = &sc7280_dp_cfg }, + { .compatible = "qcom,sm8350-dp", .data = &sm8350_dp_cfg }, {} };