From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D33CC433FF for ; Mon, 5 Aug 2019 20:20:20 +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 0BBE0214C6 for ; Mon, 5 Aug 2019 20:20:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YPfZO36Z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0BBE0214C6 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-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.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:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nW7cJ2raMOhfI4ecRNtMasgOvC5lOMXcueN1meIg89o=; b=YPfZO36ZfKaBb9 2cyC65H9XEn6AhS4/5FhAbWanM2FvlYoGrw1BdPz3dRc2kLAc3tzjFPTeATMiC68eyRyIrMtteyNK v9HdK/Ide7+y7Uactcac49uY8JjuQwUD4uAsYYQvDWAdmyQoPGvKs6H23cmXOOzCpI9yO5VOdZAeB Vuyce0sCIIzMfnDM7Q9gmeUmB/wP4tW9ALtLf4zQoNl965tRPSiMMrKlA2ofmpf32ZZf+m1U4DVh6 Fd2Sx0/trookfmHnVf5ldeArYYx1yMmm5iugkVFZeZGA+Pq+9Dxh329yzFoAv/250jYm/DiFGjrpS uu+nwhQ0J8eCHP+rYnhg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hujSt-00010B-CK; Mon, 05 Aug 2019 20:20:19 +0000 Received: from asavdk4.altibox.net ([109.247.116.15]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hujSp-0000zo-0a for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2019 20:20:17 +0000 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 6C84980407; Mon, 5 Aug 2019 22:20:09 +0200 (CEST) Date: Mon, 5 Aug 2019 22:20:08 +0200 From: Sam Ravnborg To: Linus Walleij Subject: Re: [PATCH 3/4 v2] drm/panel: simple: Support TI nspire panels Message-ID: <20190805202008.GA3984@ravnborg.org> References: <20190805085847.25554-1-linus.walleij@linaro.org> <20190805085847.25554-4-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190805085847.25554-4-linus.walleij@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=KKAkSRfTAAAA:8 a=7gkXJVJtAAAA:8 a=e5mUnYsNAAAA:8 a=MlHxxIA_3piCZjP8AjAA:9 a=2FTAOhErDaQBMf8p:21 a=rnw9exMtts0kOuDd:21 a=CjuIK1q_8ugA:10 a=cvBusfyB2V15izCimMoJ:22 a=E9Po1WZjFZOl8hwRPBS3:22 a=Vxmtnl_E_bksehYqCbjh:22 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190805_132015_425508_945FF7E9 X-CRM114-Status: GOOD ( 20.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabian Vogt , Daniel Tang , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Linus, On Mon, Aug 05, 2019 at 10:58:46AM +0200, Linus Walleij wrote: > This adds support for the TI nspire panels to the simple panel > roster. This code is based on arch/arm/mach-nspire/clcd.c. > This includes likely the first grayscale panel supported. > > These panels will be used with the PL11x DRM driver. > > Cc: Daniel Tang > Cc: Fabian Vogt > Tested-by: Fabian Vogt > Signed-off-by: Linus Walleij You can now add my: Reviewed-by: Sam Ravnborg I assume this will be applied as one series and you will do it when ready. Sam > --- > ChangeLog v1->v2: > - Bump clock frequency to 10 MHz after Fabian's trial-and-error > - Changed vsymbol names to ti_nspire_* > - Sorted alphabetically > - Specify positive edge on the classic display bus > --- > drivers/gpu/drm/panel/panel-simple.c | 64 ++++++++++++++++++++++++++++ > 1 file changed, 64 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index 5a93c4edf1e4..96f894b44313 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -2578,6 +2578,64 @@ static const struct panel_desc tianma_tm070rvhg71 = { > .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > }; > > +static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = { > + { > + .clock = 10000, > + .hdisplay = 320, > + .hsync_start = 320 + 50, > + .hsync_end = 320 + 50 + 6, > + .htotal = 320 + 50 + 6 + 38, > + .vdisplay = 240, > + .vsync_start = 240 + 3, > + .vsync_end = 240 + 3 + 1, > + .vtotal = 240 + 3 + 1 + 17, > + .vrefresh = 60, > + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, > + }, > +}; > + > +static const struct panel_desc ti_nspire_cx_lcd_panel = { > + .modes = ti_nspire_cx_lcd_mode, > + .num_modes = 1, > + .bpc = 8, > + .size = { > + .width = 65, > + .height = 49, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, > + .bus_flags = DRM_BUS_FLAG_PIXDATA_NEGEDGE, > +}; > + > +static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = { > + { > + .clock = 10000, > + .hdisplay = 320, > + .hsync_start = 320 + 6, > + .hsync_end = 320 + 6 + 6, > + .htotal = 320 + 6 + 6 + 6, > + .vdisplay = 240, > + .vsync_start = 240 + 0, > + .vsync_end = 240 + 0 + 1, > + .vtotal = 240 + 0 + 1 + 0, > + .vrefresh = 60, > + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, > + }, > +}; > + > +static const struct panel_desc ti_nspire_classic_lcd_panel = { > + .modes = ti_nspire_classic_lcd_mode, > + .num_modes = 1, > + /* The grayscale panel has 8 bit for the color .. Y (black) */ > + .bpc = 8, > + .size = { > + .width = 71, > + .height = 53, > + }, > + /* This is the grayscale bus format */ > + .bus_format = MEDIA_BUS_FMT_Y8_1X8, > + .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, > +}; > + > static const struct drm_display_mode toshiba_lt089ac29000_mode = { > .clock = 79500, > .hdisplay = 1280, > @@ -3029,6 +3087,12 @@ static const struct of_device_id platform_of_match[] = { > }, { > .compatible = "tianma,tm070rvhg71", > .data = &tianma_tm070rvhg71, > + }, { > + .compatible = "ti,nspire-cx-lcd-panel", > + .data = &ti_nspire_cx_lcd_panel, > + }, { > + .compatible = "ti,nspire-classic-lcd-panel", > + .data = &ti_nspire_classic_lcd_panel, > }, { > .compatible = "toshiba,lt089ac29000", > .data = &toshiba_lt089ac29000, > -- > 2.21.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel