From patchwork Wed Aug 30 18:07:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 111333 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1324467qge; Wed, 30 Aug 2017 11:07:28 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4eIaEJjz5V2tEHV+JwpnCtA2Vf0Z0awp2zpnalXL8h9q4xxH0kk00mTxvSQOrujbX1q1VP X-Received: by 10.84.133.14 with SMTP id 14mr3091715plf.44.1504116447943; Wed, 30 Aug 2017 11:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504116447; cv=none; d=google.com; s=arc-20160816; b=f72uwIIXtMIF+K46OB1ghXURTDgaquBEogzRev1RTZRAb9aON3wmHOEp5EcQjmDrAu Gn5HBfPMQTL9nBbQnCw/hKH3rztaZ2N1ybX/h7/Vg0/TcDW8TSp8pLm0ky+bYhkUvgH9 lasRtdyCWhc0eLtbA7o08W05OGZ6WUtyOm1hnXLWvu3lZUpMHmQT3e5tNQUJekc0+qxw vy18VAl6D2Uyr/pp/SWRNO/t6x/fHLNtDJI41HlAG3AkcI7A9wsa8Tq4nZa0UbzhjmdP kpy01+wrZoUBpUWO1QPQwKHzKxbSiQ3T+rExocIGb0KvtKaWa5GRg4UCHms9oGd4P0Sa mqkQ== 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=prFztRAzEGwK4F/SVpcAfhpgXxSt0gT/WHXXu80DV08=; b=YFsB2BK9MX3CHUcCKGzRzmgeKRuzErwnY4M2R4unjsqVmO3Ux2yTzMDvEJ0AJQgvmt mAabVQ7n6BCFRAaXHlaW7NigXBHCVyJkh3Ei0Fj+CnBMCYl7uu/5lDYtE1ekB7SUQiOk neCIHW6+/VRZk1gnd2ZvCx9BZIlSMSkivt25AGZejNA8dTCreMMic4NkMbzd3KhcExBZ qh+F+Ht7qyaSsoWtEOFi/BGoDQ8/VmYPxahli8fYK/e8sGl/btMF8P0zBHD5qgOedJt0 QiPHc4/M/N0SfPExGu0qQp79o8RMD5TkPLXpZGu6cBFQpX4wteaQvYQT0o2JF2Ix4odl zy8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZK95H4OB; 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 b34si4824515pld.109.2017.08.30.11.07.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 11:07:27 -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=ZK95H4OB; 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 8D6676E1B3; Wed, 30 Aug 2017 18:07:26 +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 A034389C14 for ; Wed, 30 Aug 2017 18:07:24 +0000 (UTC) Received: by mail-lf0-x22d.google.com with SMTP id g18so8163491lfl.2 for ; Wed, 30 Aug 2017 11:07:24 -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=/zAW7WnucllsiPKIkenFiHXRad1R/lhOCzTqyN21xG0=; b=ZK95H4OBn8DrCZSoqD9CJ7Bjb9zJ6FLawkuhMvWgKO+Qketnjw4zjoYRQ26TpwjeSs zrIA7VQgEv5+2tH0wgXlww1MRKYHkWgoIi1s5EG0dnjASxX78RgBva6t7FUb0RYMURKD 7jZ8d1PD9r4iyPJB0xty0F0ju1GPUbR8BBRXk= 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=/zAW7WnucllsiPKIkenFiHXRad1R/lhOCzTqyN21xG0=; b=kqbHPJ8eaVm+ua2PfCr/1R/8S9ChFRDGD7t4xq0HHpmIffv0Gl6v68uOUeCE1XRXE+ 48wxS4o08kq01euPVfquBdd4+BEKKouXvvcB8EnIlsKZ3SQCV6REE/rmftdtmS4V6t7w n7zZDxXXd6gwehiFEKHAIoByziYOs/ak+FEHJDlV0wQgly5MMMcLWxHMkMVhk7ROlfgK bmT7wTCIv7QhotduSznHgJt+q+vAu+Am9KvAHhENIsPDkCdhV7zZWSgxF4NI9735EubH Pb29DrfDQkTx8y48tUZWM0BuGxCSusSnVz2StzF4/mw3P+/r8u1tePCfOvxcsLKDw383 Wd4w== X-Gm-Message-State: AHYfb5gANTyjsmGnX+kqAkO9UtYMpVOGW2KrOyvoas+QJRr8vshCx9tu 9BGHbqiFQh0XzUiE X-Received: by 10.46.82.203 with SMTP id n72mr1047783lje.79.1504116442524; Wed, 30 Aug 2017 11:07:22 -0700 (PDT) Received: from genomnajs.bredbandsbolaget.se (c-287571d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.117.40]) by smtp.gmail.com with ESMTPSA id 123sm1177067ljf.80.2017.08.30.11.07.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Aug 2017 11:07:21 -0700 (PDT) From: Linus Walleij To: Daniel Vetter , Jani Nikula , Sean Paul , Eric Anholt Subject: [PATCH 0/7] First set of PL111 enhancements Date: Wed, 30 Aug 2017 20:07:04 +0200 Message-Id: <20170830180711.2791-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" Hi folks, here is the first few patches to enhance the PL111 with the following objectives: - Consolidation - use the panel bridge, which I figured out after some tinkering (yes I will fix TVE200 too). - Handle the PL110 variant - Handle the power-on delay documented in both manuals - Add callbacks to handle subvariants, and a scratch implementation of the Versatile extra register (no Nomadik yet). Next steps will be (I guess) - Make the driver also use the dumb VGA connector bridge for the platforms that simply connects the PL11x to a DAC to VGA - Proper panel driver for the Versatile board - Nomadik and its panel - When things work, stepwise move the ARM platforms using this over to the DRM PL111 driver Stuff that gets properly reviewed I can queue on drm-misc myself these days. 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 | 82 +++++----- drivers/gpu/drm/pl111/pl111_drm.h | 38 +++-- drivers/gpu/drm/pl111/pl111_drv.c | 151 +++++++++++++++--- drivers/gpu/drm/pl111/pl111_versatile.c | 270 ++++++++++++++++++++++++++++++++ drivers/gpu/drm/pl111/pl111_versatile.h | 9 ++ 9 files changed, 491 insertions(+), 199 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