Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1725392ybh; Fri, 13 Mar 2020 06:23:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtFbmd6zsZXr5b1h/n1yrHjwoCfJadrfeYMMaYaOicj4Q8HulVnLBlhOywiUim+2eht5asD X-Received: by 2002:a05:6830:134b:: with SMTP id r11mr5637366otq.305.1584105814887; Fri, 13 Mar 2020 06:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584105814; cv=none; d=google.com; s=arc-20160816; b=WKDNqsl0QWbYLmGzXhjMqzUxZrjSf5ry8EJTIFwe4lAb1xxlRFB9ErSTPD0CMj45GR nsGr2W1gabqqy8e4QTP1EF5S2zOiplkl65cimxT5T0+tB+7phgQ/i/tVxw0L77VTKEIo QesVQzYV6Ageaj7o4zjFr9NCN0xD3ypuaFJTNGpd4W0zqvB2+Kxn2wSYGMNMmDs0vyiq CJyT1B6EU3Hky2EQZWVMvi2I/kcF8HghEKjeR8RkfV+7f12jRNCHH6S1IjfgyETaOuCf +STJoHbaET5fJQzDX8kp28p5AJoA86HcOqyozrmBAjLMlTLLh92/jf7fTY7qhUE3lV8I xYTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=B+9gQRKH0r6cXrfSn2IAMlVbz7jd8cPpe3Mc+AzVAAg=; b=d8lF9VE4lsMN7RpmYNFbq342MAB2zuxpo5W8rwlxpRw5ZQdO03DjeH3nfXQ7Ija5IC TtoLVx1G+3KP9oWknGUookjUfmN6UgMG+BC2fNwCk1k6Lvb+I15Py9LgDssEGge65MuF C0nTaWH8QsTiaNB6+TeE9NhgYClzJl+ti80fPx/FmuukV1IY6N5rnOVQddnHhC2Dy7a2 ath5ixwxkHeOeBrEJXqp+llpcwWFpHk3EqxFwfN6J1nZsSUqV92oaAw5n61VO0cowcsN 9ETN7ZbgdFCtx+bIZe/OthMkMxLYQupaZKZj73ohIKL0AFGtjXQUcE9+KCCbFdSXysiz ZhQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ICsrXM2d; 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 c22si4375022otr.97.2020.03.13.06.23.17; Fri, 13 Mar 2020 06:23:34 -0700 (PDT) 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=ICsrXM2d; 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 S1726597AbgCMNW5 (ORCPT + 99 others); Fri, 13 Mar 2020 09:22:57 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46645 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgCMNW4 (ORCPT ); Fri, 13 Mar 2020 09:22:56 -0400 Received: by mail-pl1-f194.google.com with SMTP id w12so4239862pll.13 for ; Fri, 13 Mar 2020 06:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=B+9gQRKH0r6cXrfSn2IAMlVbz7jd8cPpe3Mc+AzVAAg=; b=ICsrXM2dNwzQtNfxw6Ct49D3FdvkapjvgQxEsIe7DVVUinaTsw+rGzqbQ4/OMqE1qV ZYOzVfKlz3hXZ5adK1jLKTXrLPLuszdauaU67pYT4zoIi466tMYkjeDTsbsp9YJC1y55 45xvl6QuxMv82/jxVlwEP9XAgaC0rPvV1I0Nl9mIeumsrAsNx70jOqJ1jVnyVwpOZRgD UIeMUH+H3xHn8oNKmAtOIzpZUguWpHx254IGabDmHMoQtJ6qpgv1GNbXD2L03ylfJ54+ PfEl37h1IR84SeFCsoRPYmSIlqV14N5c45Fxf1zc06NIm5A2KjksBAH2nMAKpeBXQPcn GFEQ== 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; bh=B+9gQRKH0r6cXrfSn2IAMlVbz7jd8cPpe3Mc+AzVAAg=; b=kRrbtXfdnoQefuanuTLNkqG+0wU2n65o5jVNrclwjlL1/wW/0e6gocRyIQRqi5mQTS Hgv6KXPgNZ7Oqr4zaV3SFV4CVGv/VJisE8+IpDCt2pUCzmgFkiTOF5Mit4fzEDkG1NTI W1bUcxmQrr+MKOswq7RgAPZopdhA8f/YQXdNzfvIzY9fdzGoZamUbfb03m3Oaie7tOpy +UkYg+NbR1vFfHjJSkT1hcAWlJdDxkAeKCljUuHoViT4nw0Y9Tk8WaEoxG8VzfD3K+CK O2SkqlpdStpfaflJQWKC7dKkDj3dd2m0Is4VNPd2a/o6OA6tm1wJUN+DqZ628Rt8+6I2 y0Og== X-Gm-Message-State: ANhLgQ0IOrwkRT52FZr1x8trgkbqjTKtY/yzlYu8NUkMIXR45v2muorT xmkM0jflNwTH3mwaNu5+cwk= X-Received: by 2002:a17:90a:1697:: with SMTP id o23mr9762300pja.62.1584105775598; Fri, 13 Mar 2020 06:22:55 -0700 (PDT) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id y9sm21490296pgo.80.2020.03.13.06.22.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Mar 2020 06:22:54 -0700 (PDT) From: Kevin Tang To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com, 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 v5 0/6] Add Unisoc's drm kms module Date: Fri, 13 Mar 2020 21:22:41 +0800 Message-Id: <1584105767-11963-1-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ChangeList: v1: 1. only upstream modeset and atomic at first commit. 2. remove some unused code; 3. use alpha and blend_mode properties; 3. add yaml support; 4. remove auto-adaptive panel driver; 5. bugfix v2: 1. add sprd crtc and plane module for KMS, preparing for multi crtc&encoder 2. remove gem drivers, use generic CMA handlers 3. remove redundant "module_init", all the sub modules loading by KMS v3: 1. multi crtc&encoder design have problem, so rollback to v1 v4: 1. update to gcc-linaro-7.5.0 2. update to Linux 5.6-rc3 3. remove pm_runtime support 4. add COMPILE_TEST, remove unused kconfig 5. "drm_dev_put" on drm_unbind 6. fix some naming convention issue 7. remove semaphore lock for crtc flip 8. remove static variables v5: 1. optimize encoder and connector code implementation 2. use "platform_get_irq" and "platform_get_resource" 3. drop useless function return type, drop unless debug log 4. custom properties should be separate, so drop it 5. use DRM_XXX replase pr_xxx 6. drop dsi&dphy hal callback ops 7. drop unless callback ops checking 8. add comments for sprd dpu structure Kevin Tang (6): 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 .../devicetree/bindings/display/sprd/dphy.yaml | 75 + .../devicetree/bindings/display/sprd/dpu.yaml | 82 ++ .../devicetree/bindings/display/sprd/drm.yaml | 36 + .../devicetree/bindings/display/sprd/dsi.yaml | 98 ++ drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/sprd/Kconfig | 12 + drivers/gpu/drm/sprd/Makefile | 13 + drivers/gpu/drm/sprd/disp_lib.c | 57 + drivers/gpu/drm/sprd/disp_lib.h | 16 + drivers/gpu/drm/sprd/dphy/Makefile | 7 + drivers/gpu/drm/sprd/dphy/pll/Makefile | 3 + drivers/gpu/drm/sprd/dphy/pll/megacores_sharkle.c | 473 +++++++ drivers/gpu/drm/sprd/dphy/sprd_dphy_api.c | 201 +++ drivers/gpu/drm/sprd/dphy/sprd_dphy_api.h | 22 + drivers/gpu/drm/sprd/dpu/Makefile | 7 + drivers/gpu/drm/sprd/dpu/dpu_r2p0.c | 750 ++++++++++ drivers/gpu/drm/sprd/dsi/Makefile | 8 + drivers/gpu/drm/sprd/dsi/core/Makefile | 4 + drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0.c | 964 +++++++++++++ drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0.h | 1477 ++++++++++++++++++++ drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0_ppi.c | 328 +++++ drivers/gpu/drm/sprd/dsi/core/dsi_ctrl_r1p0_ppi.h | 32 + drivers/gpu/drm/sprd/dsi/sprd_dsi_api.c | 590 ++++++++ drivers/gpu/drm/sprd/dsi/sprd_dsi_api.h | 26 + drivers/gpu/drm/sprd/sprd_dphy.c | 209 +++ drivers/gpu/drm/sprd/sprd_dphy.h | 50 + drivers/gpu/drm/sprd/sprd_dpu.c | 526 +++++++ drivers/gpu/drm/sprd/sprd_dpu.h | 173 +++ drivers/gpu/drm/sprd/sprd_drm.c | 227 +++ drivers/gpu/drm/sprd/sprd_drm.h | 18 + drivers/gpu/drm/sprd/sprd_dsi.c | 571 ++++++++ drivers/gpu/drm/sprd/sprd_dsi.h | 108 ++ 33 files changed, 7166 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/dphy.yaml create mode 100644 Documentation/devicetree/bindings/display/sprd/dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/sprd/drm.yaml create mode 100644 Documentation/devicetree/bindings/display/sprd/dsi.yaml 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_api.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/core/dsi_ctrl_r1p0_ppi.h 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/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 -- 2.7.4