Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2190888ybz; Thu, 30 Apr 2020 12:29:49 -0700 (PDT) X-Google-Smtp-Source: APiQypIwfpTXg6RTgMWiBZGy+LbFj4ZJobsCpquC5iLYpLBy4DqpizNhMYzvX8mvmKv0yoJK8o3x X-Received: by 2002:a17:906:5601:: with SMTP id f1mr12235ejq.152.1588274989490; Thu, 30 Apr 2020 12:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588274989; cv=none; d=google.com; s=arc-20160816; b=ubBpXAJxhYtmKBEjImSzYTrtcPpr8Dp7N75z21SErXraKIHfAcpVLxTz/ZTYpyzgVZ 9ocKQM24g43PvVZw8o3+Mp7fzVCCVk0pVd8L5fsja8LsFIyU/b8BWwLTf9lH/VT9d4nx 91DXjmPGkkogQ3w2WGMvwSgIDQZApiTwokr0plCS5/jJ/zayy7+/MQgVJSmUWZhGzBix aiG9s1AAw187FRsK1PkRQqdQ5TNdT9neiTpPYzpy22/gDXV7ry/jnT3SYIa5+wTzZjTU pxElKK9ZmpSdkOlhCjG1B5+YTsNrNkIRCXG2G4IeskTq7qxhmQylyPzw4kSVVfAZywxW Niqg== 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; bh=tG9at74rYrkCS8SQ5ulGagpTLSFNbMg8rE2xG4kP+F4=; b=gUzwJXpLJkcpUG6GWPuQ08oEF8HrwT/HhIaZvRZZsP/vFFDuaDsuh5h3gso5DRHAxs AZzo4hUnkvk3BGJPmmgfiQ65SN34ale99jacCdsPj7tVHadeV0gfsXnDw5IBwEv2Zd8Z jfKKbiLFtDz47m6tWtVbZH/0iTkrpPXQhPlrAasGZynGlLdBl8DYsxFwyEiDsONYYKDC vi1M4L8r4jgvQzGmsqDv3K+UCZo8U4n6cM1mH6UQTPB79j0zus/awKR327lDR3ho/920 ZrQoc9HqCk7uRxzCg3PbbBXEhSx+xtNbKZK7GYQbRbHB/6vjiAYKSzJtZVzHElvFItFG fvUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq24si333779ejb.222.2020.04.30.12.29.25; Thu, 30 Apr 2020 12:29:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbgD3T2D (ORCPT + 99 others); Thu, 30 Apr 2020 15:28:03 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:33957 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbgD3T2D (ORCPT ); Thu, 30 Apr 2020 15:28:03 -0400 X-Originating-IP: 93.29.109.196 Received: from localhost.localdomain (196.109.29.93.rev.sfr.net [93.29.109.196]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 779901C0007; Thu, 30 Apr 2020 19:27:59 +0000 (UTC) From: Paul Kocialkowski To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: David Airlie , Daniel Vetter , Rob Herring , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Paul Kocialkowski , Thomas Petazzoni Subject: [PATCH v6 0/3] drm: LogiCVC display controller support Date: Thu, 30 Apr 2020 21:27:43 +0200 Message-Id: <20200430192746.1866325-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces support for the LogiCVC display controller. The controller is a bit unusual since it is usually loaded as programmable logic on Xilinx FPGAs or Zynq-7000 SoCs. More details are presented on the main commit for the driver. More information about the controller is available on the dedicated web page: https://www.logicbricks.com/Products/logiCVC-ML.aspx Changes since v5: - Subclass DRM device and use devm_drm_dev_alloc for allocation; - Removed call to drm_mode_config_cleanup (done automatically with devm); - Some related code cleanups; - Bring back not-for-merge patch adding colorkey support. Changes since v4: - Updated to internal DRM API changes (rebased on drm-misc-next); - Added Kconfig dependency on OF; - Added MAINTAINERS entry; - Used drm_err and dev_err instead of DRM_ERROR where possible; - Various cosmetic changes. Changes since v3: - Rebased on latest drm-misc; - Improved event lock wrapping; - Added collect tag; - Added color-key support patch (not for merge, for reference only). Changes since v2: - Fixed and slightly improved dt schema. Changes since v1: - Switched dt bindings documentation to dt schema; - Described more possible dt parameters; - Added support for the lvds-3bit interface; - Added support for grabbing syscon regmap from parent node; - Removed layers count property and count layers child nodes instead. Cheers! Paul Kocialkowski (3): dt-bindings: display: Document the Xylon LogiCVC display controller drm: Add support for the LogiCVC display controller NOTFORMERGE: drm/logicvc: Add plane colorkey support .../display/xylon,logicvc-display.yaml | 313 ++++++++ MAINTAINERS | 6 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/logicvc/Kconfig | 9 + drivers/gpu/drm/logicvc/Makefile | 4 + drivers/gpu/drm/logicvc/logicvc_crtc.c | 270 +++++++ drivers/gpu/drm/logicvc/logicvc_crtc.h | 21 + drivers/gpu/drm/logicvc/logicvc_drm.c | 470 +++++++++++ drivers/gpu/drm/logicvc/logicvc_drm.h | 67 ++ drivers/gpu/drm/logicvc/logicvc_interface.c | 238 ++++++ drivers/gpu/drm/logicvc/logicvc_interface.h | 30 + drivers/gpu/drm/logicvc/logicvc_layer.c | 744 ++++++++++++++++++ drivers/gpu/drm/logicvc/logicvc_layer.h | 71 ++ drivers/gpu/drm/logicvc/logicvc_mode.c | 103 +++ drivers/gpu/drm/logicvc/logicvc_mode.h | 15 + drivers/gpu/drm/logicvc/logicvc_of.c | 205 +++++ drivers/gpu/drm/logicvc/logicvc_of.h | 28 + drivers/gpu/drm/logicvc/logicvc_regs.h | 88 +++ 19 files changed, 2685 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/xylon,logicvc-display.yaml create mode 100644 drivers/gpu/drm/logicvc/Kconfig create mode 100644 drivers/gpu/drm/logicvc/Makefile create mode 100644 drivers/gpu/drm/logicvc/logicvc_crtc.c create mode 100644 drivers/gpu/drm/logicvc/logicvc_crtc.h create mode 100644 drivers/gpu/drm/logicvc/logicvc_drm.c create mode 100644 drivers/gpu/drm/logicvc/logicvc_drm.h create mode 100644 drivers/gpu/drm/logicvc/logicvc_interface.c create mode 100644 drivers/gpu/drm/logicvc/logicvc_interface.h create mode 100644 drivers/gpu/drm/logicvc/logicvc_layer.c create mode 100644 drivers/gpu/drm/logicvc/logicvc_layer.h create mode 100644 drivers/gpu/drm/logicvc/logicvc_mode.c create mode 100644 drivers/gpu/drm/logicvc/logicvc_mode.h create mode 100644 drivers/gpu/drm/logicvc/logicvc_of.c create mode 100644 drivers/gpu/drm/logicvc/logicvc_of.h create mode 100644 drivers/gpu/drm/logicvc/logicvc_regs.h -- 2.26.0