Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp529768ybl; Fri, 6 Dec 2019 01:54:02 -0800 (PST) X-Google-Smtp-Source: APXvYqw+GTtYB+tD5ApPgkupDEEfk6Ot0/9FFSHj96aF50c9RUCxDbIHWXkwq/N23i4Px6KJM4ox X-Received: by 2002:a54:4807:: with SMTP id j7mr11797785oij.179.1575626042272; Fri, 06 Dec 2019 01:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575626042; cv=none; d=google.com; s=arc-20160816; b=lLBV3i+cGju3f1q29d/JcGpeb0+AcTdv3srsVn9LV1p7MZ1xDw1wRbZHxN1TKp5Gd0 ykrsfDXgVT9rtXCVLrKpGyVBMqoZL7YLMyEXk+VEf10RPmsdEtJtcHEDrUcm2XZjKPlH guTXa7PTGf1x8lSrviKnAauoSdVItysfCEVRxmy77mJM3+8cfc9JV565smkmsZHdlMkk v31V7TmBg7gzv4G7+dVClp0bz7f+68p59/l+ayc4ZclnS+gFDm1kDtbiX4UxTSGTCVTP O3FhA5ix2KxbhQtjcMXW8j7ndVxZOh2fIY/LgKBw3yxntmnO+QWjZfFCdNlP9vZ5exi0 /92g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6Cb0WY0TsveQuUWLlMOeTh1ypBuU9IOXrNUBqae8TdQ=; b=YMn2hopcY0VgZ8niNnypAz1WajdViot5+snKrGGQ5uEUArhbKMAIzQV6ZQ2r3DsKzH Q9Oywlsl3aSoIk+dfsoACfl2lHDMHHwqwybXZ6YlzREwpv3jtYApnqTh0OQGX1PQywk7 3vOXLEQI1QNg/ULKStVa5m+wqFPdC9cT2U4/WRQjb0AJOqxIlnFq4OeGdrxMK7ZVCwNF LyveQK3ugMgK12x1pnJnyUgTVB8mYQgmVWbC2IXFHgHcxh1B4VBSAuDvOXwx77TF+OV2 RDbHqTEayeXCEY/FNz/xbZD5C4X3Oy3GE5ln1dnaO1rgOHWsyoODJJHOtT4iBKbXw5Fn JMow== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l64si6567611oih.2.2019.12.06.01.53.49; Fri, 06 Dec 2019 01:54:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726206AbfLFJxU (ORCPT + 99 others); Fri, 6 Dec 2019 04:53:20 -0500 Received: from inva020.nxp.com ([92.121.34.13]:52468 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfLFJxU (ORCPT ); Fri, 6 Dec 2019 04:53:20 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 25AFD1A05F5; Fri, 6 Dec 2019 10:53:18 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1878C1A05E1; Fri, 6 Dec 2019 10:53:18 +0100 (CET) Received: from fsr-ub1664-121.ea.freescale.net (fsr-ub1664-121.ea.freescale.net [10.171.82.171]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 8826D20395; Fri, 6 Dec 2019 10:53:17 +0100 (CET) From: Laurentiu Palcu To: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: agx@sigxcpu.org, l.stach@pengutronix.de, lukas@mntmn.com, Laurentiu Palcu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/4] Add support for iMX8MQ Display Controller Subsystem Date: Fri, 6 Dec 2019 11:52:37 +0200 Message-Id: <1575625964-27102-1-git-send-email-laurentiu.palcu@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset adds initial DCSS support for iMX8MQ chip. Initial support includes only graphics plane support (no video planes), no HDR10 capabilities, no graphics decompression (only linear, tiled and super-tiled buffers allowed). Support for the rest of the features will be added incrementally, in subsequent patches. The patchset was tested with both HDP driver (not yet upstreamed) and MIPI-DSI (drivers already on the dri-devel ML). Thanks, Laurentiu Changes in v3: * rebased to latest linux-next and made it compile as drmP.h was removed; * removed the patch adding the VIDEO2_PLL clock. It's already applied; * removed an unnecessary 50ms sleep in the dcss_dtg_sync_set(); * fixed a a spurious hang reported by Lukas Hartmann and encountered by me several times; * mask DPR and DTG interrupts by default, as they may come enabled from U-boot; Changes in v2: * Removed '0x' in node's unit-address both in DT and yaml; * Made the address region size lowercase, to be consistent; * Removed some left-over references to P010; * Added a Kconfig dependency of DRM && ARCH_MXC. This will also silence compilation issues reported by kbuild for other architectures; Laurentiu Palcu (4): drm/imx: compile imx directory by default drm/imx: Add initial support for DCSS on iMX8MQ dt-bindings: display: imx: add bindings for DCSS arm64: dts: imx8mq: add DCSS node .../bindings/display/imx/nxp,imx8mq-dcss.yaml | 86 +++ arch/arm64/boot/dts/freescale/imx8mq.dtsi | 25 + drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/imx/Kconfig | 2 + drivers/gpu/drm/imx/Makefile | 1 + drivers/gpu/drm/imx/dcss/Kconfig | 8 + drivers/gpu/drm/imx/dcss/Makefile | 6 + drivers/gpu/drm/imx/dcss/dcss-blkctl.c | 75 ++ drivers/gpu/drm/imx/dcss/dcss-crtc.c | 224 ++++++ drivers/gpu/drm/imx/dcss/dcss-ctxld.c | 447 +++++++++++ drivers/gpu/drm/imx/dcss/dcss-dev.c | 286 +++++++ drivers/gpu/drm/imx/dcss/dcss-dev.h | 195 +++++ drivers/gpu/drm/imx/dcss/dcss-dpr.c | 550 ++++++++++++++ drivers/gpu/drm/imx/dcss/dcss-drv.c | 181 +++++ drivers/gpu/drm/imx/dcss/dcss-dtg.c | 442 +++++++++++ drivers/gpu/drm/imx/dcss/dcss-kms.c | 322 ++++++++ drivers/gpu/drm/imx/dcss/dcss-kms.h | 52 ++ drivers/gpu/drm/imx/dcss/dcss-plane.c | 418 +++++++++++ drivers/gpu/drm/imx/dcss/dcss-scaler.c | 826 +++++++++++++++++++++ drivers/gpu/drm/imx/dcss/dcss-ss.c | 179 +++++ 20 files changed, 4326 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/imx/nxp,imx8mq-dcss.yaml create mode 100644 drivers/gpu/drm/imx/dcss/Kconfig create mode 100644 drivers/gpu/drm/imx/dcss/Makefile create mode 100644 drivers/gpu/drm/imx/dcss/dcss-blkctl.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-crtc.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-ctxld.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-dev.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-dev.h create mode 100644 drivers/gpu/drm/imx/dcss/dcss-dpr.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-drv.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-dtg.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-kms.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-kms.h create mode 100644 drivers/gpu/drm/imx/dcss/dcss-plane.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-scaler.c create mode 100644 drivers/gpu/drm/imx/dcss/dcss-ss.c -- 2.7.4