Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4698492iob; Sun, 8 May 2022 22:26:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/SUygvf2OlPGlj0Z11th8a5w5VJaG/3LLK4AvwGXWTzu4Hfhrv+LSHmzWvOqMANNpoBkL X-Received: by 2002:a17:90b:4b83:b0:1dc:93c0:b9fc with SMTP id lr3-20020a17090b4b8300b001dc93c0b9fcmr24735556pjb.103.1652073980045; Sun, 08 May 2022 22:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652073980; cv=none; d=google.com; s=arc-20160816; b=0fSHiJlPNzDkyaDxvPQUeJwOIJiii82r2RIF3wOAflH5yrAG1YqfVSQXlorJU4aN6W wTd9FNoXDuqw9c8kbdrihMMgJJJLXpg+8XmpPrCfNPTHS5QezN1DziDzmGXHZ1j6R24e ftPmrre3O7gpWHLAz8LUOtRDv7iMhQtfGTIz0WDvhLsbqVsh2ADYDQR0tj9NzWL2ZA0T ckwR28d2hPiXlDcxzitc2Eq2RnRGVl0T9Gt2n4tZzS/rf1uMT/UqxFlzpHOlUmcmf31b 1UhsF46bu0MC7wu0xl+dDyUpQvUl5omCYgBrGiDiB9/I0zDbnu/qm8NiHZaEFm3zvvw1 9hUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=A2U5Iv3Qm5H9df801JFAAJpGtCA128Fr/pKj/dgq79c=; b=WdeatNkJ7edUte5ddiytZlVAsPvj9YaHXPoEcQIZ2gHWeiYc05vUWg3xnEIEZurFYP ejLYLyLX9tFmu6NsF4LP7FHKisPCDIHwUwkyowOjXQhFt5nPQsMZTdzqvkLrFaObEa0s qxXHUcgSFpxcdyG0JQBpXcdJxYcnXs+2m9bKBjL2eWLQ02t669NTCwTJuA9he7tV0u4D yIgk7QQRvYA9JZO0Cn6vBDXrFFb+ufFaraPQBh2S45q4vOh5mQJrKwmndmiuY16fpdte 6WtOvV355TNg9dDr3lTwFoqDs+CNDFL3a1AdKjF28Og/+G2ZnO4FU2GnwQxGFjaYmHy1 wFCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@denx.de header.s=phobos-20191101 header.b=ExTZKmMB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l20-20020a17090a599400b001dc4c06a2ccsi12025357pji.54.2022.05.08.22.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:26:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@denx.de header.s=phobos-20191101 header.b=ExTZKmMB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C327C154B09; Sun, 8 May 2022 22:24:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389315AbiEFGG2 (ORCPT + 99 others); Fri, 6 May 2022 02:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385745AbiEFGGN (ORCPT ); Fri, 6 May 2022 02:06:13 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFB99443C7 for ; Thu, 5 May 2022 23:02:31 -0700 (PDT) Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 7F3C183C61 for ; Fri, 6 May 2022 08:02:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1651816950; bh=A2U5Iv3Qm5H9df801JFAAJpGtCA128Fr/pKj/dgq79c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ExTZKmMB8IfpaEGhATDQWId3PC0hbTDYO0xP/iSIZNBjSLYIStT/Mv3W74QAw4DAo 0SJwgiYvjr/McusWE8GWycmk2eO8imLWqY2yyKhwnqkONXq3f+qGVHZtWwTV8zDNAB 4jn4FIK2RnbFHhI0daDSAajDhBfPsSaOQM1iEh5XrS7fzj+a7AybsVuKvcPR5hrOu9 9/RsBwMr/6fat2M4URRE+6EI8wS6I2C9O6yAl83huQkcBbVnRQ5n1QJ483V7WJ2mQR 4MP3cz800WJPBjswjgQwEOoI5agh7cAJRw9cNC8Reorc6VimD/Y9ifpugsFh6osl+J c1YJamhs+/XJA== Received: by janitor.denx.de (Postfix, from userid 108) id E9520A02C5; Fri, 6 May 2022 08:02:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from xpert.denx.de (xpert.denx.de [192.168.0.4]) by janitor.denx.de (Postfix) with ESMTPS id 74B91A0114; Fri, 6 May 2022 08:02:18 +0200 (CEST) Received: by xpert.denx.de (Postfix, from userid 535) id 659353E098D; Fri, 6 May 2022 08:02:18 +0200 (CEST) From: Philip Oberfichtner Cc: Philip Oberfichtner , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, matthias.winker@de.bosch.com Subject: [PATCH v5 2/4] drm/panel: simple: Add DataImage FG1001L0DSSWMG01 panel support Date: Fri, 6 May 2022 07:59:46 +0200 Message-Id: <20220506055948.971924-2-pro@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220506055948.971924-1-pro@denx.de> References: <20220506055948.971924-1-pro@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DataImage FG1001L0DSSWMG01 10.1" 1280x800 TFT LCD panel support. Signed-off-by: Philip Oberfichtner --- Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: matthias.winker@de.bosch.com --- Changes in v5: none Changes in v4: none Changes in v3: new --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index a34f4198a534..710628c9f7da 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1402,6 +1402,30 @@ static const struct panel_desc chunghwa_claa101wb01 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct display_timing dataimage_fg1001l0dsswmg01_timing = { + .pixelclock = { 68900000, 71110000, 73400000 }, + .hactive = { 1280, 1280, 1280 }, + .vactive = { 800, 800, 800 }, + .hback_porch = { 100, 100, 100 }, + .hfront_porch = { 100, 100, 100 }, + .vback_porch = { 5, 5, 5 }, + .vfront_porch = { 5, 5, 5 }, + .hsync_len = { 24, 24, 24 }, + .vsync_len = { 3, 3, 3 }, + .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE | + DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW, +}; + +static const struct panel_desc dataimage_fg1001l0dsswmg01 = { + .timings = &dataimage_fg1001l0dsswmg01_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 217, + .height = 136, + }, +}; + static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = { .clock = 33260, .hdisplay = 800, @@ -3768,6 +3792,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "chunghwa,claa101wb01", .data = &chunghwa_claa101wb01 + }, { + .compatible = "dataimage,fg1001l0dsswmg01", + .data = &dataimage_fg1001l0dsswmg01, }, { .compatible = "dataimage,scf0700c48ggu18", .data = &dataimage_scf0700c48ggu18, -- 2.34.1