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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 216DAC433F5 for ; Thu, 28 Apr 2022 07:37:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E693510E2D7; Thu, 28 Apr 2022 07:36:57 +0000 (UTC) X-Greylist: delayed 562 seconds by postgrey-1.36 at gabe; Wed, 27 Apr 2022 14:02:52 UTC Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2279710F36C for ; Wed, 27 Apr 2022 14:02:52 +0000 (UTC) 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 7B12F83E15 for ; Wed, 27 Apr 2022 15:55:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1651067715; bh=lT0gwdo2NDZXehIpqBlbV2nnBX11PUSnb4XZExSkFqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S1WSBCSrVBi+Lqg86Cm6RwiNchkkx6ifSxYkqL5hUZcALTJrEbT2gjhjULmV59Z1V tHfN5KZZJpDg4A5yr0ccv0nQeezx7QKEaexpc/yDGqLFgU2BShd4wjkY/p77+162Ls iK5A+BO8jd2/ADf4B/Rqqq0TMhO/+Av6K5GXuDfqtx5r3WSYSpULOKkph+fvKaDCDN S0ULKk3v9NbzheuKJ4SuD9R7TW65BN7ZG9ZXr8Y4WOyN8P+iUnrShtQMq4iM1WLZwW Nx1GKfg96MbBLiVtZA1Y58xkWa5y9FDa1uGiFycc4qeB2KAL1XgqcdsvVIQ89cOwl7 23CqDwDWTW/ig== Received: by janitor.denx.de (Postfix, from userid 108) id 26EDAA02FF; Wed, 27 Apr 2022 15:55:15 +0200 (CEST) Received: from xpert.denx.de (xpert.denx.de [192.168.0.4]) by janitor.denx.de (Postfix) with ESMTPS id DA3BEA00A4; Wed, 27 Apr 2022 15:55:05 +0200 (CEST) Received: by xpert.denx.de (Postfix, from userid 535) id 8B69D3E0407; Wed, 27 Apr 2022 15:55:05 +0200 (CEST) From: Philip Oberfichtner To: Subject: [PATCH v3 2/4] drm/panel: simple: Add DataImage FG1001L0DSSWMG01 panel support Date: Wed, 27 Apr 2022 15:52:29 +0200 Message-Id: <20220427135229.2339865-2-pro@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220427135229.2339865-1-pro@denx.de> References: <20220427135229.2339865-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 X-Mailman-Approved-At: Thu, 28 Apr 2022 07:36:56 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , matthias.winker@de.bosch.com, Philip Oberfichtner , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 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..e6d0aaddc14c 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 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 66BCBC433EF for ; Wed, 27 Apr 2022 13:55:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236839AbiD0N6b (ORCPT ); Wed, 27 Apr 2022 09:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236807AbiD0N63 (ORCPT ); Wed, 27 Apr 2022 09:58:29 -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 C3C1530562 for ; Wed, 27 Apr 2022 06:55:17 -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 78ABA83EAF for ; Wed, 27 Apr 2022 15:55:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1651067716; bh=lT0gwdo2NDZXehIpqBlbV2nnBX11PUSnb4XZExSkFqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y53uAHxxUkp6lFHEhR0iTwkXJuCXQ75AT6wjkGGgiHpAd0A5b6PuEH3mZxMmjXSbK Kq60upcm032ePwxV/hQ35JyFo3iPVgITvqSoemkUlETmH9WpTavLBhpGw4wqPRyQTG Ox7ZuRy58WwFdn6bhKuaNM29DPednm4gL2js3T8vegsMd+F+KkRx3WIvKrZx6kk63k PgOgyEwGPj350i3ZhJy2uN1l/56HKoy4BA1TJx85vcWFSItfPQNRpCNOhorewhr2yP vHuSJhhLOtFAqeuNVJzy68vKg6YCbg6rflTjUawq34jupHGQq9K5FPPXfH5a35wzLq rRt+uVtWZMabg== Received: by janitor.denx.de (Postfix, from userid 108) id 2EEA8A0228; Wed, 27 Apr 2022 15:55:16 +0200 (CEST) Received: from xpert.denx.de (xpert.denx.de [192.168.0.4]) by janitor.denx.de (Postfix) with ESMTPS id DA3BEA00A4; Wed, 27 Apr 2022 15:55:05 +0200 (CEST) Received: by xpert.denx.de (Postfix, from userid 535) id 8B69D3E0407; Wed, 27 Apr 2022 15:55:05 +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 v3 2/4] drm/panel: simple: Add DataImage FG1001L0DSSWMG01 panel support Date: Wed, 27 Apr 2022 15:52:29 +0200 Message-Id: <20220427135229.2339865-2-pro@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220427135229.2339865-1-pro@denx.de> References: <20220427135229.2339865-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 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..e6d0aaddc14c 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