From patchwork Fri Sep 1 09:36:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 111467 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp785335qge; Fri, 1 Sep 2017 02:36:52 -0700 (PDT) X-Received: by 10.98.105.8 with SMTP id e8mr1690345pfc.74.1504258612683; Fri, 01 Sep 2017 02:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504258612; cv=none; d=google.com; s=arc-20160816; b=OE4rIqhfH/R7mXiqJ7sA8z5XX8n8Qkm2t4aDtBWncuVRYCqXuvSmAWCbxKRLYjXufX /nt/JROm2ZGBotWadFmdvafCQm3SL4tTBgRViH2coQGFP72iAc4420zoeszJpYWysfAi QWlpayaMUjBhY2RhiD0eLEE5K3YqLZnbK7E58vG5lrQY71AdvxesNaUgy+wmDunhTmr9 AWRRTVMHRkdRRKKg6+E9Bm2O6IzTjfuoC5kT2OqHqsjzqLlsVANIDv46Iy44k3Zt0yma Os1qOrU7hzjBSiwN9I1loOpCfAbe0y9bPQOoOblST4DO1Ica/TPat1ZzVfXqkPMr82D8 X50w== 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=W48t1lLCz5wo15IBqaItGGOv042lKaLZnJxbR5tQC1E=; b=koj8S3Dnad+cTLIGKTMtPMf7ZKDl8shADOBiahlh5laKBpDvbN/s3/fVPc9DuGb6uu vUJH6R9zWYIK6BXarb9nZXFh7YY/YynjBD+UNuRVJcvCq0sDxWTF07NSBlvjfan/o+p2 Y1fLJjUfzcM+T5phvsib3NsZtB/Zyg27yPi6deKTP8syc2ew95KZFfj3hKRtkNwqvay/ 9AdtkjBAr3OJhJTvFGNb08HiJGLU61WRdmlqcx6p+EYVFdmq/eydZSzrGq3p/OaKgxpv 5alBMculaSfAAHhLTpBU5RBaKitlUighH2sjtzt6COihziMfLoVumSZ5cufTTKkuzqAi +4RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MaykWAhs; 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 s24si1602718pfg.122.2017.09.01.02.36.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 02:36:52 -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=MaykWAhs; 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 312AB6E7F7; Fri, 1 Sep 2017 09:36:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id A4D3E6E7F7 for ; Fri, 1 Sep 2017 09:36:49 +0000 (UTC) Received: by mail-lf0-x22d.google.com with SMTP id g18so7317044lfl.2 for ; Fri, 01 Sep 2017 02:36:49 -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=jxe8R/zFWf2NhRqj3VJhPiuUd0VRCfpByIrxofl6kgI=; b=MaykWAhsK1xC0WWdTV7qGHR/Q+6bsIVTagTZHlOCJk34b3Qk/QpMdpJY19LXLU54Qz I6gHCsqOye8IXentxNl1Mtj6AkuI/lTOop25fGmS5EJ88Ce83oAdjXXR6Pw3eT92ISxA DdS+9oSuUARBberpq2XyW9pnmWtJtYd2jcI3A= 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=jxe8R/zFWf2NhRqj3VJhPiuUd0VRCfpByIrxofl6kgI=; b=M3HFEU87c4AUeKgzcnZam2tPu2+erv1odQF6995JGi6k7XXcf1+EjanO7oQusjojMG OWRWt7tAkBpH1Aw1m9xx4G4oObcLrzotAUnIX7tLwdkdc+kUAT/hgLC9FqCTcvvo9mwi xkmayz4za9rjjPYlAkY36WPyKQVr4S75hKbTRDrbrIVPOUbTWzprUobcIi4+ar7Y2HJM oBoqBQnCnw0F8K6Hl4W1VivNeo6MJ6x/NSCV/ge4dnCjhZ1/TV2GlhSL3SHS16lJkTr7 pdB2iMw0WDY+V4QRkxQtSnJXnZRVMj91velQOjxQXwi7M99RW9t3K7N7otFPbES1bgfB 86iw== X-Gm-Message-State: AHPjjUg3NPIWx5sSv0pb5RfJThi4PC70+u6plxXOjGyRd/6oa3xaqAgH 00tT6T+SD2R4hsWT X-Google-Smtp-Source: ADKCNb52zZcDCmMUcArCcdDRpFeaCWAYrmVXgK1KM+OMqBppG624+eLW56Y7jXGJrn7NHRUOgTJchQ== X-Received: by 10.46.86.212 with SMTP id k81mr491521lje.105.1504258607954; Fri, 01 Sep 2017 02:36:47 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id x18sm328588ljd.85.2017.09.01.02.36.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Sep 2017 02:36:47 -0700 (PDT) From: Linus Walleij To: Daniel Vetter , Jani Nikula , Sean Paul , Eric Anholt Subject: [PATCH 0/7 v2] First set of PL111 enhancements Date: Fri, 1 Sep 2017 11:36:30 +0200 Message-Id: <20170901093637.4041-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.5 Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.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" This is the v2 patch set fixing the review comments (hopefully). Mainly I had to drop the cleverness of wrapping power enablement inside the panel prepare/enable pair and fall back to a 20ms delay as in the framebuffer driver. I hope everyone survives this. Linus Walleij (7): drm/pl111: Cleanup local header file drm/pl111: Add all registers to debugfs drm/pl111: Replace custom connector with panel bridge drm/pl111: Enable PL110 variant drm/pl111: Insert delay before powering up PL11x drm/pl111: Add optional variant display en/disable callbacks drm/pl111: Add handling of Versatile platforms drivers/gpu/drm/pl111/Kconfig | 3 +- drivers/gpu/drm/pl111/Makefile | 4 +- drivers/gpu/drm/pl111/pl111_connector.c | 127 --------------- drivers/gpu/drm/pl111/pl111_debugfs.c | 6 + drivers/gpu/drm/pl111/pl111_display.c | 81 +++++----- drivers/gpu/drm/pl111/pl111_drm.h | 38 +++-- drivers/gpu/drm/pl111/pl111_drv.c | 156 +++++++++++++++--- drivers/gpu/drm/pl111/pl111_versatile.c | 270 ++++++++++++++++++++++++++++++++ drivers/gpu/drm/pl111/pl111_versatile.h | 9 ++ 9 files changed, 489 insertions(+), 205 deletions(-) delete mode 100644 drivers/gpu/drm/pl111/pl111_connector.c create mode 100644 drivers/gpu/drm/pl111/pl111_versatile.c create mode 100644 drivers/gpu/drm/pl111/pl111_versatile.h