From patchwork Thu Jun 1 17:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2882 Return-Path: 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 ; Thu, 1 Jun 2023 19:03:55 +0200 (CEST) Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2af2790f4a2sf9992121fa.1 for ; 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 (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 To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Daniel Vetter , David Airlie , Neil Armstrong , Sam Ravnborg , 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: 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 --- 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..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,