From patchwork Mon Dec 2 19:32:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11269521 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6A94109A for ; Mon, 2 Dec 2019 19:33:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8199720848 for ; Mon, 2 Dec 2019 19:33:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BRJ85gWH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rv8fH/sz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8199720848 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1YZNkdZ+gLVgV+6pWAZrNa221elMvwCDWK27/jSMUyY=; b=BRJ85gWHdDoSkJ WjmMElm6AicL+p4nhDuDerlE2U23qmTKz8+U96jyeUg8wB3xPJIpgq7GhXvrvh1Kirmems5GTjGfn 1PDEnfnRaH1WHX1UODUgU89ILwd0p7NYDA/j/iZ/r0bk3Zgzen9pFhJGYBW6qIMoIL4jSR+/TEUa+ 3YD3pRr5wBgNW8d5epUuGd3i/ajKeD5LS+gnNp5FfHPKyhbVoq+NdKy78EQo85XeK7Ur7QF0evaEL PAv8OB9GbNWqAuxgYoHtkkABbw/5y4PvR2hWoPtCWltdHsJU4PAcSWDXwMKcegJ6YcZH0oIhdNF8w CZRwmw1f77S+Pw8g+wZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ibrRP-0007Fq-H7; Mon, 02 Dec 2019 19:33:03 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ibrRH-00079U-4I; Mon, 02 Dec 2019 19:32:57 +0000 Received: by mail-lj1-x242.google.com with SMTP id u17so846929lja.4; Mon, 02 Dec 2019 11:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Px82vUxwVdYS4Mjxx8mhOJA3DSFLiLWTz/Jr0WqzflQ=; b=Rv8fH/szdko/cSt0ZWf0c+8ItuVxiAgmuLI1ZBkuiqK8vM4O8VuGwqUdBcv+gKEd8k hn9zuS6bF4Cwd8K7iruTWCqOzM2u8gOV5wvGbJCZX0C2OJMTYECJzEAH/+HVEaRTmLu4 xJD9ZtPktK/A+TRYjGpPTlDXGwte3VVPrpcp7FDHBQaqrhxRD8mTgjk50XoD+vy8zz17 8wFa3fdq1iqS513D5NhMRCmgYQpr5zOwq7R1+of1YXHIGE+xGPCibBorXkbN9FLZ2KXD Srjt9gZ/OGY6ouO/qAmLhYs6CZP3sOkb0qo2hlTKFeivKpBA2DJtKZQY4NZI6CTsNcIY BJ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=Px82vUxwVdYS4Mjxx8mhOJA3DSFLiLWTz/Jr0WqzflQ=; b=Ddva5XneidlNyct7PsnjJ8VmofwuLUE1Q2khxQX9Nl/EWQjhz3FoH7QjWlPMZsOV1F Gy/xM9/Bpc0uYGLBjPCH/QEPyg2tqVGJ1I7ogsG6+TvVdhJPzn2J+fQf+K2p8BO+ZQr0 twqKP1C/s11zCl1GCgyWAmZVUPeXlhGJV+ugpIvOIW45KEWrnVyhKGBB2Ur11suvzzgS kOQcQ+l8p0efjgY2dICQK2QIyM5SDazqGvLxj/Gq/ByEIWy9s4XyPd5K5ahJP5S8m0gm X+67wTt/qLzVsXBxGBTlBWswR+Ngbk60Ks98bGwG9gZrSn4/xvUgomeHoGXo7PXSxC49 LJkw== X-Gm-Message-State: APjAAAUsvrvg6isMaEdA5rObdKCfFAaLjF4Ubb7vzBsBBFc43BfM1mBX WpA8mv/kjQa8jw1tv42lv88= X-Google-Smtp-Source: APXvYqyC2s4HO/mCQoqg6Yj+/bbz/6J90IgpaffWfNVzhViLfwQ5q8ydTcRZqUN6aZQJSg+9GjZx5A== X-Received: by 2002:a2e:8804:: with SMTP id x4mr276109ljh.2.1575315171961; Mon, 02 Dec 2019 11:32:51 -0800 (PST) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g13sm79482lfb.74.2019.12.02.11.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 11:32:51 -0800 (PST) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Laurent Pinchart Subject: [PATCH v1 0/26] drm/panel infrastructure + backlight update Date: Mon, 2 Dec 2019 20:32:04 +0100 Message-Id: <20191202193230.21310-1-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191202_113255_197837_8CBC6961 X-CRM114-Status: GOOD ( 14.33 ) X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sam.ravnborg[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , David Airlie , Linus Walleij , Stefan Agner , Andrzej Hajda , Benjamin Gaignard , linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, Tomi Valkeinen , Jagan Teki , NXP Linux Team , Jitao Shi , Pengutronix Kernel Team , Maarten Lankhorst , Maxime Ripard , linux-mediatek@lists.infradead.org, Abhinav Kumar , linux-tegra@vger.kernel.org, Sean Paul , linux-arm-kernel@lists.infradead.org, Purism Kernel Team , linux-renesas-soc@vger.kernel.org, Boris Brezillon , Daniel Vetter Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org This patchset include a couple of different things - all related to panels. - The panel callbacks are optional - so drop error if callback is not present. - Add support for backlight in drm_panel. This allows us to make much simpler backlight support to most panels. The patchset include conversion of most of the trivial cases. - Drop drm_connector from drm_panel. This change required many changes to most panels and many bridges and display drivers. This is by far the most invasive change in this patchset. - Drop the unused get_timings() callback. No users, so no need to keep it around. With this patchset drm_panel_(attach|detach) are nop's but they are kept for now. A few of these patches has been sent out before - but versioning started again from v1 - as the most patches are new. I have tested the panel-simple changes, and thus some of the infrastructure changes. The testing was done on an earlier iteration - and I ended up submitting this as Laurent and others started to depend on it. Jitao has a patch to add more callbacks, and I wanted the simplification of the callbacks before we add more callbacks. Sam Sam Ravnborg (26): drm/drm_panel: no error when no callback drm/panel: add backlight support drm/panel: simple: use drm_panel backlight support drm: get drm_bridge_panel connector via helper drm/panel: add drm_connector argument to get_modes() drm/panel: decouple connector from drm_panel drm/panel: remove get_timings drm/panel: drop drm_device from drm_panel drm/panel: feiyang-fy07024di26a30d: use drm_panel backlight support drm/panel: ilitek-ili9881c: use drm_panel backlight support drm/panel: innolux-p079zca: use drm_panel backlight support drm/panel: kingdisplay-kd097d04: use drm_panel backlight support drm/panel: lvds: use drm_panel backlight support drm/panel: olimex-lcd-olinuxino: use drm_panel backlight support drm/panel: osd-osd101t2587-53ts: use drm_panel backlight support drm/panel: panasonic-vvx10f034n00: use drm_panel backlight support drm/panel: raydium-rm68200: use drm_panel backlight support drm/panel: rocktech-jh057n00900: use drm_panel backlight support drm/panel: ronbo-rb070d30: use drm_panel backlight support drm/panel: seiko-43wvf1g: use drm_panel backlight support drm/panel: sharp-lq101r1sx01: use drm_panel backlight support drm/panel: sharp-ls043t1le01: use drm_panel backlight support drm/panel: sitronix-st7701: use drm_panel backlight support drm/panel: sitronix-st7789v: use drm_panel backlight support drm/panel: tpo-td028ttec1: use drm_panel backlight support drm/panel: tpo-tpg110: use drm_panel backlight support drivers/gpu/drm/bridge/analogix/analogix-anx6345.c | 2 +- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +- drivers/gpu/drm/bridge/panel.c | 18 +++- drivers/gpu/drm/bridge/parade-ps8622.c | 2 +- drivers/gpu/drm/bridge/tc358764.c | 2 +- drivers/gpu/drm/bridge/tc358767.c | 2 +- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +- drivers/gpu/drm/drm_panel.c | 96 ++++++++++++++---- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 2 +- drivers/gpu/drm/imx/imx-ldb.c | 2 +- drivers/gpu/drm/imx/parallel-display.c | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 2 +- .../gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c | 2 +- drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- drivers/gpu/drm/mxsfb/mxsfb_out.c | 2 +- drivers/gpu/drm/omapdrm/omap_connector.c | 3 +- drivers/gpu/drm/panel/panel-arm-versatile.c | 6 +- .../gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 16 ++- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 20 ++-- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 29 ++---- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 45 +++------ drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 11 ++- drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c | 43 +++----- drivers/gpu/drm/panel/panel-lg-lb035q02.c | 6 +- drivers/gpu/drm/panel/panel-lg-lg4573.c | 12 +-- drivers/gpu/drm/panel/panel-lvds.c | 46 ++------- drivers/gpu/drm/panel/panel-nec-nl8048hl11.c | 6 +- drivers/gpu/drm/panel/panel-novatek-nt39016.c | 6 +- drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c | 27 ++--- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 11 ++- drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c | 37 +++---- .../gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 58 +++-------- .../gpu/drm/panel/panel-raspberrypi-touchscreen.c | 9 +- drivers/gpu/drm/panel/panel-raydium-rm67191.c | 8 +- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 26 +++-- drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c | 35 +++---- drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 31 ++---- drivers/gpu/drm/panel/panel-samsung-ld9040.c | 4 +- drivers/gpu/drm/panel/panel-samsung-s6d16d0.c | 6 +- drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 6 +- drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 6 +- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 6 +- drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c | 4 +- drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 72 +++----------- drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 34 +++---- drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c | 6 +- drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 33 +++---- drivers/gpu/drm/panel/panel-simple.c | 110 ++++++--------------- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 23 ++--- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 49 ++------- drivers/gpu/drm/panel/panel-sony-acx565akm.c | 6 +- drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 20 ++-- drivers/gpu/drm/panel/panel-tpo-td043mtea1.c | 6 +- drivers/gpu/drm/panel/panel-tpo-tpg110.c | 26 ++--- drivers/gpu/drm/panel/panel-truly-nt35597.c | 4 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- drivers/gpu/drm/rcar-du/rcar_lvds.c | 2 +- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 +- drivers/gpu/drm/sti/sti_dvo.c | 2 +- drivers/gpu/drm/sun4i/sun4i_lvds.c | 2 +- drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 +- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 2 +- drivers/gpu/drm/tegra/output.c | 2 +- drivers/gpu/drm/tve200/tve200_drv.c | 2 +- include/drm/drm_bridge.h | 1 + include/drm/drm_panel.h | 49 ++++----- 68 files changed, 460 insertions(+), 664 deletions(-) Reviewed-by: Laurent Pinchart