From patchwork Mon Jan 7 20:51:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chandan Uddaraju X-Patchwork-Id: 10751199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 643CC13B4 for ; Mon, 7 Jan 2019 20:51:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49C2328AA5 for ; Mon, 7 Jan 2019 20:51:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B4A428AB6; Mon, 7 Jan 2019 20:51:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC00D28AA5 for ; Mon, 7 Jan 2019 20:51:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbfAGUvZ (ORCPT ); Mon, 7 Jan 2019 15:51:25 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:36582 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfAGUvY (ORCPT ); Mon, 7 Jan 2019 15:51:24 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8845E601B4; Mon, 7 Jan 2019 20:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1546894283; bh=YC1PoDu/URldUMaCLB+/NbSSeca+aJ+8tGdGXv0ctdc=; h=From:To:Cc:Subject:Date:From; b=Smy4Rbz7tkhysV8RVjghdw2X/H86sq3ILsm0CsPv8jp3ZEQmyN1u9T3BRw45hAbhH V0vo0iMRedlFc8p/oB1vRF2gKNNHKWDB+F3u6KXCX2UQnMU8H7/7/vM3TmbUANFgT8 FrAvSzU6zw+rMayT6pMWMNvveUnra943p7f+Ea/Q= Received: from displaysanity13-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chandanu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 42C9F601D1; Mon, 7 Jan 2019 20:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1546894282; bh=YC1PoDu/URldUMaCLB+/NbSSeca+aJ+8tGdGXv0ctdc=; h=From:To:Cc:Subject:Date:From; b=Y9n7hxGXnYyPmvCR2pzx0Pq/FRY37JftBG1wzJB1CqywcwtA4YNm3AEGsCJB93hgh hBpUMdG9Bu4BnNOIoXG0efDJDnUaS9ZW+JdiRVK1en7IIcaHF21I5RcBlh+z2tDeyj oMXhgzf9QFiIofdu/BzsZk02Zzaa2Gc0hzZRZbgU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 42C9F601D1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=chandanu@codeaurora.org From: Chandan Uddaraju To: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, seanpaul@chromium.org Cc: Chandan Uddaraju , robdclark@gmail.com, abhinavk@codeaurora.org, nganji@codeaurora.org, jsanka@codeaurora.org, hoegsberg@google.com, dri-devel@lists.freedesktop.org Subject: [DPU PATCH v2 0/3] List of patches for DP drivers on SnapDragon Date: Mon, 7 Jan 2019 12:51:08 -0800 Message-Id: <1546894271-25870-1-git-send-email-chandanu@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These patches are to enable DisplayPort driver on SanpDragon. These patches have dependency on clock driver changes that provide DP clock support. Changes in V2: Core Dp driver: -- Update copyright markings on all relevant files. -- Change pr_err() to DRM_ERROR() -- Use APIs directly instead of function pointers. -- Use drm_display_mode structure to store link parameters in the driver. -- Use macros for register definitions instead of hardcoded values in dp_catalog.c file. -- Replace writel_relaxed/readl_relaxed with writel/readl and remove memory barriers. -- Remove unnecessary NULL checks. -- Use drm helper functions for dpcd read/write. -- Use DRM_DEBUG_DP for debug msgs. DP PLL driver: -- Update copyright markings on all relevant files. -- Use DRM_DEBUG_DP for debug msgs. Chandan Uddaraju (3): dt-bindings: msm/dp: add bindings of DP/DP-PLL driver for Snapdragon 845 drm/msm/dp: add displayPort driver support drm/msm/dp: add support for DP PLL driver .../devicetree/bindings/display/msm/dp.txt | 249 +++ .../devicetree/bindings/display/msm/dpu.txt | 16 +- drivers/gpu/drm/msm/Kconfig | 24 + drivers/gpu/drm/msm/Makefile | 18 + drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 20 + drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.h | 26 + drivers/gpu/drm/msm/dp/dp_aux.c | 548 +++++++ drivers/gpu/drm/msm/dp/dp_aux.h | 37 + drivers/gpu/drm/msm/dp/dp_catalog.c | 996 ++++++++++++ drivers/gpu/drm/msm/dp/dp_catalog.h | 108 ++ drivers/gpu/drm/msm/dp/dp_ctrl.c | 1611 ++++++++++++++++++++ drivers/gpu/drm/msm/dp/dp_ctrl.h | 36 + drivers/gpu/drm/msm/dp/dp_display.c | 991 ++++++++++++ drivers/gpu/drm/msm/dp/dp_display.h | 31 + drivers/gpu/drm/msm/dp/dp_drm.c | 189 +++ drivers/gpu/drm/msm/dp/dp_drm.h | 20 + drivers/gpu/drm/msm/dp/dp_extcon.c | 228 +++ drivers/gpu/drm/msm/dp/dp_extcon.h | 85 ++ drivers/gpu/drm/msm/dp/dp_link.c | 1216 +++++++++++++++ drivers/gpu/drm/msm/dp/dp_link.h | 132 ++ drivers/gpu/drm/msm/dp/dp_panel.c | 504 ++++++ drivers/gpu/drm/msm/dp/dp_panel.h | 91 ++ drivers/gpu/drm/msm/dp/dp_parser.c | 621 ++++++++ drivers/gpu/drm/msm/dp/dp_parser.h | 199 +++ drivers/gpu/drm/msm/dp/dp_power.c | 733 +++++++++ drivers/gpu/drm/msm/dp/dp_power.h | 52 + drivers/gpu/drm/msm/dp/dp_reg.h | 475 ++++++ drivers/gpu/drm/msm/dp/pll/dp_pll.c | 145 ++ drivers/gpu/drm/msm/dp/pll/dp_pll.h | 56 + drivers/gpu/drm/msm/dp/pll/dp_pll_10nm.c | 393 +++++ drivers/gpu/drm/msm/dp/pll/dp_pll_10nm.h | 86 ++ drivers/gpu/drm/msm/dp/pll/dp_pll_10nm_util.c | 522 +++++++ drivers/gpu/drm/msm/msm_drv.c | 2 + drivers/gpu/drm/msm/msm_drv.h | 41 + 35 files changed, 10499 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/msm/dp.txt create mode 100644 drivers/gpu/drm/msm/dp/dp_aux.c create mode 100644 drivers/gpu/drm/msm/dp/dp_aux.h create mode 100644 drivers/gpu/drm/msm/dp/dp_catalog.c create mode 100644 drivers/gpu/drm/msm/dp/dp_catalog.h create mode 100644 drivers/gpu/drm/msm/dp/dp_ctrl.c create mode 100644 drivers/gpu/drm/msm/dp/dp_ctrl.h create mode 100644 drivers/gpu/drm/msm/dp/dp_display.c create mode 100644 drivers/gpu/drm/msm/dp/dp_display.h create mode 100644 drivers/gpu/drm/msm/dp/dp_drm.c create mode 100644 drivers/gpu/drm/msm/dp/dp_drm.h create mode 100644 drivers/gpu/drm/msm/dp/dp_extcon.c create mode 100644 drivers/gpu/drm/msm/dp/dp_extcon.h create mode 100644 drivers/gpu/drm/msm/dp/dp_link.c create mode 100644 drivers/gpu/drm/msm/dp/dp_link.h create mode 100644 drivers/gpu/drm/msm/dp/dp_panel.c create mode 100644 drivers/gpu/drm/msm/dp/dp_panel.h create mode 100644 drivers/gpu/drm/msm/dp/dp_parser.c create mode 100644 drivers/gpu/drm/msm/dp/dp_parser.h create mode 100644 drivers/gpu/drm/msm/dp/dp_power.c create mode 100644 drivers/gpu/drm/msm/dp/dp_power.h create mode 100644 drivers/gpu/drm/msm/dp/dp_reg.h create mode 100644 drivers/gpu/drm/msm/dp/pll/dp_pll.c create mode 100644 drivers/gpu/drm/msm/dp/pll/dp_pll.h create mode 100644 drivers/gpu/drm/msm/dp/pll/dp_pll_10nm.c create mode 100644 drivers/gpu/drm/msm/dp/pll/dp_pll_10nm.h create mode 100644 drivers/gpu/drm/msm/dp/pll/dp_pll_10nm_util.c