From patchwork Fri Jun 2 10:21:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2891 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A59DA3F1F3 for ; Fri, 2 Jun 2023 12:21:43 +0200 (CEST) Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-4f513a3d01esf1576585e87.0 for ; Fri, 02 Jun 2023 03:21:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685701303; cv=pass; d=google.com; s=arc-20160816; b=kt1ZFvUTS5js+syz1kB/YrLM3N4dRDy+KqQ5w8Wsio8dHyuYI/0h2dt+E9hWSxTo7f BCM8X+tMf+lh7tdFpe5PxrPzLiyg4OFzynRa0ClQG3JzZTzJgBsZyXIuKakIK2Hbe69S kUYIxSwpekODNX/nUlq3PFh7MYny6PeN3aDQMe1r8JTsgh+1Xt8fSeNzRHKHOHi+SgwL dPNoLAj/Iw0T46gTeBkLafNQn/AFyETquOoJjK5iwaAXAfYmrBXW136DOXnshQe/Xmrm ditcNGcK6EOz5D9qN4l0vtiVE2YNyVpLle3zX0JL143Ob0vgHFRKbwnrYdHAJWdDQtPZ W3Ug== 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=qF2v588/UUiH80+Q8x5qgF476muP1A5QDDDm9jY5Ad0=; b=IPvyzxhHv3xMLKMq+BiCZVjlCVtwyd3U7Ffk3c+hWzCJLsjAdRzVF1oXPWv6kQag4P dAEPMhSuSCE0NuI8dE4qxi6WKF8cc54t27kgQOhLicO9ElKiBd0YgHI42uWCpzAdX4W+ cyZhvn9YKhBBOXQvyqhdLtZ5RfkP9DO0OtJxrl2fCQ+TRmi4TqswOXgTIVsDiMRDsX68 aku8rug2TMvJySZPzJaMO2k1sFA4xLuaIuk5O8lquyYlK6o27/mjTkk+P9ewI9NghpMJ 41D0boM3bDf6oIN5g0LOnAFq/AGgcDi9XmT6VS/ENThEcZtYMZgsdiwDsGnWys+jQs+R a0eQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mMi7B8OL; 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=1685701303; x=1688293303; 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=qF2v588/UUiH80+Q8x5qgF476muP1A5QDDDm9jY5Ad0=; b=JZW6zArgb+UF4+7dqz5tW9UdAqcyz6c1SZMpCrEU00zl0D+WdBcW6acw4BrlWlyOC8 YVHHONcf1t7bRQqt5ReAeATnR6ojgIro0I8bldCdY7HuuetHlJAkVD8Pg7A1mcyWqMQb ucxnQf1bNNs4UYxppvRDPV+8loZHJXCIasBgM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685701303; x=1688293303; 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=qF2v588/UUiH80+Q8x5qgF476muP1A5QDDDm9jY5Ad0=; b=RGU2gg55CxffPW6cBYc+XY5e6ZcvJ+vNwJZ7oqWONb1PXxXz3iC9U4MaQfzqIW1dja R9UpIbjARfZw38+4gTpVY/7BpNs40DhItkcTQxrsp9r8yCCXuoMupK76qX2nL4Ls6KVf wtq7fmM0VG0AjD5KjLq7ZaQZ9WqnJySTSY7r06Ci3Ar1KmKgKjSnDwVQnWMRvpOZ0UcP i+S3wUFQ2UOkNJcAKQL0DZ6de7waOL2rN+s4ZAuwKrPeOnZgPdomvmvkP/DInXUhwPzh xQZCBvlQdDcaMQ0CZoCIsOtquhSecitj8KA/OXZmmSUu/7Qxk/XiOcLitqwkAgb19IV6 1D7g== X-Gm-Message-State: AC+VfDxgCHlv1MhYxv5tNW6yDe0sJy2cBwi0GqOf6WKups3b8zoBvhz5 qN4RTTsAPI0SosbeLvxec9WElnLO X-Google-Smtp-Source: ACHHUZ7F85Z5yG+V/2s5aS6hAO3YppHXYz0yr3xe+DtSxzhpsQDr83b4WblI11Cegzl0RDFy74rErw== X-Received: by 2002:ac2:5183:0:b0:4f4:d383:4d6f with SMTP id u3-20020ac25183000000b004f4d3834d6fmr1319248lfi.48.1685701303052; Fri, 02 Jun 2023 03:21:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:ac2:4dbb:0:b0:4f3:b80e:fe54 with SMTP id h27-20020ac24dbb000000b004f3b80efe54ls214810lfe.1.-pod-prod-07-eu; Fri, 02 Jun 2023 03:21:41 -0700 (PDT) X-Received: by 2002:ac2:5a0a:0:b0:4f3:bbe1:34e2 with SMTP id q10-20020ac25a0a000000b004f3bbe134e2mr1413038lfn.2.1685701301373; Fri, 02 Jun 2023 03:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685701301; cv=none; d=google.com; s=arc-20160816; b=jQU6SGyFtmpzUBwNmLlJYH+EZbdbyD39LNi7ATvAT2Rj5MTn7MAoCQL57rICAz15bf qoJCYK9LhizMLZxq8y88k1ODdNQ9notZOSGekrSZCwdFuckIdW7ens4GYuxvZE35/PrA GN69cAA3Jv0Q6YTv/UTZU28quUPN9rhvxcuOgvk0RdZHp6s5N94LMY4G5tkZt0Ngw4T/ sI7fq21jG1UxXULUHRYm58JNLomXOWpdjsFrHfT+GPGlat7JFdKjeM/IJBzs1HKJKzgR yHmXryl1Ve4TwkMGBWHNOKYuU4Zp8K6OmoVEj5Y6IzSIIflk5uqIuUbs23FxOi0lRfAp XeEw== 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=QVzHDRPJNZ9IK1tuBeqT97BbWRZLa0+X8FPJl3jJUF8=; b=kceBOyFavgKdMfIGufFMznpy8MtsoC5ZeuDgrPXuUcKj7uhXef04c8QiYN7qSiz6K2 GKCw8CIgj6v39lvSezoOUCImY315AboCknvz3jkIJCpSYGB6JvofbHir5jLZtrravxzz dCX7AwlRB27FzOl37gTz181dHJo8TmJ19Mxb7S+HLOHCbsL/v2TIg3EPsAPXn8VP+BgC 6P9E23yXgObi9okwg+YyeKrOgMhI/YREoCSyz+ZT+8iJ2kkgdHCQHeryZkJTTl1SfL4T aO/j4xaHC3dRO2OL2dgS6l16hRfQPlowibNb18WiuHxIJ1u47OVp7TLpGNK+UF4/9p1L GFkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mMi7B8OL; 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 v4-20020ac25b04000000b004f51a4969casor288958lfn.0.2023.06.02.03.21.41 for (Google Transport Security); Fri, 02 Jun 2023 03:21:41 -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:a2e:8e89:0:b0:2ac:d51f:2d60 with SMTP id z9-20020a2e8e89000000b002acd51f2d60mr1241778ljk.33.1685701301140; Fri, 02 Jun 2023 03:21:41 -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 x24-20020aa7d398000000b0051499320435sm528887edq.14.2023.06.02.03.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 03:21:40 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , kernel test robot , Daniel Vetter , David Airlie , Neil Armstrong , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH v2 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Date: Fri, 2 Jun 2023 12:21:21 +0200 Message-Id: <20230602102123.3345587-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230602102123.3345587-1-dario.binacchi@amarulasolutions.com> References: <20230602102123.3345587-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=mMi7B8OL; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel. Signed-off-by: Dario Binacchi Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202306020343.jNTWeM0P-lkp@intel.com/ --- Changes in v2: - Fix build warning reported by kernel test robot. - Add 'Reported-by' tag of kernel test robot. 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 065f378bba9d..3b10e78d07d9 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,