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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AF18C433F5 for ; Thu, 5 May 2022 09:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354712AbiEEKCM (ORCPT ); Thu, 5 May 2022 06:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243851AbiEEKCH (ORCPT ); Thu, 5 May 2022 06:02:07 -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 25E3D4F477 for ; Thu, 5 May 2022 02:58:26 -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 9385383F00 for ; Thu, 5 May 2022 11:58:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1651744705; bh=S/6p0htncYSfhLix5DVhME9QfIOV+njezUVc7zFW1wU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cvz3oDcF3XYcqhmC+J4L2EY8OTBUuAlVOYusFxX5oFMMoWpiHcJIKKY1H8YITutmf w7El/7H2UCUM59gwff/2D9+Sw8muc6z++EzTt2xHqOzroZ9zgp/D/CftG9cg9HVVMK XRwShZySINuquIshtC3xmFNDjYFKoOgt58SoKguthhKM+ZKIxWlnKyl6W/mCA3ERcP tPtSAyrn3tEqpDWY44uDYeOrR3kTKmHLyl8oE4z36+RwYnbAFZT55xifs4cWLfCoPc CQF4c70L3l5RhMieBsY+Tul0MKuQ6MCBuputd1+YMmT42ehpl+RDitRJRvaHhHrdmt AxmAYqFcSg/WA== Received: by janitor.denx.de (Postfix, from userid 108) id 4E44EA012A; Thu, 5 May 2022 11:58:25 +0200 (CEST) Received: from xpert.denx.de (xpert.denx.de [192.168.0.4]) by janitor.denx.de (Postfix) with ESMTPS id E8D1CA0058; Thu, 5 May 2022 11:58:17 +0200 (CEST) Received: by xpert.denx.de (Postfix, from userid 535) id DEA9D3E07D7; Thu, 5 May 2022 11:58:17 +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 v4 2/4] drm/panel: simple: Add DataImage FG1001L0DSSWMG01 panel support Date: Thu, 5 May 2022 11:57:26 +0200 Message-Id: <20220505095725.902447-2-pro@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220505095725.902447-1-pro@denx.de> References: <20220505095725.902447-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 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