From patchwork Sun Aug 13 15:11:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 109957 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3299122qge; Sun, 13 Aug 2017 08:12:26 -0700 (PDT) X-Received: by 10.98.102.74 with SMTP id a71mr22549500pfc.73.1502637146154; Sun, 13 Aug 2017 08:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502637146; cv=none; d=google.com; s=arc-20160816; b=A+J91g5b4pz6tjC9MOoayb2IC3BUYVaN7IDDkFRO6XXXjicLPpDGJEheXk71bDhFMk mLkOrGt/NJJS3oNYBhOdSz1S7RtfrdwARcqSeOxGjYe0bzv+GlR9StU2hxUHD1/DfThN JpUV655U5MqObEuu/IIGXm7rlvptOvfZFyX5yBVbIBi81ulzrt6CybpJscUGrDPkl1vP 5PkMrOoMwgprlWqhtOvyBYLCQpDOqk2LpIWwVL+X2jOpci/LhQVkDY2SIg071jpw6kDw eJtt/q/YXyow7CBwZ5FZ8iF46uwS2Q9gH5pv/dmJo/wD+y0V9PdzkLoQ1JnWdwZ+TIGz FihA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=S+2ze5veMTPiG1XqBbX8O8rVN24p5p3qvXWTHSB6pAU=; b=gOxuLz5y4jl9zSYMJazPtjXxM9QdXm182p7Km8KJufu1S5PSdkWOA4xFBvKpLLqowH VYVRoKnOnMZgpOaD3OT/iScpfx/prDbSW8YySQ5uTrpYWvBlfJITpx9uQw5+kMAPElg+ pYAvYSg9omxk06BwyjN13K9eSwv6wEdx/bGFvbcL62l67oVG9G5+Bq557wdDtB+S9LqF gNQfHnNMCddDY3UOHCHr0C99hFTl575iqknLVlwtzeB2pXQwXbP5zJJBTp87+Ly22Dif Wuff/N8nUzJHvZNToEoVJ/lvo7HoGidpRw9c3rEpt7SqgcPIyDTmCKkvBvxaEHyUSlfD YYNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RvD4EbEM; 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 t207si2990382pgb.740.2017.08.13.08.12.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Aug 2017 08:12:26 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RvD4EbEM; 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 2082C8936B; Sun, 13 Aug 2017 15:11:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 701158936B for ; Sun, 13 Aug 2017 15:11:52 +0000 (UTC) Received: by mail-lf0-x22f.google.com with SMTP id o85so31371308lff.3 for ; Sun, 13 Aug 2017 08:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=JZZDRf8ZZ24brdLcyHkHbHW+w5OvyKDvq7gRMu2qARQ=; b=RvD4EbEMFhBdUt2nJbyFlV6NgEWinma4Pg5gGf2mSbputqfdbbYBya9FTZmYj2cmxh fLAh7c8pfhFfq15GtgAmcDthkPbViKYJlu9wN5WwwNd743VqQ/VJzkBSlXVSOR9osSOb NxY/yK2plMvdBCz2AAdMnfintJ3LUILV2kusY= 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=JZZDRf8ZZ24brdLcyHkHbHW+w5OvyKDvq7gRMu2qARQ=; b=VsL/aSP+5Imj3exr2uUpe8zyDdaSuFb/rIiHvvu0O54LY9Js783+XvXWqUK/DgktGY Xyk3NAkr6H1se6CSWXGlGJEEJCmi1j1b/E2XbQt/GJcGzMEu1adzGyX8KzphQSGvmw0V gVznKgaCdWGHAEu0UgENm2YpYpxmkePwM6IclLlN0sX0O8U6Hwb34M5rayzanShpnVPU UCda93V/RqusUik1yOZMFmluQNYkgOsi76gRRpixZPacgErHgOcVzqI65dcpkepw3gN5 iu0fXT6q6oXqmO1cUESOwAMUOHI0e1tyEsdNW+DHxIWFwyd/FcI37dz4hpcjttCpqxF+ pC9w== X-Gm-Message-State: AHYfb5gLtmlnCgl50ZZ/lYNpqc/3+ydpvS95kC+9nggl+leiJBaaEuBD Yrnp2D0E8k8jYTRF/6GSnA== X-Received: by 10.25.19.85 with SMTP id j82mr6394790lfi.155.1502637110369; Sun, 13 Aug 2017 08:11:50 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-277e71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.126.39]) by smtp.gmail.com with ESMTPSA id e195sm1064062lfg.17.2017.08.13.08.11.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Aug 2017 08:11:39 -0700 (PDT) From: Linus Walleij To: dri-devel@lists.freedesktop.org, Eric Anholt , Daniel Vetter , Jani Nikula , Sean Paul Subject: [PATCH 0/4] DRM driver for Faraday TVE200 Date: Sun, 13 Aug 2017 17:11:28 +0200 Message-Id: <20170813151132.24736-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.4 Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" I finally got my act together to clean up my patches and post this DRM driver. It's an old hardware, but using all the new fancy CMA helpers and integrating really nicely I think. Most important: it JustWorks(TM) and i have a little penguin and interactive console on my D-Link DIR-685 router (!). Well that is not a serious usecase, but it kind of proves that it does all it should. Vblank interrupts work like a charm and all. It would not have been possible if I hadn't had Eric Anholts excellent PL11x driver to use as role model. Daniel, Eric: please help me out with the next steps in your maintenance model, so I learn how to do this upstream work right with the DRM community. I posted the display driver separately since it is, well a separate business. I guess Thierry collects these drivers, else tell me. Linus Walleij (4): drm/tve200: Add DT bindings drm/tve200: Add new driver for TVE200 ARM: dts: Add TVE200 to the Gemini SoC DTSI ARM: dts: Add TVE/TVC and ILI9322 panel to DIR-685 .../devicetree/bindings/display/faraday,tve200.txt | 41 +++ Documentation/gpu/index.rst | 1 + Documentation/gpu/tve200.rst | 6 + MAINTAINERS | 6 + arch/arm/boot/dts/gemini-dlink-dir-685.dts | 77 ++++- arch/arm/boot/dts/gemini.dtsi | 19 ++ drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/tve200/Kconfig | 15 + drivers/gpu/drm/tve200/Makefile | 5 + drivers/gpu/drm/tve200/tve200_connector.c | 126 ++++++++ drivers/gpu/drm/tve200/tve200_display.c | 346 +++++++++++++++++++++ drivers/gpu/drm/tve200/tve200_drm.h | 129 ++++++++ drivers/gpu/drm/tve200/tve200_drv.c | 277 +++++++++++++++++ 14 files changed, 1050 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/faraday,tve200.txt create mode 100644 Documentation/gpu/tve200.rst create mode 100644 drivers/gpu/drm/tve200/Kconfig create mode 100644 drivers/gpu/drm/tve200/Makefile create mode 100644 drivers/gpu/drm/tve200/tve200_connector.c create mode 100644 drivers/gpu/drm/tve200/tve200_display.c create mode 100644 drivers/gpu/drm/tve200/tve200_drm.h create mode 100644 drivers/gpu/drm/tve200/tve200_drv.c