From patchwork Fri Dec 17 00:26:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 524987 Delivered-To: patch@linaro.org Received: by 2002:adf:eccd:0:0:0:0:0 with SMTP id s13csp872953wro; Thu, 16 Dec 2021 16:25:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaywQCZ5xNOYjuOTK8PqaT+5W5c3tbPrSUKCxQv2JxKr678YSy0juA0K+1UjNSwedwIxV8 X-Received: by 2002:a17:902:e747:b0:148:a18e:75be with SMTP id p7-20020a170902e74700b00148a18e75bemr398280plf.73.1639700736601; Thu, 16 Dec 2021 16:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639700736; cv=none; d=google.com; s=arc-20160816; b=OMtuiz8nJgF8bbkF8xYHb5Bl7pECVYIkdcnPjgZZHeirp38Nze54yE+InmizBDGjNr RFgz5/oKfrZ+10VzGZCSuIszyqGz+3L02RnS15UR2mpunZJ4ABefkiOGkVPcuOPOBdvq 5UGJBf/S2zjwSGs/gzMkqN9xxQyL1C6xEw3Wp7ZmU5CY0lJDAMqhI44VSfm+lnPtXOI8 o8isoqXbP4pn3Ct6Dd/IC/Ux7gzg3ivnKS1TllD9bkPn6VI1yrPFuKDCzWNUVORgQL7K fcMesuogujORIVmRZPySN9DBq+LGOFgCVPRAs8l03P5ZdeE7zqDKBu+SgeHqdenA+coC W9rA== 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=L42E328JA86n5jcTl+bCP40afiqbeg4RjbZPTUGNIHY=; b=0VNhq48gdDWtdw7CSclS6Isr7ekOVa4qwknkO0Ty/5yi6NPJeyTih1UCuDbVVaIWB7 duTYVyVBXn2ReZ6y0AGId/7nBsa3h1zMQ4HNhZ7FycwepyfUJKTiWjfaRQtj1CFnX6LT 8YbSc4kmO5ot+DYkK8+ynMSUbVYk1Lc5cczS0JEQ+lg1p896BHOJK7+rJCzXf8yNlX1Q S5c9hKStQ2b1TrFp/0X2xhjapiwDOKoz+LHjNZ8yQkfztumOy/lFUQFlZjmLKBjjjPh5 zL0JykLOqkExlK5uiVHaF5XtbhXCpTco6xSlmHEAbWdlAXoM1dhkJaTNzaYvheUS/csZ Odlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dUmlG5lJ; 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 w9si3914485pla.490.2021.12.16.16.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 16:25:36 -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=dUmlG5lJ; 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 2AF6C10E19F; Fri, 17 Dec 2021 00:25:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2AE7610E19F for ; Fri, 17 Dec 2021 00:25:30 +0000 (UTC) Received: by mail-oi1-x229.google.com with SMTP id q25so1375433oiw.0 for ; Thu, 16 Dec 2021 16:25:30 -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=L42E328JA86n5jcTl+bCP40afiqbeg4RjbZPTUGNIHY=; b=dUmlG5lJicYneJ1f4yEHYdYyKPoKaHdY1pi0pCz2Fuu3ZzXkmt21TGoGjJOFA0g6k6 lmzW0AMB/4b7UjmKfoMqXmq8Qw54qFp2RWwmyRoa7rGZDvnksapDIniclJKk+WZn8rpT Pn4QxdZ5bhAKvNK6xwd9gTD5OtBYSm1FT4xCyRYx+g0vLz+YoM2cC5lcM6M9DoYr3adc AEpUneOwgwgWTVbE1OT5DBXCmiXiRfq7wQONzdBlY6+bnCseNsdO6jWSewHZrjKNua4p vpk22V+D4AyRadLBwVvtsnaBkX4pJfp+pWX6gJzY1Xx5wkOksiJUrOfFVSKbIz1fHY4b K6ug== 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=L42E328JA86n5jcTl+bCP40afiqbeg4RjbZPTUGNIHY=; b=ljQUnhYb+FhODdti6RRRBhrJfO78Yvl86ncSxcE2OZAQG5UN5s8UuU+I1q4jlSPVkP Qz02qfysTsqSSFJVD60i6yiLNKKj7qteJY2kQSkclzoxSG7wwrPavhrmUaWFSMtDjAOB N+xKg+dZoB9sLoezOGb3ytLdJXbJtzP5+LfD3wtbaDS5+ajdF/Qsv9GR5hCPDaeiHP4f PSdsK7/PnhYPeWNd4k4MA8C3Blmytwf+oWEBQbLkvKSrPiJyZUAPjMoDJKpn+sv3hEcL ucWrZDWD7jwyP4wiiqvT8RcACmou/tOX2/ryga3aUgl3hCUYk7y5xA0Ccdz/hfIhq+Fs gSSQ== X-Gm-Message-State: AOAM533XqqYHO9k4dFoq/dFCCQwHd14x8or2pZqA55A3gbwsN84YRngD u/9LWPAn8iHeGxml2dUo/qEMXw== X-Received: by 2002:aca:c45:: with SMTP id i5mr6384532oiy.176.1639700729402; Thu, 16 Dec 2021 16:25:29 -0800 (PST) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id t3sm1303905otk.44.2021.12.16.16.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 16:25:29 -0800 (PST) From: Bjorn Andersson To: Rob Clark , Dmitry Baryshkov Subject: [PATCH v6] drm/msm/dp: Add sc8180x DP controllers Date: Thu, 16 Dec 2021 16:26:43 -0800 Message-Id: <20211217002643.2305526-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: freedreno@lists.freedesktop.org, David Airlie , linux-arm-msm@vger.kernel.org, Abhinav Kumar , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Signed-off-by: Bjorn Andersson Reviewed-by: Abhinav Kumar Reviewed-by: Dmitry Baryshkov --- Changes since v5: - Dropped DPU hw catalog change from the patch - Rebased the patch drivers/gpu/drm/msm/dp/dp_display.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 8d9c19dbf33e..a9f5368559b4 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -143,10 +143,21 @@ static const struct msm_dp_config sc7280_dp_cfg = { .num_descs = 2, }; +static const struct msm_dp_config sc8180x_dp_cfg = { + .descs = (const struct msm_dp_desc[]) { + [MSM_DP_CONTROLLER_0] = { .io_start = 0x0ae90000, .connector_type = DRM_MODE_CONNECTOR_DisplayPort }, + [MSM_DP_CONTROLLER_1] = { .io_start = 0x0ae98000, .connector_type = DRM_MODE_CONNECTOR_DisplayPort }, + [MSM_DP_CONTROLLER_2] = { .io_start = 0x0ae9a000, .connector_type = DRM_MODE_CONNECTOR_eDP }, + }, + .num_descs = 3, +}; + 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,sc8180x-dp", .data = &sc8180x_dp_cfg }, + { .compatible = "qcom,sc8180x-edp", .data = &sc8180x_dp_cfg }, {} };