Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3042435ybt; Mon, 29 Jun 2020 13:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDKFs6rbz24E6q7I89WHjF0mhvFbhFXAH8P9Bu32IFBr6Z4lRKlj1p2XhCcro60Tgk/PLP X-Received: by 2002:a17:906:4ecf:: with SMTP id i15mr16444990ejv.515.1593463419517; Mon, 29 Jun 2020 13:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593463419; cv=none; d=google.com; s=arc-20160816; b=CHbVQj6QglvQcIL+v8USHZ4xV0zTmVo+xTgzdSA7a+DmnsUtTBizygTLqmhmTwcdx7 BPhbzcPgh1XPqtoe6R0RrXuYQ/8WTW8mH7pL4Ka3s7Gp5u8qpWIGHocdEYKv6uE0k+6b womM5l1Jpwv+cfsAio5w6AJ1shLj0LaDEZf+YvAoLRG0KAyG0UNM0OjtiR7+dOKQxtB+ ZDUbN2rsMxXkQMZVcYiTiViKAV56KM9JzBDg4/j+Ni8UgOhM72IuEYuXA+c/so15HHIU Q8bCAo/++I6V8BYRcUG5kwVj4uf6y8JHMGrSP3PtA9nuoOrBWUBcwagWVjtQXPylk1q8 TBcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :user-agent:references:in-reply-to:subject:cc:to:from:date :mime-version:dkim-signature; bh=BeEd1bjgVqI+6WM8IxHn3yBv6gBN5vUlSzEvbSv2GPY=; b=Ov0zm9iMvFgH8lHEAhsP2dBKNnJ/knXBmgmnYbJK6khDR8OFUASMQ8raaRpHOWlkS9 me4+w3ybBfxGoT/lw++AgF06nUdolZT73pJKn7+s446usTNKzo+moI67jOaHi07F6kC2 8cUBI0uwSbdjqtnW79BagcJGC6L8yrFDig1ybKL2thpof3FykUXTXvcGh28IPpSm/RWW lwyWklrY2BMe5Gqoy2Bl/bOOXBcMUUV8GfeIS7/OHDp7PZ359z7R/i5XU1PU7gEf6hsY UrQQ79WqR5WCu4vkwRhg+2CVHZVByET2QVFrh+5EH4pPqBOEoM1qm3zGeNg7VxhXB8pN sRzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=yMmYS8Vg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si360034ejm.25.2020.06.29.13.43.16; Mon, 29 Jun 2020 13:43:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=yMmYS8Vg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388057AbgF2Ulu (ORCPT + 99 others); Mon, 29 Jun 2020 16:41:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731553AbgF2TOG (ORCPT ); Mon, 29 Jun 2020 15:14:06 -0400 X-Greylist: delayed 517 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 29 Jun 2020 04:07:43 PDT Received: from pmg01-out3.zxcs.nl (pmg01-out3.zxcs.nl [IPv6:2a06:2ec0:1:b::ffeb]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B503C00862C for ; Mon, 29 Jun 2020 04:07:43 -0700 (PDT) Received: from pmg01.zxcs.nl (localhost.localdomain [127.0.0.1]) by pmg01.zxcs.nl (Zxcs) with ESMTP id BE0761035FD; Mon, 29 Jun 2020 12:59:04 +0200 (CEST) Received: from web0081.zxcs.nl (web0081.zxcs.nl [IPv6:2a06:2ec0:1::81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pmg01.zxcs.nl (Zxcs) with ESMTPS; Mon, 29 Jun 2020 12:59:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pascalroeleven.nl; s=x; h=Content-Transfer-Encoding:Content-Type:Message-ID :References:In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BeEd1bjgVqI+6WM8IxHn3yBv6gBN5vUlSzEvbSv2GPY=; b=yMmYS8VgDQ27kiSVRfsNHb29iE LPmdLaagH+bhjYa54+X3DMcJw/nqLZV5COm0Da2zOkefygoaxdrpUEvEHZmBtFVSzEFG9x1NIuXin I1E5JmsDND6n2nkV9HZuv+1p5MFjUc+FoJDbKytPhTvY0MRa2F7TDed2QfZrlyxmEPFezW39If8ZR llTMADSiNPRmBiZ72ZBx/mxD1WsEvyqYe2WHWTx83dzz1qTw7J73QFk0CDdeDSqELEzDMvAGMy+OK 9/A/IOH366nZ3vtIYr10sHMVvuSCsLkY1HJ6TRYo0Gx2ZTuUb633j1zBZovb0Pz192M3r0YlsTIN3 zIejNerg==; Received: from spamrelay.zxcs.nl ([185.104.28.12]:48016 helo=mail-slave02.zxcs.nl) by web0081.zxcs.nl with esmtp (Exim 4.93.0.4) (envelope-from ) id 1jprV9-004AMs-6x; Mon, 29 Jun 2020 12:59:03 +0200 MIME-Version: 1.0 Date: Mon, 29 Jun 2020 12:59:02 +0200 From: Pascal Roeleven To: laurent.pinchart@ideasonboard.com Cc: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Mark Brown , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com Subject: Re: [linux-sunxi] Re: [PATCH v2 2/5] drm: panel: Add Starry KR070PE2T In-Reply-To: <20200628072819.GB8391@pendragon.ideasonboard.com> References: <20200320112205.7100-1-dev@pascalroeleven.nl> <20200320112205.7100-3-dev@pascalroeleven.nl> <20200628072819.GB8391@pendragon.ideasonboard.com> User-Agent: Roundcube Webmail/1.4.6 Message-ID: X-Sender: dev@pascalroeleven.nl Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, Good catch. It's actually the connector type which is wrong. The connector_type should be DRM_MODE_CONNECTOR_DPI. If you would include this in your patch series, you can have my acked-by. Regards, Pascal On 2020-06-28 09:28, Laurent Pinchart wrote: > Hi Pascal, > > On Fri, Mar 20, 2020 at 12:21:33PM +0100, Pascal Roeleven wrote: >> The KR070PE2T is a 7" panel with a resolution of 800x480. >> >> KR070PE2T is the marking present on the ribbon cable. As this panel is >> probably available under different brands, this marking will catch >> most devices. >> >> As I can't find a datasheet for this panel, the bus_flags are instead >> from trial-and-error. The flags seem to be common for these kind of >> panels as well. >> >> Signed-off-by: Pascal Roeleven >> --- >> drivers/gpu/drm/panel/panel-simple.c | 29 >> ++++++++++++++++++++++++++++ >> 1 file changed, 29 insertions(+) >> >> diff --git a/drivers/gpu/drm/panel/panel-simple.c >> b/drivers/gpu/drm/panel/panel-simple.c >> index e14c14ac6..b3d257257 100644 >> --- a/drivers/gpu/drm/panel/panel-simple.c >> +++ b/drivers/gpu/drm/panel/panel-simple.c >> @@ -2842,6 +2842,32 @@ static const struct panel_desc >> shelly_sca07010_bfn_lnn = { >> .bus_format = MEDIA_BUS_FMT_RGB666_1X18, >> }; >> >> +static const struct drm_display_mode starry_kr070pe2t_mode = { >> + .clock = 33000, >> + .hdisplay = 800, >> + .hsync_start = 800 + 209, >> + .hsync_end = 800 + 209 + 1, >> + .htotal = 800 + 209 + 1 + 45, >> + .vdisplay = 480, >> + .vsync_start = 480 + 22, >> + .vsync_end = 480 + 22 + 1, >> + .vtotal = 480 + 22 + 1 + 22, >> + .vrefresh = 60, >> +}; >> + >> +static const struct panel_desc starry_kr070pe2t = { >> + .modes = &starry_kr070pe2t_mode, >> + .num_modes = 1, >> + .bpc = 8, >> + .size = { >> + .width = 152, >> + .height = 86, >> + }, >> + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, >> + .bus_flags = DRM_BUS_FLAG_DE_HIGH | >> DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, >> + .connector_type = DRM_MODE_CONNECTOR_LVDS, > > I'm trying to fix inconsistencies in the panel-simple driver, and this > caught my eyes. MEDIA_BUS_FMT_RGB888_1X24 isn't a correct format for > LVDS panels. MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, > MEDIA_BUS_FMT_RGB888_1X7X4_SPWG or MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA > should be used instead. As I couldn't find documentation for the panel, > I can't tell which format is correct. Could you please help ? > >> +}; >> + >> static const struct drm_display_mode starry_kr122ea0sra_mode = { >> .clock = 147000, >> .hdisplay = 1920, >> @@ -3474,6 +3500,9 @@ static const struct of_device_id >> platform_of_match[] = { >> }, { >> .compatible = "shelly,sca07010-bfn-lnn", >> .data = &shelly_sca07010_bfn_lnn, >> + }, { >> + .compatible = "starry,kr070pe2t", >> + .data = &starry_kr070pe2t, >> }, { >> .compatible = "starry,kr122ea0sra", >> .data = &starry_kr122ea0sra, > > -- > Regards, > > Laurent Pinchart