| Message ID | 20230601170320.2845218-6-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB6U64ORQMGQE65VWXEY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 66BC33F076 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 1 Jun 2023 19:03:55 +0200 (CEST) Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2af2790f4a2sf9992121fa.1 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 01 Jun 2023 10:03:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685639035; cv=pass; d=google.com; s=arc-20160816; b=wtY+BKJRMdz+2XCi8ojrkqVuCxC3XLQHqVPniszmGH4cVtdcCJmpXyuqfMv35/0gt4 HGO9/fpPl8APyyfa0n7sX1JvcgVDsPfnFuQBhu97MehwVWn+NwigwioIqL3UJtTc6IlX q0PiQ6ZfU4nXM8r5gs0G4r4enXsISbLd+z7qmKGRnKP0hrXXjziOpEmnq0FShA8zWlkR BqXgs2hWohHg3ke/x+noy3bPTfqOs0rIpQ+gpe3Q1apkEOQoQfL0l0Xnxw64V6KBrk+j xIkK+n5aCJy4dygp5/Q3saVj7Fho77mBAMe6+yDDb1+y3HjSTQShW0AvlUwRybIcLf+L WO6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=fH2fGb4g9A38OprvHBOsB2RIrIckkC8/axlzX304g94=; b=NfCIcWL7kLY9EO0MRYaL2qMnBdLD4eTMIuGn6+/XE4T3whooby1pz9Sb5BKfdPntYo XKiof6/AHABAJI813aZPvt9qVUebvKEX7vYRgabavyhrBbx6WSZgfAGveOJrBxFddr6h Woz0qTiXnM61Tij1bSd2NIcPb8upPT2/bQ8aityAX7ac3WYxYw2QsR07m18FlxR3EB9C 57WjxPiZRZorsqq3hODhRJReR22/Q9DGJVi9Ejmqd97rG6Kv5qR14ddgUrTR/5V+w8nU /JrsDq8gELnpW/CAYudzquRON6tG2nNmHcROBNFRT5H8jWeNhZvHz0U9Qnk4yRCqFfeE kYmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hMITaXHx; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1685639035; x=1688231035; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=fH2fGb4g9A38OprvHBOsB2RIrIckkC8/axlzX304g94=; b=awUNf8AJec+10OoBWX9ciGxKFotoDYOqsrEmuVAUqthZOvQ/P0t89YCUxCAMh+axs2 WcYsX58Qz2HR7ZePyFy3lgKG/2+XFaTaDxWdxDXodagieIyDSw5btDdqNKNGzV3oavaG LxsK37CVEbivjM9r58LWdJsPv63gV6VZZrBs0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685639035; x=1688231035; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fH2fGb4g9A38OprvHBOsB2RIrIckkC8/axlzX304g94=; b=cuM2N3z+eSTYj0G4aOOkkJxpg0A56QRMl950dRqqg0bvu9kfeK3E9g2Osh4DNFbX4+ gfLbWOcgdohtv6etYWiDTETpCXtk96k/ldCPbkIZmOis4VnRlg4kfVcYYm39AtMfgwaY gpd/OfXSFzZRJJ1206cCyoFuN7Wj1fz4JnqFMl3M7+9SXD0SRw5Z8SBg5doGNv3iIWh+ ukfIbLJNHDmSParJOST3NWJ6n9iUtLvt1KKYWZFoV8tMOoLQdOBctyw5AD/8WDs207ec avq29FaDtAa5d41k405SvId14uC+4aEsAL5p8d6FUuSo+SWi4Y5QznTjbCZ+H0yij0au elPw== X-Gm-Message-State: AC+VfDzFGIW976b4th/emVRwHJ+aC6hCdQPgMv9nQf8cCQthH/AnuDQx YV8Kll/HbAPyght9ga6dYF9RlunB X-Google-Smtp-Source: ACHHUZ56IYV0Rzp5biCbqpAnKDI/sxmfo9J7SphrC4/mw2Dy9bNBDIbHYiNUwkcsgZw7KKoIu+lK/w== X-Received: by 2002:a05:651c:1032:b0:2aa:474f:16e with SMTP id w18-20020a05651c103200b002aa474f016emr40506ljm.30.1685639034830; Thu, 01 Jun 2023 10:03:54 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a2e:be1a:0:b0:2b0:5257:58f with SMTP id z26-20020a2ebe1a000000b002b05257058fls115295ljq.0.-pod-prod-06-eu; Thu, 01 Jun 2023 10:03:53 -0700 (PDT) X-Received: by 2002:a2e:9608:0:b0:2ac:8090:630e with SMTP id v8-20020a2e9608000000b002ac8090630emr40915ljh.28.1685639032860; Thu, 01 Jun 2023 10:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685639032; cv=none; d=google.com; s=arc-20160816; b=UZZco/v5o8KBgS0mvWi6zs+gvMxHtKHzPHtjXZPpSqQ94twhgQVZe4iQefe2iJIU/c T7XQ2oVCGf3+0TBf5TvPCse3nnTSGuHL8feZUiCfl7+g746bGXifpoFC4ZQaqz0DdAIy LG8LVTn4bXpujsceqxRVjJxiyczR8D6kBY0snwf/eINzgQaoLKJKy/yLkIiOCERJOf7a nulEXfwJPUaOEJp1FJoE/rUSLKqjRk5UodIETu98Uc14UMiEFfmb4BhHr6OqD3YnN8E1 MuQAqv5wNdJvLs9mteP2iDgd+tmk2DPA1i7F9QQU7M3Ot09C7NNxWesMf3p53dH2hHum 8www== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NdElKIu+1cRclMUkHfLP6gJRhgH3ar2X29sNtbMoMuI=; b=wQ5843niuFs4hbFLw/2i52h3dBpzRvbSAKgVhOohbpBSuhHamKeBxYJQX5oPJiEqdY xSG+34dqttzcuOtXjmO1Uh3jTBIw/oArd05mBMBaJRUafO+f2strHl604ptiC1/WPAqi 9/LmKuFm6fnTVm+k7NRyjsrLAvosP6EcCtQkXffhyMWF/6z0a2wuNXHqbPqtkuIGkcv/ wYfQxvmWlxSbS//sUWnIOH2tozjQjn/6TVC6UDnvLuX658xFVWFq0qiVPufXylOcn/2I Yw6p/f7SOs9IreuNMQ53qqQ5i5jNQnsGlv+o1vb2SzbEy4I0/St3HJAJFIoFAPtTa6mk 813w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hMITaXHx; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l3-20020a170907914300b0097374e50e20sor910589ejs.7.2023.06.01.10.03.52 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 01 Jun 2023 10:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:2d9f:b0:94e:e97b:c65 with SMTP id gt31-20020a1709072d9f00b0094ee97b0c65mr9290200ejc.60.1685639032574; Thu, 01 Jun 2023 10:03:52 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-248-31-20.retail.telecomitalia.it. [95.248.31.20]) by smtp.gmail.com with ESMTPSA id bh25-20020a170906a0d900b0096165b2703asm10658522ejb.110.2023.06.01.10.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 10:03:52 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, michael@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Neil Armstrong <neil.armstrong@linaro.org>, Sam Ravnborg <sam@ravnborg.org>, dri-devel@lists.freedesktop.org Subject: [PATCH 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Date: Thu, 1 Jun 2023 19:03:19 +0200 Message-Id: <20230601170320.2845218-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> References: <20230601170320.2845218-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hMITaXHx; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
Add display support on the stm32f746-disco board
|
|
Commit Message
Dario Binacchi
June 1, 2023, 5:03 p.m. UTC
Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Comments
Hi Dario,
kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-intel/for-linux-next-fixes]
[also build test WARNING on drm-tip/drm-tip linus/master v6.4-rc4 next-20230601]
[cannot apply to atorgue-stm32/stm32-next drm-misc/drm-misc-next drm-intel/for-linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Dario-Binacchi/ARM-dts-stm32-add-ltdc-support-on-stm32f746-MCU/20230602-010536
base: git://anongit.freedesktop.org/drm-intel for-linux-next-fixes
patch link: https://lore.kernel.org/r/20230601170320.2845218-6-dario.binacchi%40amarulasolutions.com
patch subject: [PATCH 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20230602/202306020343.jNTWeM0P-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/5a692e898df9428078855c58f8e945def084613b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Dario-Binacchi/ARM-dts-stm32-add-ltdc-support-on-stm32f746-MCU/20230602-010536
git checkout 5a692e898df9428078855c58f8e945def084613b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306020343.jNTWeM0P-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-simple.c:3201:68: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
3201 | .flags = DISPLAY_FLAGS_VSYNC_LOW + DISPLAY_FLAGS_HSYNC_LOW |
| ^
vim +3201 drivers/gpu/drm/panel/panel-simple.c
3190
3191 static const struct display_timing rocktech_rk043fn48h_timing = {
3192 .pixelclock = { 6000000, 9000000, 12000000 },
3193 .hactive = { 480, 480, 480 },
3194 .hback_porch = { 8, 43, 43 },
3195 .hfront_porch = { 2, 8, 8 },
3196 .hsync_len = { 1, 1, 1 },
3197 .vactive = { 272, 272, 272 },
3198 .vback_porch = { 2, 12, 12 },
3199 .vfront_porch = { 1, 4, 4 },
3200 .vsync_len = { 1, 10, 10 },
> 3201 .flags = DISPLAY_FLAGS_VSYNC_LOW + DISPLAY_FLAGS_HSYNC_LOW |
3202 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3203 };
3204
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 065f378bba9d..e8e2b2a55f37 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3188,6 +3188,32 @@ static const struct panel_desc qishenglong_gopher2b_lcd = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct display_timing rocktech_rk043fn48h_timing = { + .pixelclock = { 6000000, 9000000, 12000000 }, + .hactive = { 480, 480, 480 }, + .hback_porch = { 8, 43, 43 }, + .hfront_porch = { 2, 8, 8 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 272, 272, 272 }, + .vback_porch = { 2, 12, 12 }, + .vfront_porch = { 1, 4, 4 }, + .vsync_len = { 1, 10, 10 }, + .flags = DISPLAY_FLAGS_VSYNC_LOW + DISPLAY_FLAGS_HSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, +}; + +static const struct panel_desc rocktech_rk043fn48h = { + .timings = &rocktech_rk043fn48h_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct display_timing rocktech_rk070er9427_timing = { .pixelclock = { 26400000, 33300000, 46800000 }, .hactive = { 800, 800, 800 }, @@ -4218,6 +4244,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "qishenglong,gopher2b-lcd", .data = &qishenglong_gopher2b_lcd, + }, { + .compatible = "rocktech,rk043fn48h", + .data = &rocktech_rk043fn48h, }, { .compatible = "rocktech,rk070er9427", .data = &rocktech_rk070er9427,