Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp573436ybb; Fri, 20 Mar 2020 04:26:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvME/jaX5dH6RRy2HRiIPyv+CuyQAjK6F5CK7OjpjazgD2LYquIj7i88vTjnod1bPLWNLlr X-Received: by 2002:a9d:4001:: with SMTP id m1mr5959378ote.57.1584703615476; Fri, 20 Mar 2020 04:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584703615; cv=none; d=google.com; s=arc-20160816; b=kl9+S1jPkEPxnv6WrJrpPjzf3moNs/O/dy5l3M7JPdfiktZwBRVcM/eQbDRy3xxIeq 1Ftsjv17e2hbusALyf/yKjzxeqgYz7anaBx8uREpwqOvgmUcQ2FcslhpBIEmSyTiLEmx tSM4GyMhc9GTTwIG7yZaCEdC3mNnJRPI7FkpEibPK+1QIBNltj22/nfaDihbOumnsPv6 UjdMsgJ+JK1fYeA3d73ZaEPu76yYbKOk9m0Fn6jmjhZsqJQcM0vvgfySx8wxdE5XsTjh fmh1nTQ66s7tiiY63ekFuY+7QP8FXCw2kX9wnsyGUqPMJDNTJO0w16MGEcQr9uLu5bSi jSdA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D4dn5xv1jw6ViZLrXaslqz7DLr1R4Uo+6Hf42tlM8Q4=; b=A/UpuCFkdjIxNvWXp2bbyrGyZ0rH5NnMgZMnrwcQFMbpi2+dNn5AVQiIDqNCKdHzgw /87yrQ6uy5nJ+LERkGNrv3mHRO9eDk6s439AgFwsELC46YVxS8w3k8DR7PT5tKZo8gu+ UB6kdsMqwbBNOI0eYHn96xTqwzUb7RnmCdYmK6FdGNtB6ElaQFc3UWa/0XNxhhCFLG7a fgQaMiR2SvXtXlnnyAPm6sc3XVCsSjMxQctMP+fTtJ/IRDtur+WKmmlrtf+oNbSz0Rym L1iW2caWu3NzRY/0eDYWGurPeXRAfhmDtO8+oZ7mEr/lEcDDe+p4Dm8v9QeEPN2Q+G/+ aCrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=FLBfp2e7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si2813419oib.109.2020.03.20.04.26.42; Fri, 20 Mar 2020 04:26:55 -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; dkim=fail header.i=@pascalroeleven.nl header.s=x header.b=FLBfp2e7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pascalroeleven.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727020AbgCTLZQ (ORCPT + 99 others); Fri, 20 Mar 2020 07:25:16 -0400 Received: from web0081.zxcs.nl ([185.104.29.10]:56898 "EHLO web0081.zxcs.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbgCTLZQ (ORCPT ); Fri, 20 Mar 2020 07:25:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pascalroeleven.nl; s=x; h=Content-Transfer-Encoding:MIME-Version:References :In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: 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=D4dn5xv1jw6ViZLrXaslqz7DLr1R4Uo+6Hf42tlM8Q4=; b=FLBfp2e7/0Qa/v9Fudx1ORiNXS JV+b8iUSNJpkJrzaIwwkiQopeQZ+qTCveHWN3jx4RM6ab+/t3NQGBbkFlRIRjB8I06dicoCwxg94+ Rxip8VdkQ9gwM9dkTnjZfm3c5Kup10Dq9TyzHtlpbSUwQjY7DdnXbcIUtgAH2vo5bFyqx/rToICcM H/QkNaDtbsI9ZgsJc2vKz6wjl2t7/DFcV5PT4JVHpfJRy7yKAxY8ZjHUIHjx0/Gi+/YS0p5dB4n15 nWOWUmVJF0qlafkbZgdUtvdLVDlGANH8YIyLGioeIzA2hYZLUt268RZIFCiPlFqDOr51b4r5p+IlT V0bpqgJw==; Received: from ip565b1bc7.direct-adsl.nl ([86.91.27.199]:57936 helo=localhost.localdomain) by web0081.zxcs.nl with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1jFFm3-0011ci-4I; Fri, 20 Mar 2020 12:25:11 +0100 From: Pascal Roeleven To: 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 Cc: linux-sunxi@googlegroups.com, Pascal Roeleven Subject: [PATCH v2 2/5] drm: panel: Add Starry KR070PE2T Date: Fri, 20 Mar 2020 12:21:33 +0100 Message-Id: <20200320112205.7100-3-dev@pascalroeleven.nl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200320112205.7100-1-dev@pascalroeleven.nl> References: <20200320112205.7100-1-dev@pascalroeleven.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: dev@pascalroeleven.nl Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, +}; + 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