From patchwork Sat Oct 16 22:18:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12563929 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35AD5C433EF for ; Sat, 16 Oct 2021 22:17:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F9FE6105A for ; Sat, 16 Oct 2021 22:17:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244721AbhJPWTF (ORCPT ); Sat, 16 Oct 2021 18:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244718AbhJPWTE (ORCPT ); Sat, 16 Oct 2021 18:19:04 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA8EC061766 for ; Sat, 16 Oct 2021 15:16:55 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id o83so18717675oif.4 for ; Sat, 16 Oct 2021 15:16:55 -0700 (PDT) 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=9ujg6PKfSs2XOzYYHdPfFh++V/EwomxD0QVcYgfLZXo=; b=bWLopzPXV0sZJ2LSwu41r+EPZMlLquM8s17awzNbFsWQAvNQP3ysIA6BjXqDaOvT07 FoPsOPzBGSkErL9hZs5bUhmBVFlFlw0BEXx1y6vSadNWxyp0syScVEP7xfzYUiKYUcb2 XMHDLAonIuvWwiVjsNMWyOc1aNN8Ew1DwZqg79F5xfAFZ5N7w7l68UJ2HoUyDsuXRDGB uTwKq6tDfoTcNb69w6wKA1shhumJFyxEWUfGqJZ+QvJMa7dD5DFIHzkgVlm1sWqtPVyX mDQif9GoD6HwjyWYozcLLiaQQoSKGclDteZbep0MPD7RzQaxsLgAwke+Zm1v0563lals d9eg== 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=9ujg6PKfSs2XOzYYHdPfFh++V/EwomxD0QVcYgfLZXo=; b=eMopwyUxeR92Ywb6aNHIXr2LMYNQX68vzeMkMnqSU9G4pKJLabysvxrj2d1gqQQCMS V9VJrkiLgP/F+D4Z2Vy3ORtanynGScqKoagzyeTlGPfnR6cM2/D3ngGLHzXdBvdJkp8i MvbjYv7P6oE+EazklepLfWAuiTvnEjCERenecBZ1nI8V1VNULkgRrnzmjdzfJvWkwOtP Ov4VnE2SEC/5ZEoOskfiW+J6+z1xkS0SM0g5HH3qMcK61UOP3Q8hVsujRylxXP1scDNE 5Sbfw8AIMNZ9IEZAgKypUH2/PGpHOBx/f3AxcVYusMQh+ADVPQnev4aBgNTuxarsbfnP wrrg== X-Gm-Message-State: AOAM532rBC8vDJgrZFchAkhsJwoWj8qe/uB2leopyIwEekira6TxLGxY bBCR5k2R5ajw8UI6CCMCWtVS8ExCyfjZQw== X-Google-Smtp-Source: ABdhPJx7Ixjt5pToz+8Du+Kf33f+u70q+ZoT74guovCjf5YAM7lolr8SqhxQm3rOVRMfvryCj1ruRQ== X-Received: by 2002:aca:5dc5:: with SMTP id r188mr22884478oib.160.1634422615143; Sat, 16 Oct 2021 15:16:55 -0700 (PDT) Received: from localhost.localdomain ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id d15sm1747058oic.32.2021.10.16.15.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 15:16:54 -0700 (PDT) From: Bjorn Andersson To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Abhinav Kumar , Dmitry Baryshkov , Kalyan Thota , Kuogee Hsieh Cc: Rob Herring , Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/5] drm/msm/dp: Support multiple DP instances and add sc8180x Date: Sat, 16 Oct 2021 15:18:36 -0700 Message-Id: <20211016221843.2167329-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The current implementation supports a single DP instance and the DPU code will only match it against INTF_DP instance 0. These patches extends this to allow multiple DP instances and support for matching against DP instances beyond 0. With that in place add SC8180x DP and eDP controllers. Bjorn Andersson (7): drm/msm/dp: Remove global g_dp_display variable drm/msm/dp: Modify prototype of encoder based API drm/msm/dp: Allow specifying connector_type per controller drm/msm/dp: Allow attaching a drm_panel drm/msm/dp: Support up to 3 DP controllers dt-bindings: msm/dp: Add SC8180x compatibles drm/msm/dp: Add sc8180x DP controllers .../bindings/display/msm/dp-controller.yaml | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 23 +-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 66 ++++---- .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 8 +- drivers/gpu/drm/msm/dp/dp_display.c | 153 ++++++++++-------- drivers/gpu/drm/msm/dp/dp_display.h | 2 + drivers/gpu/drm/msm/dp/dp_drm.c | 13 +- drivers/gpu/drm/msm/dp/dp_parser.c | 30 +++- drivers/gpu/drm/msm/dp/dp_parser.h | 3 +- drivers/gpu/drm/msm/msm_drv.h | 9 +- 11 files changed, 205 insertions(+), 112 deletions(-)