Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDEB7C433F5 for ; Thu, 24 Feb 2022 19:37:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B95FA10E13F; Thu, 24 Feb 2022 19:37:08 +0000 (UTC) Received: from mx2.smtp.larsendata.com (mx2.smtp.larsendata.com [91.221.196.228]) by gabe.freedesktop.org (Postfix) with ESMTPS id D19CE10E13F for ; Thu, 24 Feb 2022 19:37:06 +0000 (UTC) Received: from mail01.mxhotel.dk (mail01.mxhotel.dk [91.221.196.236]) by mx2.smtp.larsendata.com (Halon) with ESMTPS id 31a4f207-95a9-11ec-b2df-0050568cd888; Thu, 24 Feb 2022 19:37:25 +0000 (UTC) Received: from ravnborg.org (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sam@ravnborg.org) by mail01.mxhotel.dk (Postfix) with ESMTPSA id 13FB4194B5A; Thu, 24 Feb 2022 20:37:10 +0100 (CET) Date: Thu, 24 Feb 2022 20:37:02 +0100 X-Report-Abuse-To: abuse@mxhotel.dk From: Sam Ravnborg To: Noralf =?iso-8859-1?Q?Tr=F8nnes?= Subject: Re: [PATCH v5 5/5] drm/tiny: Add MIPI DBI compatible SPI driver Message-ID: References: <20220224152708.14459-1-noralf@tronnes.org> <20220224152708.14459-6-noralf@tronnes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220224152708.14459-6-noralf@tronnes.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, david@lechnology.com, dave.stevenson@raspberrypi.com, dri-devel@lists.freedesktop.org, robh+dt@kernel.org, thierry.reding@gmail.com, maxime@cerno.tech Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Noralf, On Thu, Feb 24, 2022 at 04:27:08PM +0100, Noralf Trønnes wrote: > Add a driver that will work with most MIPI DBI compatible SPI panels. > This avoids adding a driver for every new MIPI DBI compatible controller > that is to be used by Linux. The 'compatible' Device Tree property with > a '.bin' suffix will be used to load a firmware file that contains the > controller configuration. > > Example (driver will load sainsmart18.bin): > > display@0 { > compatible = "sainsmart18", "panel-mipi-dbi-spi"; > ... > }; > > v5: > - kconfig: s/DRM_KMS_CMA_HELPER/DRM_GEM_CMA_HELPER/ (Sam) > - kconfig: Add select VIDEOMODE_HELPERS (Sam) > - kconfig: Add wiki url in the description (Sam) > - Split out and use of_get_drm_panel_display_mode()(Sam) > - Only use the first compatible to look for a firmware file since the > binding mandates 2 compatibles. > - Make having a firmware file mandatory so we can print an error > message if it's missing to improve the user experience. It's very > unlikely that a controller doesn't need to be initialized and if > it doesn't, it's possible to have a firmware file containing only > a DCS NOP. > > v4: > - Move driver to drm/tiny where the other drivers of its kind are located. > The driver module will not be shared with a future DPI driver after all. > > v3: > - Move properties to DT (Maxime) > - The MIPI DPI spec has optional support for DPI where the controller is > configured over DBI. Rework the command functions so they can be moved > to drm_mipi_dbi and shared with a future panel-mipi-dpi-spi driver > > v2: > - Drop model property and use compatible instead (Rob) > - Add wiki entry in MAINTAINERS > > Acked-by: Maxime Ripard > Signed-off-by: Noralf Trønnes Looks good. Reviewed-by: Sam Ravnborg