From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 31 Jan 2022 11:23:23 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nETqF-001aEY-QU for lore@lore.pengutronix.de; Mon, 31 Jan 2022 11:23:23 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nETqE-0007vG-Km for lore@pengutronix.de; Mon, 31 Jan 2022 11:23:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:From:In-Reply-To:MIME-Version: References:Message-ID:Subject:Cc:To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=kaJ8eZ/wiGTcT1ZqlAe2ofMYZYcqHjm9AADvJtVZeuk=; b=akhKGHSqctfqUOCxDyMuNNHjgk 58NQfLC8EMhbJJkfbFvzmtm4rCGAKQtRtKaojXA92ntcpYVJY22g5mIzlPGBT+gnt76X3Wam9F7Kh krG+gs7WaCjzJlvMG+NNUtruF3iKwcyBNOZSd8/YrEMCB3yoMRNXYwhofTS1Zwn3YyF1KEcET5xXo COnzX91h6zU8dY/BJUF+NjKi6dzrDSUWTtf+D70com93b2ZI+r2tifBEWN4mMRPn5+3WIepznqXtE rsu5r2j3iLKRAq6+RgrKRehUx7m7rV0oYMgqiZWn7SKfXd4Yf8+p7M6kdwEHjwgJSvGf3LpQO8wU9 B9V6WqFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEToj-008phN-7Y; Mon, 31 Jan 2022 10:21:49 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nETod-008pfT-Jx for barebox@lists.infradead.org; Mon, 31 Jan 2022 10:21:45 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEToc-0007dX-0F; Mon, 31 Jan 2022 11:21:42 +0100 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nETob-0000ZG-NI; Mon, 31 Jan 2022 11:21:41 +0100 Date: Mon, 31 Jan 2022 11:21:41 +0100 To: Ahmad Fatoum Cc: barebox@lists.infradead.org Message-ID: <20220131102141.GC23490@pengutronix.de> References: <20220131080302.1873443-1-a.fatoum@pengutronix.de> <20220131080302.1873443-4-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220131080302.1873443-4-a.fatoum@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:10:06 up 51 days, 18:55, 86 users, load average: 0.23, 0.24, 0.24 User-Agent: Mutt/1.10.1 (2018-07-13) From: Sascha Hauer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220131_022143_696189_7E2ADA9F X-CRM114-Status: GOOD ( 26.81 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:e::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH 3/4] video: add MIPI DBI Type C Option 3 support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) On Mon, Jan 31, 2022 at 09:03:01AM +0100, Ahmad Fatoum wrote: > Import the Linux v5.15 state of the driver to allow easy porting of > MIPI-DBI displays like the Ilitek 9431 added in a follow-up commit. > > Signed-off-by: Ahmad Fatoum > --- > commands/Kconfig | 19 ++ > commands/Makefile | 1 + > commands/mipi_dbi.c | 104 ++++++++ > drivers/video/Kconfig | 14 ++ > drivers/video/Makefile | 1 + > drivers/video/mipi_dbi.c | 467 +++++++++++++++++++++++++++++++++++ > include/spi/spi.h | 20 ++ > include/video/mipi_dbi.h | 105 ++++++++ > include/video/mipi_display.h | 150 +++++++++++ > 9 files changed, 881 insertions(+) > create mode 100644 commands/mipi_dbi.c > create mode 100644 drivers/video/mipi_dbi.c > create mode 100644 include/video/mipi_dbi.h > create mode 100644 include/video/mipi_display.h > > diff --git a/commands/Kconfig b/commands/Kconfig > index ba8ca5cdebce..2e13a4ed90bd 100644 > --- a/commands/Kconfig > +++ b/commands/Kconfig > @@ -1969,6 +1969,25 @@ config CMD_SPI > -w BIT bits per word (default 8) > -v verbose > > +config CMD_MIPI_DBI > + bool > + depends on DRIVER_VIDEO_MIPI_DBI && SPI > + select PRINTF_HEXSTR > + prompt "mipi_dbi command" > + help > + Write/read from MIPI DBI device on SPI bus > + > + Usage: mipi_dbi [-brcmfwv] DATA... > + > + Options: > + -b BUS SPI bus number (default 0) > + -r COUNT bytes to read > + -c chip select (default 0) > + -m MODE SPI mode (default 0) > + -f HZ max speed frequency, in Hz (default 1 MHz) > + -w BIT bits per word (default 8) > + -v verbose This doesn't match the actual command. Copy-paste from CMD_SPI above? > +BAREBOX_CMD_HELP_START(mipi_dbi) > +BAREBOX_CMD_HELP_TEXT("Options:") > +BAREBOX_CMD_HELP_OPT ("-l\t", "list all MIPI DBI devices") > +BAREBOX_CMD_HELP_OPT ("-d DEVICE", "select specific device (default is first registered)") > +BAREBOX_CMD_HELP_OPT ("-w", "issue write command") > +BAREBOX_CMD_HELP_END > + > + > config DRIVER_VIDEO_BACKLIGHT > bool "Add backlight support" > help > @@ -178,4 +181,15 @@ config DRIVER_VIDEO_SIMPLE_PANEL > Linux Kernel implementation this one is able to understand display-timings > nodes so that it's not necessary to keep a list of all known displays > with their corresponding timings in barebox. > + > +config DRIVER_VIDEO_PANEL_ILITEK_ILI9341 > + tristate "Ilitek ILI9341 240x320 QVGA panels" > + depends on OFTREE && SPI > + select DRIVER_VIDEO_MIPI_DBI > + select VIDEO_VPL > + help > + Say Y here if you want to enable support for Ilitek IL9341 > + QVGA (240x320) RGB panels. support serial & parallel rgb > + interface. This hunk should be in 4/4. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox