Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp919381ybb; Sat, 28 Mar 2020 13:25:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvg03IMOdbip742rM3NVZYewK8Hddw9Q3w2VxPrTkdGImBQwKZo3n4++gXNtj75LtjbwnMK X-Received: by 2002:aca:4ecc:: with SMTP id c195mr3106444oib.123.1585427102732; Sat, 28 Mar 2020 13:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585427102; cv=none; d=google.com; s=arc-20160816; b=t1pAzg66l5CxO3tfj8B6m8CpasoOGq0ppKCCcAY33gKkmFykemhgfKbmVfEqnRu8sw F2Mkf+zlpqGgcgRe9P6Bk2uoaIqGwRayWwP0sgjnwNXyl80Oj8CH8i5rd7MV7meaQrdR rM/NghB+hsGUi356tH4201oQ6b3VXqT9LnnY24cvOXXq4Md6M66tY+NMKTV1j0kHgBfq 2Gux250bcegVef5Stbh0+WWEUqEh30J436kYvAusYECR9Q/fR7ECobnD62V7xwS5OCST vrZtjoa0CWHOaAgEwpOOs/Nrk2ho9u5Y6czidS56Po0yaDSg8in3IGYb1wvK31ih6fmz JE+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pp01//+B6hJFrDZu5BHWSrnrJJUglxBUytPK7eL9c2w=; b=jOjhBLfpAiMEB7FU7oZQJiLWDOLlIZvABV6yOK7ibPUZMBf94osDCLaOO3atJWQ1/7 wwvSwcjX2ogw7w1gK8fC5xFrHHPQRiSwvB0SeJBdO051gFX7MAPFaUDQPJfaVPc+eEnk SxHIg6aUwUF3D1efuf4LRgbDaG4pUQw0t+e4JVamgStfYB5DRC5ha3lleqG6Q9NsorKZ RyllMTTWKB2H+tNYiKnIS/zgaj0wvMUyvzcmgcpan6QbXi4gx+13BZO+eLFoyQxMbnAF Ym34H2kFRMj9V3YD9N0mitIb/9FHt4hnbZ1mzslDGsGeavfujvNBrJIQMh5EoVLGQADY 4ymQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si4849169oth.194.2020.03.28.13.24.48; Sat, 28 Mar 2020 13:25:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727167AbgC1UXU (ORCPT + 99 others); Sat, 28 Mar 2020 16:23:20 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:51104 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbgC1UXU (ORCPT ); Sat, 28 Mar 2020 16:23:20 -0400 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 asavdk3.altibox.net (Postfix) with ESMTPS id 4E5682001E; Sat, 28 Mar 2020 21:23:17 +0100 (CET) Date: Sat, 28 Mar 2020 21:23:16 +0100 From: Sam Ravnborg To: Pascal Roeleven Cc: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , 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: [PATCH v2 2/5] drm: panel: Add Starry KR070PE2T Message-ID: <20200328202316.GB32230@ravnborg.org> References: <20200320112205.7100-1-dev@pascalroeleven.nl> <20200320112205.7100-3-dev@pascalroeleven.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200320112205.7100-3-dev@pascalroeleven.nl> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=eMA9ckh1 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=xAGLBWnee8H38iZZnlQA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Applied to drm-misc-next. Sam > --- > 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, > +}; > + > 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, > -- > 2.20.1