From patchwork Thu Jul 22 14:04:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artjom Vejsel X-Patchwork-Id: 12394331 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15C19C6377D for ; Thu, 22 Jul 2021 16:00:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D15D66121E for ; Thu, 22 Jul 2021 16:00:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D15D66121E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 86F7F6EA89; Thu, 22 Jul 2021 16:00:26 +0000 (UTC) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0DBFC6EC83 for ; Thu, 22 Jul 2021 14:05:58 +0000 (UTC) Received: by mail-lf1-x133.google.com with SMTP id f30so8750839lfj.1 for ; Thu, 22 Jul 2021 07:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SOSmzvWDnV1n+6dhGf47+1g6nbwp/1OAUc7BCbVeW+M=; b=uKldJXrG1YhdQp0OJwXKaAdtdz1+SW0ptLgGX9sTRZX8Sccd77jAnqn5c7TY/O/4dj 1f6/nxEPnLT3zzo+C+vsV/UBAmSVftTeE8EWG6FOnrxGptGkD2ny7L0NkQYUZ5supgLu Iyz760KN9bNqjC/CHfCnCQ7vRllmBive6StX7SYuYbmoWDOqz/1o7aUMNWIzK4cJJzT/ +00Mx1EY5YNFpWodJVgY/gAqxraIZN4p2XLNMQlhvlCNui5k/wTORmP2BxcT+skVOTI8 Ed4nDi8ECW6KfKDhDf2/nzz1vMLdc7icbhRCJr1vk21otzXNI2O4JUKvqClj0gKBOOoZ 9ZFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SOSmzvWDnV1n+6dhGf47+1g6nbwp/1OAUc7BCbVeW+M=; b=D25YcRwE9ToAXOyGS6k3ur2J16OyOfVHRi2FgdVzpeAtueooYNHl8Kq2OU8txIyaFk +99QcEJfrS7hMcCoR0jiqbkmJ8oHHhpAPTFrn7ucguRPLaxYsa0iimiOAOkIH+unrPAS GV/zQ4O6MUuiiyhN2gJ63VCu40iAznUbF5DB1Xdu6s2ULqdceHLIqi1C1zbveurT90eJ /hUwT5/bjDpLuA6/D6u3PCJGG8XHQ4UBPKQk0hqdMg1IN68ObOwNeYFb2zwidtDQ+I4f /oOPcp/lNOOC2dGz9tnKxqizansl90eKQNf4cOt8ZodqbwYBGA5QRGZjYMxUib5N2XLf Nkpw== X-Gm-Message-State: AOAM532+VgDFeRwALlDqhHt171P3W9gIpj/XpY1X1I9dy0qEPnHLdBDL aPJhLIHU0QfsgN7Meff/C9Q= X-Google-Smtp-Source: ABdhPJwYxSivOMyygZ3RW7OhMkKi4qlqKdtB5TAH5fJ63oXm1RRjDOeZdx4rR4FHk7vZn0xYJL8VzA== X-Received: by 2002:a19:7514:: with SMTP id y20mr29224931lfe.623.1626962756497; Thu, 22 Jul 2021 07:05:56 -0700 (PDT) Received: from akaWolf-PC.. ([194.79.5.201]) by smtp.gmail.com with ESMTPSA id p8sm190584lfu.163.2021.07.22.07.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 07:05:55 -0700 (PDT) From: Artjom Vejsel To: Subject: [PATCH 1/3] dt-bindings: Add QiShenglong vendor prefix Date: Thu, 22 Jul 2021 17:04:30 +0300 Message-Id: <20210722140432.1426173-2-akawolf0@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722140432.1426173-1-akawolf0@gmail.com> References: <20210722140432.1426173-1-akawolf0@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 22 Jul 2021 16:00:25 +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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, paul@crapouillou.net, robh+dt@kernel.org, thierry.reding@gmail.com, akawolf0@gmail.com, sam@ravnborg.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add vendor prefix for Shenzhen QiShenglong Industrialist Co., Ltd. QiShenglong is a Chinese manufacturer of handheld gaming consoles, most of which run (very old) versions of Linux. QiShenglong is known as Hamy. Signed-off-by: Artjom Vejsel --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index b868cefc7c55..52996cbf2cc4 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -924,6 +924,8 @@ patternProperties: description: Qi Hardware "^qihua,.*": description: Chengdu Kaixuan Information Technology Co., Ltd. + "^qishenglong,.*": + description: Shenzhen QiShenglong Industrialist Co., Ltd. "^qiaodian,.*": description: QiaoDian XianShi Corporation "^qnap,.*": From patchwork Thu Jul 22 14:04:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artjom Vejsel X-Patchwork-Id: 12394333 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCCFBC63793 for ; Thu, 22 Jul 2021 16:00:36 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 882266128A for ; Thu, 22 Jul 2021 16:00:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 882266128A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4EC8F6EC5F; Thu, 22 Jul 2021 16:00:27 +0000 (UTC) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 720D66EC97 for ; Thu, 22 Jul 2021 14:06:02 +0000 (UTC) Received: by mail-lf1-x130.google.com with SMTP id b26so8736546lfo.4 for ; Thu, 22 Jul 2021 07:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SgL0jl+mGyF6SSLvs6k02lrCaESH25yjasdaW3GUG0o=; b=sq3WFwTOtj9kKuM6XYMC9kzFMB26rvdchXWIsRyAs9CSwzaUFhxpEhwvI6dABcicCn dMQjhCw6/Op/IR2zpeWN1vsPFW/2QeztnxdXppvV3RiNUCnCPZI56C0bJ+8xllCqaYoE 9Q2E1GZE87mzzFuiipLwZcvrrMn3Gdm6+8Fl5NTDXAffFhO8iZVxj1xGexRWCvx6pdzH aa1kCXulmyIzfOYP4BtOLqxEizIGZrYON6nC4VgO67rE86jjAPQSddl4B5F+a44yvKpA zpQKE8XsLwLT7f0yBOgNQhnWgfClARMrG1e0FDac8UG02x4OVrOvS3rCzBPPMpDnG6AL uVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SgL0jl+mGyF6SSLvs6k02lrCaESH25yjasdaW3GUG0o=; b=gmylP5NOuN7UdKU1jk3sQFmxN9zO7Zt9JyAMeJhDlPIgqtEMQv6ryawOxy6D3F5sBd M+geGGP0WtldUKBMHPaST0Z/XdZ5K20gqlprzVN5kIru14NkeOFeZGQZbO8dT01olxFh dEqQUm2SP8vjuPg459gOlkQoALH+dhScSaZaYsL7RAzQAtNWS6rlsB+/h9ouVNkQ8+4B oPBH37TvrUXnyyj4zUmuP5nRvm0hnOqxUB/POE+BwSWSo0MYd1HZW76Dlmd2h8MT504v losCYkO7lDHJ7WSFO0pLLPhj7wpE4BdNyBh5K4vQuUfYJhkPYV4iq5MiQFMaQGzJLGe/ W04w== X-Gm-Message-State: AOAM533YCyFi/9L+HWcX4NemxYpMwpAtDoyy94MDHj/nRha+YRCnhtTd p/jO5L6UpzTOt6kFNSy/1SY= X-Google-Smtp-Source: ABdhPJx9mtYdhnrB+vR926drj9lChYq1hVwCQzBc0ZUN5zDL0boUpcXA5BOB077b74mGX7OKYjGzVw== X-Received: by 2002:a05:6512:5d9:: with SMTP id o25mr28894409lfo.146.1626962760867; Thu, 22 Jul 2021 07:06:00 -0700 (PDT) Received: from akaWolf-PC.. ([194.79.5.201]) by smtp.gmail.com with ESMTPSA id p8sm190584lfu.163.2021.07.22.07.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 07:06:00 -0700 (PDT) From: Artjom Vejsel To: Subject: [PATCH 2/3] dt-bindings: Add DT bindings for QiShenglong Gopher 2b panel Date: Thu, 22 Jul 2021 17:04:31 +0300 Message-Id: <20210722140432.1426173-3-akawolf0@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722140432.1426173-1-akawolf0@gmail.com> References: <20210722140432.1426173-1-akawolf0@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 22 Jul 2021 16:00:25 +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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, paul@crapouillou.net, robh+dt@kernel.org, thierry.reding@gmail.com, akawolf0@gmail.com, sam@ravnborg.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add DT bindings for QiShenglong Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel. Signed-off-by: Artjom Vejsel --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index 3624363938dd..e7f3db118c5d 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -244,6 +244,8 @@ properties: - powertip,ph800480t013-idf02 # QiaoDian XianShi Corporation 4"3 TFT LCD panel - qiaodian,qd43003c0-40 + # Shenzhen QiShenglong Industrialist Co., Ltd. Gopher 2b 4.3" 480(RGB)x272 TFT LCD panel + - qishenglong,gopher2b-lcd-panel # Rocktech Displays Ltd. RK101II01D-CT 10.1" TFT 1280x800 - rocktech,rk101ii01d-ct # Rocktech Display Ltd. RK070ER9427 800(RGB)x480 TFT LCD panel From patchwork Thu Jul 22 14:04:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artjom Vejsel X-Patchwork-Id: 12394327 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FC9BC63793 for ; Thu, 22 Jul 2021 16:00:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 483D56121E for ; Thu, 22 Jul 2021 16:00:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 483D56121E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 460F86E96B; Thu, 22 Jul 2021 16:00:26 +0000 (UTC) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 46EB46EC97 for ; Thu, 22 Jul 2021 14:06:06 +0000 (UTC) Received: by mail-lf1-x12a.google.com with SMTP id q16so8717848lfa.5 for ; Thu, 22 Jul 2021 07:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8P+SNIm7ys6Pm3nFiUXaaTArhPHCRQdekLUEbPgIWuY=; b=JEm96QwhXUz7bAeQpkiWigh8u7b05RgHuD0u6usLs5C18FXpJmnuutQsR8bGfCqSqj vNY1t7JRidi1/S4YbGvF2rDqWj51nRdB+mHSfif3p2IGdckpIcr0wHjm8re5gYKcoF0W 7QkxlrAkDqn6aI5pUI+mYHOh+XKuZyMjsbj+gA5vJRXSkgs+zd6f9kmsJPhpOyeFVxPf jy2cYnaP6s6jy6VVwXA2Toa+Syn6hv0olVcnQJpB0ygAGO0FW0OCVzJGoWhVqUeccRQ1 IIjLjwOUUwbMKKXfpB0ffpn4v06nbIobYu6mMNnG+2WNdcoolsraWjUj21Vg0b8quGu5 CVMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8P+SNIm7ys6Pm3nFiUXaaTArhPHCRQdekLUEbPgIWuY=; b=ohs9rWJzS/wlZkjz8JZ7IuAV4JfB5TGVJEYQLRQmaniBx4Ngm8fADPlxGd/g23/htA LnUTwawPgy0MAZpquC1pMJ4XI8OYu+H+gXoUtUcagR8/IBgLnQP2MSEImQWd62LBcYuC elQPjmwULTptQTwACgX+1qsT7RDxFx5JOUAWBPQH0+sRqYq3PZLJs+Qp+XFF8QnaqKOg bEnLDEaD+8/MPolE8ryXZSzD2Gl2MwCQYQ92o0ijeMEyvxSROe+Yw1qwgvd2MK+c5h98 DRFmaL2XihAtzXeCItqkMSzhmr8kXJvyObMzOUIIlixn8j/DVDN18vPhEyzVMIDzrhT0 wViw== X-Gm-Message-State: AOAM531JlpIm3EfnhyjdPa7+QmEGgLDgIunv1aoh34p72hMSANqCJBeh l9xNN6QGTE8JQaBtSkIU9uU= X-Google-Smtp-Source: ABdhPJwIOUSQmsam9/2wyWQVAgpLviDfVIYK7k0C/PaMYboRYoaohZgwvnmlH0s1teitKY8EPyUcQw== X-Received: by 2002:a19:771c:: with SMTP id s28mr28487458lfc.358.1626962764736; Thu, 22 Jul 2021 07:06:04 -0700 (PDT) Received: from akaWolf-PC.. ([194.79.5.201]) by smtp.gmail.com with ESMTPSA id p8sm190584lfu.163.2021.07.22.07.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 07:06:04 -0700 (PDT) From: Artjom Vejsel To: Subject: [PATCH 3/3] drm/panel-simple: add Gopher 2b LCD panel Date: Thu, 22 Jul 2021 17:04:32 +0300 Message-Id: <20210722140432.1426173-4-akawolf0@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722140432.1426173-1-akawolf0@gmail.com> References: <20210722140432.1426173-1-akawolf0@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 22 Jul 2021 16:00:25 +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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, paul@crapouillou.net, robh+dt@kernel.org, thierry.reding@gmail.com, akawolf0@gmail.com, sam@ravnborg.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Gopher 2b LCD panel is used in Gopher 2b handhelds. It's simple panel with NewVision NV3047 driver, but SPI lines are not connected. It has no specific name, since it's unique to that handhelds. lot name at AliExpress: 4.3 inch 40PIN TFT LCD Screen COG NV3047 Drive IC 480(RGB)*272 No Touch 24Bit RGB Interface Signed-off-by: Artjom Vejsel --- drivers/gpu/drm/panel/panel-simple.c | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) -- 2.32.0 diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9b286bd4444f..9cce6b63a147 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4306,6 +4306,47 @@ static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct drm_display_mode qishenglong_gopher2b_lcd_panel_modes[] = { + { /* 60 Hz */ + .clock = 10800, + .hdisplay = 480, + .hsync_start = 480 + 77, + .hsync_end = 480 + 77 + 41, + .htotal = 480 + 77 + 41 + 2, + .vdisplay = 272, + .vsync_start = 272 + 16, + .vsync_end = 272 + 16 + 10, + .vtotal = 272 + 16 + 10 + 2, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + }, + { /* 50 Hz */ + .clock = 10800, + .hdisplay = 480, + .hsync_start = 480 + 17, + .hsync_end = 480 + 17 + 41, + .htotal = 480 + 17 + 41 + 2, + .vdisplay = 272, + .vsync_start = 272 + 116, + .vsync_end = 272 + 116 + 10, + .vtotal = 272 + 116 + 10 + 2, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + }, +}; + +static const struct panel_desc qishenglong_gopher2b_lcd_panel = { + .modes = qishenglong_gopher2b_lcd_panel_modes, + .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_panel_modes), + .num_modes = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode arm_rtsm_mode[] = { { .clock = 65000, @@ -4753,6 +4794,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "yes-optoelectronics,ytc700tlag-05-201c", .data = &yes_optoelectronics_ytc700tlag_05_201c, + }, { + .compatible = "qishenglong,gopher2b-lcd-panel", + .data = &qishenglong_gopher2b_lcd_panel, }, { /* Must be the last entry */ .compatible = "panel-dpi",