Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5128231ybl; Tue, 10 Dec 2019 00:37:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyfYeyjddwcsJ8uJXF+hge6SpHRhdoTYv5blg3z1kkDJHemKDz3P/76w9vQjRLjcbKzhEzr X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr25591438otr.176.1575967050471; Tue, 10 Dec 2019 00:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575967050; cv=none; d=google.com; s=arc-20160816; b=XwI+V6JI5rONXn1mTFcpW4CJAlfB9tRL1bvfoNnohmPiQoF2gS4lXCxyuMo5uRvFwa dazSiAqRHMT2dHSArxACEc5qOGuvuBvi9d+dd9kyJMh4vxo/ma7CRuH7Gj92GiX4GBfO bVYBNN0VSmdJB9C57gNuQrAdS+Q8SpWAoCCqGZP8EKooR9Zm57IQAXixYe2EqA1e7ZrA D8NNxlg1YqXTi2pPnIeHEgGXseWP3krchi9gbhiDT7vZx5B9GRAH/HsqbByiqSXVtXBZ Sqmotu/DLz8eX4t6OJSGBidKHk+92W7QrnSMGoFJNcV/MEIBD2FAOgTkkseHea/KhXyF lgDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4fsnlSubZghOrO7JimNuHIfleyU8iOvTlpKskXRjns4=; b=wjLBDt2CIMAjJxxQg3aqBATxjGELJRJoL49Fjld78if9hM0fVbeOEDOQ1yH5ihufaM 8aujugEHsQB9kMfvxAMFjqDG6vtuloR+Tzsz2+J8RgsEdQJDQIGa9pfHqZ3bUeuBLKuR eooMj4UyUFXgyRYI9WgRF1D96dgbeojGGe04Y48b3oXUOg1Idast/FOzRqmrgSN9ZmtC 1qjFqC7AUx9BFzaDgPdwGa0YuY4xrK6iqSvIk494mv0enq1/IMusStV2UXEc1jUwYSSC s6ANgb8x7PHof3q2VL+dcvI3osU+plNgyW5aT0W7/d4ME15XiTqp+NETsAQSX6V2+Rqo I6Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ii/ucN1r"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b79si1515458oii.162.2019.12.10.00.37.16; Tue, 10 Dec 2019 00:37:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ii/ucN1r"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbfLJIgq (ORCPT + 99 others); Tue, 10 Dec 2019 03:36:46 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:46878 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbfLJIgp (ORCPT ); Tue, 10 Dec 2019 03:36:45 -0500 Received: by mail-pj1-f66.google.com with SMTP id z21so7093818pjq.13 for ; Tue, 10 Dec 2019 00:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4fsnlSubZghOrO7JimNuHIfleyU8iOvTlpKskXRjns4=; b=ii/ucN1rxj6JCmjxSTHN0ekVilVInrhHQyAguU/mv0gKySpU4EjFHUaHdJuuyNk9JB Vq+dOrrAV7d9WfTjY9U9elkS4HYOCUJ3ZalqlnkA0ef92RlCeY/GQYodU7L2NN3TClyH /EFpbokRIHQkuzlttz2O6XpRD26LC8mkKrPAvSPr+H8T4GGOpVFbCAnWe8JCqi8ie6ol dcFWtfU2TLobl0bPIs0LcI8pDnBNRpR3yUUFg+XNGZaQfYmAwPMkUqciQ2rF2y5OPlbM 9fLRzLs0edzrKB+VWw2OrxqgnWcMPJk1tfW8yqekQsa8bCu6YI9eTvsaTIpQ9Jj5TO71 VRUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4fsnlSubZghOrO7JimNuHIfleyU8iOvTlpKskXRjns4=; b=GQeo8xOJnp1uOPhC5QO7IIJP3R4S4h6jNf63v77Q7Lxuw9mv9gvTZUm/j6YWu168r1 Rr37vnEIaE/wKNV+4l9WbHHHkc/DMfHjjcGERPFpULsTtrCd0nvpCU18HF7+NWzjkNVj QCfx/PiyXFVYV6JylmElIuEb58sqZ823kg6YWeC0/XnV3cYFB+8BS4PtyydEp2WBkiA2 sbBs5NfQrmsWUdgLEhpOv5ULLqCvsVdgk8sOYGYoR9lcXvgi/1tRIQnrJTQUc9OAnBEO CDKyZRlAlrZ37oJHtME/ip+fUk/32Efe2v8Y9Pr0Is0JvNxZ5Dgr+niBvVVhWUESKFmS tAOw== X-Gm-Message-State: APjAAAV+e6sjweCGTkSu4g8h+ZjO3Qx1FcMjIVmdgTB7aPwSixndc79p f748CTTH4ILHLp0LXBZP9lz0Pqja X-Received: by 2002:a17:90a:a48c:: with SMTP id z12mr4193037pjp.38.1575967004921; Tue, 10 Dec 2019 00:36:44 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id y128sm2246632pfg.17.2019.12.10.00.36.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Dec 2019 00:36:44 -0800 (PST) From: Kevin Tang To: airlied@linux.ie, daniel@ffwll.ch, kevin3.tang@gmail.com Cc: orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH RFC 0/8] Add Unisoc's drm kms module Date: Tue, 10 Dec 2019 16:36:27 +0800 Message-Id: <1575966995-13757-1-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch is our Unisoc's new drm display driver, This driver provides support for the Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. This patch include display controller, mipi dsi and mipi dphy support for Unisoc's display subsystem. Best, Kevin Tang Kevin Tang (8): dt-bindings: display: add Unisoc's drm master bindings drm/sprd: add Unisoc's drm kms master dt-bindings: display: add Unisoc's dpu bindings drm/sprd: add Unisoc's drm display controller driver dt-bindings: display: add Unisoc's mipi dsi&dphy bindings drm/sprd: add Unisoc's drm mipi dsi&dphy driver dt-bindings: display: add Unisoc's generic mipi panel bindings drm/sprd: add Unisoc's drm generic mipi panel driver .../devicetree/bindings/display/sprd/dphy.txt | 49 + .../devicetree/bindings/display/sprd/dpu.txt | 55 + .../devicetree/bindings/display/sprd/drm.txt | 18 + .../devicetree/bindings/display/sprd/dsi.txt | 68 + .../devicetree/bindings/display/sprd/panel.txt | 110 ++ drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/sprd/Kconfig | 14 + drivers/gpu/drm/sprd/Makefile | 17 + drivers/gpu/drm/sprd/disp_lib.c | 290 ++++ drivers/gpu/drm/sprd/disp_lib.h | 40 + drivers/gpu/drm/sprd/dphy/Makefile | 7 + drivers/gpu/drm/sprd/dphy/pll/Makefile | 3 + drivers/gpu/drm/sprd/dphy/pll/megacores_sharkle.c | 640 +++++++++ drivers/gpu/drm/sprd/dphy/sprd_dphy_api.c | 254 ++++ drivers/gpu/drm/sprd/dphy/sprd_dphy_hal.h | 329 +++++ drivers/gpu/drm/sprd/dpu/Makefile | 8 + drivers/gpu/drm/sprd/dpu/dpu_r2p0.c | 1464 ++++++++++++++++++++ drivers/gpu/drm/sprd/dsi/Makefile | 7 + drivers/gpu/drm/sprd/dsi/core/Makefile | 3 + drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0.c | 1186 ++++++++++++++++ drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0.h | 1417 +++++++++++++++++++ drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0_ppi.c | 392 ++++++ drivers/gpu/drm/sprd/dsi/sprd_dsi_api.c | 544 ++++++++ drivers/gpu/drm/sprd/dsi/sprd_dsi_api.h | 28 + drivers/gpu/drm/sprd/dsi/sprd_dsi_hal.h | 1102 +++++++++++++++ drivers/gpu/drm/sprd/sprd_dphy.c | 235 ++++ drivers/gpu/drm/sprd/sprd_dphy.h | 121 ++ drivers/gpu/drm/sprd/sprd_dpu.c | 1152 +++++++++++++++ drivers/gpu/drm/sprd/sprd_dpu.h | 217 +++ drivers/gpu/drm/sprd/sprd_drm.c | 287 ++++ drivers/gpu/drm/sprd/sprd_drm.h | 19 + drivers/gpu/drm/sprd/sprd_dsi.c | 722 ++++++++++ drivers/gpu/drm/sprd/sprd_dsi.h | 210 +++ drivers/gpu/drm/sprd/sprd_gem.c | 178 +++ drivers/gpu/drm/sprd/sprd_gem.h | 30 + drivers/gpu/drm/sprd/sprd_panel.c | 778 +++++++++++ drivers/gpu/drm/sprd/sprd_panel.h | 114 ++ 38 files changed, 12111 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/dphy.txt create mode 100644 Documentation/devicetree/bindings/display/sprd/dpu.txt create mode 100644 Documentation/devicetree/bindings/display/sprd/drm.txt create mode 100644 Documentation/devicetree/bindings/display/sprd/dsi.txt create mode 100644 Documentation/devicetree/bindings/display/sprd/panel.txt create mode 100644 drivers/gpu/drm/sprd/Kconfig create mode 100644 drivers/gpu/drm/sprd/Makefile create mode 100644 drivers/gpu/drm/sprd/disp_lib.c create mode 100644 drivers/gpu/drm/sprd/disp_lib.h create mode 100644 drivers/gpu/drm/sprd/dphy/Makefile create mode 100644 drivers/gpu/drm/sprd/dphy/pll/Makefile create mode 100644 drivers/gpu/drm/sprd/dphy/pll/megacores_sharkle.c create mode 100644 drivers/gpu/drm/sprd/dphy/sprd_dphy_api.c create mode 100644 drivers/gpu/drm/sprd/dphy/sprd_dphy_hal.h create mode 100644 drivers/gpu/drm/sprd/dpu/Makefile create mode 100644 drivers/gpu/drm/sprd/dpu/dpu_r2p0.c create mode 100644 drivers/gpu/drm/sprd/dsi/Makefile create mode 100644 drivers/gpu/drm/sprd/dsi/core/Makefile create mode 100644 drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0.c create mode 100644 drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0.h create mode 100644 drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0_ppi.c create mode 100644 drivers/gpu/drm/sprd/dsi/sprd_dsi_api.c create mode 100644 drivers/gpu/drm/sprd/dsi/sprd_dsi_api.h create mode 100644 drivers/gpu/drm/sprd/dsi/sprd_dsi_hal.h create mode 100644 drivers/gpu/drm/sprd/sprd_dphy.c create mode 100644 drivers/gpu/drm/sprd/sprd_dphy.h create mode 100644 drivers/gpu/drm/sprd/sprd_dpu.c create mode 100644 drivers/gpu/drm/sprd/sprd_dpu.h create mode 100644 drivers/gpu/drm/sprd/sprd_drm.c create mode 100644 drivers/gpu/drm/sprd/sprd_drm.h create mode 100644 drivers/gpu/drm/sprd/sprd_dsi.c create mode 100644 drivers/gpu/drm/sprd/sprd_dsi.h create mode 100644 drivers/gpu/drm/sprd/sprd_gem.c create mode 100644 drivers/gpu/drm/sprd/sprd_gem.h create mode 100644 drivers/gpu/drm/sprd/sprd_panel.c create mode 100644 drivers/gpu/drm/sprd/sprd_panel.h -- 2.7.4