From patchwork Fri Nov 11 20:31:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 624003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5BF9C433FE for ; Fri, 11 Nov 2022 20:31:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233511AbiKKUbq (ORCPT ); Fri, 11 Nov 2022 15:31:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232574AbiKKUbp (ORCPT ); Fri, 11 Nov 2022 15:31:45 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBF31748E9 for ; Fri, 11 Nov 2022 12:31:43 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id n205so5954622oib.1 for ; Fri, 11 Nov 2022 12:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UVGg0nA9wNIi0Jewzc4LnXJCRV2Q026/w/hAmHhcOh8=; b=Q7UJA0jp6wd6TZZL7SSULID+66etZUFTtTwdlSOL5xvnu48x0MtFFcyDZa65F8AZlo 9Q3yzyvtbdpN0BjN1vCZqK0yrm/ZoquUjN5mhmhhOfxk/LDfQ8s2BornrRyAVPULpSbv HvA5CzIl6+a07/LchAR05cBrEw1bktkYasX0hUjQ+h5oRTudBu7nTeki1L6+XPkvgs2h hr27ZD5pdClWUjbylJLzG5nF89Jmyk7D0nHzVl7Aiz1rGHRxkblGCzVqAXRO0jlBwlB5 6WJEvBNTu8NVgiw5GxLGQm6afikolLnylNEqhPl5/iXjLzx3Z0d7UlNG/g/NywvxamB5 LOUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UVGg0nA9wNIi0Jewzc4LnXJCRV2Q026/w/hAmHhcOh8=; b=4ov0/MlcsY6g/i9kH+xyJ8ORu7pA0Fi/peOzBMPlS8kUqMFmYLjLs6QsIkc6z/Wymp UxWAck7jAdLQ4JSsVjmy/IEMHwKT43gHCEIfDu1xCabcjXWyVIc+YliotQvv2WffkXZL bzO5FS6RtpHXckfh2crKApnPuUmW2PrveUwFgUlADH2A3pXVFczASIGSpRw+InIrFIuH 4t/B/o20qgdds7Xq3lXbY+yFgGk6OdlDhS8fTXyUP8Rt09XiUvteUAQ0/aF+JC9mYj91 9PduKwQkc6b+z7AhhFLLzSmZ1oRBhDXXnQz9Kt0Pe3biibFBAeVDVK5q4dpgb3bAs5Iu lMDQ== X-Gm-Message-State: ANoB5pnWPpUR3FpbvGUdAwN6/ZgEH4UJ6AlGaS9qN/QBVKMlJELKPu2F CRdDIgxcZEVoN4vgEuHSChg= X-Google-Smtp-Source: AA0mqf4wcEGFxyBApTMEYOtrMG6ElSUz6Oy0cPR3IbNMEyqpjhHtyoKMDQTWKzb0XvtTdb7aZCeM3g== X-Received: by 2002:a54:4788:0:b0:359:568c:176 with SMTP id o8-20020a544788000000b00359568c0176mr1585531oic.110.1668198703316; Fri, 11 Nov 2022 12:31:43 -0800 (PST) Received: from localhost.localdomain (76-244-6-13.lightspeed.rcsntx.sbcglobal.net. [76.244.6.13]) by smtp.gmail.com with ESMTPSA id n10-20020a056870558a00b00132f141ef2dsm1734054oao.56.2022.11.11.12.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 12:31:42 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, Chris Morgan , Krzysztof Kozlowski Subject: [PATCH V5 1/3] dt-bindings: vendor-prefixes: add NewVision vendor prefix Date: Fri, 11 Nov 2022 14:31:28 -0600 Message-Id: <20221111203130.9615-2-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221111203130.9615-1-macroalpha82@gmail.com> References: <20221111203130.9615-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Chris Morgan NewVision (also sometimes written as New Vision) is a company based in Shenzen that manufactures ICs for controlling LCD panels. https://www.newvisiondisplay.com/ Signed-off-by: Chris Morgan Acked-by: Krzysztof Kozlowski --- 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 6e323a380294..c6aa7b3d1455 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -883,6 +883,8 @@ patternProperties: description: Shenzhen Netxeon Technology CO., LTD "^neweast,.*": description: Guangdong Neweast Optoelectronics CO., LTD + "^newvision,.*": + description: New Vision Display (Shenzhen) Co., Ltd. "^nexbox,.*": description: Nexbox "^nextthing,.*": From patchwork Fri Nov 11 20:31:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 624002 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52B26C4332F for ; Fri, 11 Nov 2022 20:31:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233923AbiKKUbs (ORCPT ); Fri, 11 Nov 2022 15:31:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233363AbiKKUbr (ORCPT ); Fri, 11 Nov 2022 15:31:47 -0500 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D337833D for ; Fri, 11 Nov 2022 12:31:46 -0800 (PST) Received: by mail-oi1-x231.google.com with SMTP id r76so5890231oie.13 for ; Fri, 11 Nov 2022 12:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QtHcRR+0kX4YJ1jLJlQgQQEZMyaeD12Nr4uENf4Q9KU=; b=eTfZw+c3mTvi1FjO/OBphQoAb1DdRLfK3Jc2xIrc62nIE8sKsUZE1HhHrjo7MlEJ1q 6P7Jn648P7jdbQMBgPPnhrK1TsSxSEK9rmsv3DW8dTKCk3MAB60DikfKZN3U1eotwxsy GZ6opxVoLmpfSHroB3jIMzINjf72EoX0lWGBRfPitzREN0pGZMxovf+jjZBR8iqpv0Sm +JqQghXqXUc9cgw/8DIcKwl//Cyq/MoSHSuaA98IaUTCJyD0ow0PUawm0hdkJw5wgmnk 8u9P/RCPSN3NdoqkR+He/NTdcwOuJe7+vUfDM4nuCDvjNw0WrU8J9bpW7Om/15JpXhdp jGSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QtHcRR+0kX4YJ1jLJlQgQQEZMyaeD12Nr4uENf4Q9KU=; b=yWkGVFwDV2uTeKvxykrim5PEYkIrA0IWH9wCERiroeGQ8Jf4RvC+yhmQ3y6T+c4duQ +kf46QYOSCiPhY4h7SIJagbuHGNR7/ZAnJlhAPtEacSHzbisKKDaZjeNGiKE7tHjeIUu gSEql0Zkdfx6EP9iu8HDYCXhToCWmojplfrmwKhEqurPJQUzHzuxUVMrepLV8GLLmJl9 lfqYbmBmCpbEFVgigG8PK5sDsS8Gq/9IHkUNaTELOhotepz5jKmlINjYGe/rUODkqBBr jzzGueR4GLsHd5VmrsZeDNzFUGmRO1Q9UJT0R4ZKuhp+lzsa/XqK4bPW/CrL+yHSHZ83 oNdA== X-Gm-Message-State: ANoB5pkFA7dCyBWeWK+xSvJ2JGKkSCJgveuBLExkit7mdYFkzTiB0S6s 5DscOJHx3gczAZQPm3DWUFI= X-Google-Smtp-Source: AA0mqf6Jmt8Od3l4hN4DNCB3pwgbaK2nrhAxBo0EdzmRsKCyZvxIUZvYhOaNcxINLFRkC3G63gFPkg== X-Received: by 2002:a05:6808:1a20:b0:34f:335e:6bb8 with SMTP id bk32-20020a0568081a2000b0034f335e6bb8mr1554469oib.213.1668198705348; Fri, 11 Nov 2022 12:31:45 -0800 (PST) Received: from localhost.localdomain (76-244-6-13.lightspeed.rcsntx.sbcglobal.net. [76.244.6.13]) by smtp.gmail.com with ESMTPSA id n10-20020a056870558a00b00132f141ef2dsm1734054oao.56.2022.11.11.12.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 12:31:44 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, Chris Morgan Subject: [PATCH V5 3/3] drm/panel: Add NewVision NV3051D MIPI-DSI LCD panel Date: Fri, 11 Nov 2022 14:31:30 -0600 Message-Id: <20221111203130.9615-4-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221111203130.9615-1-macroalpha82@gmail.com> References: <20221111203130.9615-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Chris Morgan Support NewVision NV3051D panels as found on the Anbernic RG353P and RG353V. The underlying LCD part number for the RG353x devices is unknown, so the device name and a fallback for the driver IC is used instead. Signed-off-by: Chris Morgan --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-newvision-nv3051d.c | 504 ++++++++++++++++++ 3 files changed, 514 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-newvision-nv3051d.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index a582ddd583c2..427c22bdbfb3 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -296,6 +296,15 @@ config DRM_PANEL_NEC_NL8048HL11 panel (found on the Zoom2/3/3630 SDP boards). To compile this driver as a module, choose M here. +config DRM_PANEL_NEWVISION_NV3051D + tristate "NewVision NV3051D DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + This driver supports the NV3051D based panel found on the Anbernic + RG353P and RG353V. + config DRM_PANEL_NEWVISION_NV3052C tristate "NewVision NV3052C RGB/SPI panel" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 34e717382dbb..cb03b3a82738 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -27,6 +27,7 @@ obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o +obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3051D) += panel-newvision-nv3051d.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3052C) += panel-newvision-nv3052c.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35560) += panel-novatek-nt35560.o diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c new file mode 100644 index 000000000000..305b2aae059f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c @@ -0,0 +1,504 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * NV3051D MIPI-DSI panel driver for Anbernic RG353x + * Copyright (C) 2022 Chris Morgan + * + * based on + * + * Elida kd35t133 3.5" MIPI-DSI panel driver + * Copyright (C) Theobroma Systems 2020 + */ + +#include +#include +#include +#include +#include +#include + +#include