From patchwork Wed Jun 7 06:31:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2914 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 125193F080 for ; Wed, 7 Jun 2023 08:31:55 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3f7e64e1157sf18237485e9.0 for ; Tue, 06 Jun 2023 23:31:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686119514; cv=pass; d=google.com; s=arc-20160816; b=Pgcg/zmQIvkTw/f+kpnUUlJP3IoqMxOQKBcyRJX/DtdY/kf2yKpPnxyRsZ6GTH86HJ oMVmqUImOKFSztgH3AteEApmLc3c2QgXKLr9uVwBJCPomZHg6upazxGHqhWsx1ZsU967 vpI5FEXA2X21cPCWdSriylvNmO4OP+/oWxpFVZar1Hi8Dfwkwy3fMCd3SXrplgPxiSNR dSh3YYypWQIcD3nQ+tbLcp8B3oNfB1oQyw4nG3xns4z2b5rAhStNUHT5lyv/ZQLD8Djf vrCVyDX4/RLgWkOy5mRsroZ7R3WmEFBNfqXALbAEf1Y0IJdQjEThWQzYHpklYPfNVsgB BitA== 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=ym8SYrBKiARhXvahP2H5AxzDYZS7sZov7A0CM6MluXZstXuBGYTAacS7LG+u8j3XWw 9I8aTCcHMUfwjRmbp5h2P0G8nXKIacWuyCz34vXVqMbY477BRpShzS6cC2BX7/hw0hc9 j1EaKPMpm3KOWBZRyrrqgNFdLxHbEy6zXTRo1kVfK8Eydf2T3cMAlhG0LRR+SoLtMsYg TkmrsUXuK9ITqfc9CC6196n8N27hp4uSjOjZ9tVJ97Xf7K299uOzEwi/qmqXADT8axH8 eWeGa3zl0pL2bL9hfWi8uosNNDE7HSPSdtOOqrO9+oXvickFB6+XfHYKmfiYUbnMpL67 TdoQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UYvhY2b4; 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=1686119514; x=1688711514; 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=jllTnJfatYrsKjGcaOcSdpZIyAYXl5gm/OJ63w1tMdiXaMa4aISN8hCxYgOk8oaio0 gys/pOB51/moHIsYfonZWgzLn5xBTZGO/w2Jxv8rA9JExvDByDD7OSW3Y25aM/7I6V1f KDVJraVmwtDS6tjEHb2Z6c8IPbofqIQrdisoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686119514; x=1688711514; 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=iprn7SFD9FTb/ON6WLXhFn2CIilI2qpVagnZFHfqDGM3H9F5kJ/vkHWea0tBsZMJmb lBp8C49TqDanw/9L8RLs0CwLj7o4rbXxLuD3QNTzQwuW9+/9hJR8arAB7W3dklSRbd/r EMVdYKTc/lnoKoyiYoQCFEqbEhqlar+XaV4L76/vXJ8r+DuwTL22tvD+FKMy0Oc6lS6S +hER/p8fJ7hhF0TNv8ZzKWKEqXojtBxfK9CcOgYQhXrM5GRH5aOBshvfsm67IyaSiPO/ KGenNXF8yzYOna0FeP+isasmjjX1BBZlsLTZ0nkafbfhCQI2XuerrS2ujmL/JE4TVhyY WDZQ== X-Gm-Message-State: AC+VfDw2Fm81N7+idjfMPpv0uV/sRdpGJepSFbInRrzjt2QeRet9qwW8 CezOqZ1DsSgtnPKhQDFU7zkWZ39EP4Ks1gaH X-Google-Smtp-Source: ACHHUZ5ClMzpMKCh1ksrsq/nJuqSh7g3RJhaPJAbRRInUZVyKwlN76LDvPY8H3p6y4yCHclQggQ1ew== X-Received: by 2002:adf:e64f:0:b0:307:818e:de61 with SMTP id b15-20020adfe64f000000b00307818ede61mr5313136wrn.26.1686119514825; Tue, 06 Jun 2023 23:31:54 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6000:5c1:b0:30b:3044:3bdf with SMTP id bh1-20020a05600005c100b0030b30443bdfls312254wrb.1.-pod-prod-02-eu; Tue, 06 Jun 2023 23:31:53 -0700 (PDT) X-Received: by 2002:a05:6000:504:b0:30e:4886:425a with SMTP id a4-20020a056000050400b0030e4886425amr5202139wrf.40.1686119513241; Tue, 06 Jun 2023 23:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686119513; cv=none; d=google.com; s=arc-20160816; b=VDP1TrUeU9FfvdXw85R8iui+MPgpZA6GW3WcZXDmc24MLSVX4H0INxphGn/LQUe/Zs PgtLHGDMPhxwPZF7lpoFDrSo5J7yqG6jtqEyUOM0cokj7XTWsqZ99Pacg+rpo8Yqu7Lu IW9ohzoXCrnuDbhed8TvFvO5A4DfdCnxfiXnAfrSKAT0DFSUoRoz8Ebo4SetJdyk8jYG C5Gt/N6kKjtrKEV4l9FpOirlJowuQNLm1BBRfyzHGloVRSCTP7ZAN327J+wlSj56Oa6+ RdW+fDxURKucTLmbhFf1eCDbibNES/DUMupyIrf8szIg0eC1qkN+r6mBUSMs9EUbnVJw slIw== 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=pDfN+RdpLUOjMZBD+VV4aslt7TKmHyAowSrIfkqrPbMqv0eCjNj5LUWJQkbcwd3lVZ 4w52ysRaW0jWnVCM03/tDSunAAXyANbG/An7iMH7WGmxNlZHIgwCNMotO18utVUEQUEN oz7LHQ9Kf1pZ6WX6VPSRGO8+kw4UHH4ADqJdNJyb1rid+T0r528uUw4WD8r8DIkHrNoP TCKgb2wfBMbpB9lm3iKZBpMkyhI/PM+zq3Rj614Tx+sJZmInu1fhOUFOVyy1363M8u68 h6qsDvpoJ2S3KJH7bnjSKU4kJbDuNRMcsuN36P1z9zTNFkqnEyo9r7kZXh+6Xd9K023w /g1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=UYvhY2b4; 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 h13-20020a05600004cd00b0030abf2b8d90sor1953607wri.0.2023.06.06.23.31.53 for (Google Transport Security); Tue, 06 Jun 2023 23:31:53 -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:adf:eb88:0:b0:309:38f4:fb52 with SMTP id t8-20020adfeb88000000b0030938f4fb52mr5870830wrn.9.1686119512971; Tue, 06 Jun 2023 23:31:52 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.114.163]) by smtp.gmail.com with ESMTPSA id m6-20020adff386000000b0030630120e56sm14385127wro.57.2023.06.06.23.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 23:31:52 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Raphael Gallais-Pou , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Philippe Cornu , Amarula patchwork , Maxime Coquelin , michael@amarulasolutions.com, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dario Binacchi , kernel test robot , Daniel Vetter , David Airlie , Neil Armstrong , Sam Ravnborg Subject: [RESEND PATCH v2 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Date: Wed, 7 Jun 2023 08:31:38 +0200 Message-Id: <20230607063139.621351-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230607063139.621351-1-dario.binacchi@amarulasolutions.com> References: <20230607063139.621351-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=UYvhY2b4; 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/ Reviewed-by: Jagan Teki --- 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,