From patchwork Thu Feb 7 08:36:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157680 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp366047jaa; Thu, 7 Feb 2019 00:37:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IbLsc+bR+F6F62xzgpYvWzEKCbhBAsaIqUI6pYrLurHgwyhHRzWXc8LRZ0EtiF2Z78m7zRH X-Received: by 2002:a17:902:209:: with SMTP id 9mr15468578plc.288.1549528624397; Thu, 07 Feb 2019 00:37:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549528624; cv=none; d=google.com; s=arc-20160816; b=DwNCIr4xA7WWHRfbs/qOHLoNJqUZW4G0N3Sl/mzH/ysku61pMzUgWszNTmWa2hML97 EzVH9UCF0weASxRsz9mRFQYdw6P6a17b3OLwiQUdCazxBCF2zHgR11lpFXrFFb3RF4Is DenFQYNT1A+gqkjNcLlVLkOCufjII9HPHwK6hnvKbBOBDsOQdqZ+I3xsUjYZpKV0p8ti 7mvwo0bO9FR4uq+z9b45fnfZHi/Y0arb42nva5GP54lgZyfANRRMqTZPoTTrrxt+3LH8 CtgQuzM+eVIXVwuncQLdW/0a8t//PuI7eS9ldtBFgCB9ItvyvnSXIm6xx0wiOFcKZnjQ z8rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=fZsqmT3WaLjfhep03rPnXRBO2nGlqqnch7KveKmipuA=; b=WGgOHV80PMhTf5tLfghoHB959eV4iS21GOKqJp8XMWCcros/OKHd9bBHo/4AnehSzW v4XNtV1RZ/mIsRGx9gI9akgwxgQyJpgu78ud5da7pot1W2Nkcg08+v3HiXjSNVu5oDhC FpHxXoYJaA2PAUXl1LmXodTOKboaPohaWbuNGtO5eGWSjzqk8gPhEa52a7oBR6rfYqO4 LmKE8lMOIGEkbD6LuVrO9/rmaJZzB6fMOpFrBPGzP+tJzFvQDkAC2xAMsARE5Gh2ExL5 fIOdFhhxkEvvV4D3p3wXTJmyQJeRJquISvLEAj/kOw2NqZbY7ILPkCsNDHgfDsyXSlrA NDRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id p22si8133029plr.186.2019.02.07.00.37.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 00:37:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2CB586EC1D; Thu, 7 Feb 2019 08:37:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5EF996EC1A for ; Thu, 7 Feb 2019 08:37:01 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id s5-v6so8506595ljd.12 for ; Thu, 07 Feb 2019 00:37:01 -0800 (PST) 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=JtUMH/35ElTqFW+ykGE8PxkgKLFJgC1+YJuQMFELJkg=; b=Gh8+bIkXEP70X0SuxFpjY4LKy3gsZNMJjnjQVzrKJrRRbdc1oqPT8+1MNCqU0qD2EC MK59rJzuj0yHGRPCbI2WJ6G+NX+rpDAYKSb71V2HZmXWwMx+vWu57BWj62jOfWQ65D0R 7kma9YJARNYV7xsu8CecRbTELScqkj2laobsQ3TTqvFTW/PgjCz/7yMp37Ns3xJVO19U hqgFCqphah+g8yXbz5GwcJRYpBPV8iBbzvpt3kyb4V3AobIePGDZ27yIYKGv4mmPbNCQ pf3htCtk0M+rTCpwX4NTNRG+iSoCWmQS/8gNnjWyZwZ9nlqjqOWwh4Ba01ToMQ+pG4mu 995Q== X-Gm-Message-State: AHQUAuYVZAaBwMwZruLCheo6CBRC4yeMcd/v60HTJT5A/GL56OuxsCBX Ncrr3yiYXrfA8qWpVSj7f0q6Nz98aiU= X-Received: by 2002:a2e:9849:: with SMTP id e9-v6mr300033ljj.9.1549528618031; Thu, 07 Feb 2019 00:36:58 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id l72sm470910lfg.75.2019.02.07.00.36.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 00:36:57 -0800 (PST) From: Linus Walleij To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie Subject: [PATCH 0/4] DRM driver for ST-Ericsson MCDE Date: Thu, 7 Feb 2019 09:36:43 +0100 Message-Id: <20190207083647.20615-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds a driver for the ST-Ericsson MCDE. I had to come up with some way to support passing an external encoder to the simple KMS helper to make DSI work with the simple KMS helper. This work was motivated by the ongoing work on the LIMA driver, as Ux500 has the MALI400 so once that driver is in place as well, there will be a full graphic stack for Ux500 with this display driver, which is pretty neat. Linus Walleij (4): drm/simple_kms_helper: enable use of external encoder drm/mcde: Add device tree bindings drm/mcde: Add new driver for ST-Ericsson MCDE ARM: dts: Ux500: Add MCDE and Samsung display .../devicetree/bindings/display/ste,mcde.txt | 110 ++ Documentation/gpu/drivers.rst | 1 + Documentation/gpu/mcde.rst | 6 + arch/arm/boot/dts/ste-dbx5x0.dtsi | 36 +- arch/arm/boot/dts/ste-href-stuib.dtsi | 25 + arch/arm/boot/dts/ste-href-tvk1281618.dtsi | 25 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_simple_kms_helper.c | 23 +- drivers/gpu/drm/mcde/Kconfig | 18 + drivers/gpu/drm/mcde/Makefile | 3 + drivers/gpu/drm/mcde/mcde_display.c | 1285 +++++++++++++++ drivers/gpu/drm/mcde/mcde_drm.h | 52 + drivers/gpu/drm/mcde/mcde_drv.c | 540 +++++++ drivers/gpu/drm/mcde/mcde_dsi.c | 1376 +++++++++++++++++ 15 files changed, 3493 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/ste,mcde.txt create mode 100644 Documentation/gpu/mcde.rst create mode 100644 drivers/gpu/drm/mcde/Kconfig create mode 100644 drivers/gpu/drm/mcde/Makefile create mode 100644 drivers/gpu/drm/mcde/mcde_display.c create mode 100644 drivers/gpu/drm/mcde/mcde_drm.h create mode 100644 drivers/gpu/drm/mcde/mcde_drv.c create mode 100644 drivers/gpu/drm/mcde/mcde_dsi.c