From patchwork Fri Apr 21 15:43:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 86392 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1165831vqo; Fri, 21 Apr 2023 08:51:24 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTWYdm3ai47iFA3mr/tVPGLxwMtErNe0Y12SZwJ367CnXc87fggFJSR2WofXSN00cxpZFN X-Received: by 2002:a17:90b:1b4e:b0:247:4fe5:f09c with SMTP id nv14-20020a17090b1b4e00b002474fe5f09cmr6205121pjb.15.1682092284654; Fri, 21 Apr 2023 08:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682092284; cv=none; d=google.com; s=arc-20160816; b=Md6b4VNw8wgw6OXSjQEIHBA1UmkDeeRzxEKy9u0s+8jFgHiXweF6Dvnf0u9D2LoURW PEkKbkDZDhg+AUPVop35fJznnmvKO5qti2H3BzzCYM5lq3TAi//ulAMw5WNmVnHnGlDf gPeTK6+VWtYaN9PCiuMvzX2GU/3vOqR4Em/ozCGnE4PeaVhbqD1IYotOHn9d3ZVPb/98 ydhgnHlJf/bZl1/Q0TMK/DMg3QHRbHS3VX79R9R3OSOzzy01o0LvTp/xkCiSlID5AzgB swnmXwA9URMj22UY1Vpx5mqh2l1WhLu8FD1v5Fu2k6vqDAlb/VCA6/f46EFatCBWWjMB GIfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RGmx6aas+6lrsSGcmDihsoNQav0yXnIFp4ZHfNMih4U=; b=Vy3dxIKOOL0F5QVs6CxamCO9jb/OrJUaSw8Kuuy3TKKjHfsF+n/NLqf8VgFq/reZVI /1ZRqosDrZaWOcUuan1bWOgdovSuDFnQH70JoXA29hFk3uuwraoaWrvM4+Vkda6TnKeV cUvIcAOxtqr8xUrdwIYFgjBnCYyWh5s7/GVKCh1f8WsUQGWRpHXX3rL+gV96qMux7IAj 13vMNvHxq1zBerNWlxTeB0WEiuVLZGJz7E9pnaGQfmV0WPxLSljg1nXpzgJy0PjASRrO Ph6NGC1cFvdctb7BOQI07GJHsLZ8b8Klrt5bJYw825IgnMxeVI73B97Ck/Lxb5ArKvRl k8Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XQEqrB7D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a17090adac100b00247c0ee86d6si7212621pjx.28.2023.04.21.08.51.08; Fri, 21 Apr 2023 08:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XQEqrB7D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbjDUPnp (ORCPT + 99 others); Fri, 21 Apr 2023 11:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232487AbjDUPnf (ORCPT ); Fri, 21 Apr 2023 11:43:35 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 205C6118FF for ; Fri, 21 Apr 2023 08:43:33 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-2f9b9aa9d75so1226969f8f.0 for ; Fri, 21 Apr 2023 08:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682091811; x=1684683811; 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=RGmx6aas+6lrsSGcmDihsoNQav0yXnIFp4ZHfNMih4U=; b=XQEqrB7D4+hRhJ027yGJ0HWt4zxFwVBNJOCWW9a4Ko9jNlTXsoHqfatnnZv4KbmSUv NFMw2xzj3dClFWKHUE7WkWyGapw66EovCOK5s4LFrrqxnOUiQhzv7ZIifMpHFFAoqqeC 4jONrwQmvTA72ZsmzBxh06VFtTXkQ00KzGLqk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682091811; x=1684683811; 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=RGmx6aas+6lrsSGcmDihsoNQav0yXnIFp4ZHfNMih4U=; b=IPvF0M38MvuI4xO91tKowC+P1Jzy32PHB15gj26i2VXcbF84YQtNgrtgh3W933FADJ BBketLIfJFVfAZ9mscE3Va5W3dqt6kOA3ousLUgVcSqv7tMHRNa9Y4J84oaGH6mHlbEu FuwwUya1OG22qYc7lP9Tvd12+s/dnwNu4mQZHKltq/1PqFSZUidAh2V2kdWcIt+v9/4N BipuU/GTiWFm/FWtn+DOaeV/OkZ66xhlb597bGBAJ3OSd0hAM5nujUgSEAXrFkWSxdox JqrTz+/wMW3KcoUyECljQ675dL3j8qty+ESgaGiz46rYZi9no6nwSWB2yhm0POsWditf ZgWA== X-Gm-Message-State: AAQBX9d9TqrMTovSpRyh0w/yIA7ADmLB2C609quM8obviVHf6/Dwg+Jw 2EhTlABK6u6FNtOiM3RwYpC51+DRp3VDoPdKhQLToQ== X-Received: by 2002:a5d:4692:0:b0:2cf:edf0:f8c with SMTP id u18-20020a5d4692000000b002cfedf00f8cmr3821038wrq.29.1682091811269; Fri, 21 Apr 2023 08:43:31 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.127.129]) by smtp.gmail.com with ESMTPSA id g18-20020a5d5552000000b002e51195a3e2sm4651609wrw.79.2023.04.21.08.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 08:43:30 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Dario Binacchi , Daniel Vetter , David Airlie , Sam Ravnborg , Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH 2/7] drm/panel: Add Synaptics R63353 panel driver Date: Fri, 21 Apr 2023 17:43:03 +0200 Message-Id: <20230421154308.527128-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230421154308.527128-1-dario.binacchi@amarulasolutions.com> References: <20230421154308.527128-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763801599394981564?= X-GMAIL-MSGID: =?utf-8?q?1763801599394981564?= From: Michael Trimarchi The LS068B3SX02 panel is based on the Synaptics R63353 Controller. Add a driver for it. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-synaptics-r63353.c | 376 ++++++++++++++++++ 4 files changed, 391 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-synaptics-r63353.c diff --git a/MAINTAINERS b/MAINTAINERS index 3d2fbd0e261d..cfe4f5013632 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6682,6 +6682,12 @@ T: git git://anongit.freedesktop.org/drm/drm-misc F: Documentation/devicetree/bindings/display/ste,mcde.yaml F: drivers/gpu/drm/mcde/ +DRM DRIVER FOR SYNAPTICS R63353 PANELS +M: Michael Trimarchi +S: Maintained +F: Documentation/devicetree/bindings/display/panel/synaptics,r63353.yaml +F: drivers/gpu/drm/panel/panel-synaptics-r63353.c + DRM DRIVER FOR TI DLPC3433 MIPI DSI TO DMD BRIDGE M: Jagan Teki S: Maintained diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 8eeee71c0000..e6c4ec4f0cab 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -677,6 +677,14 @@ config DRM_PANEL_SITRONIX_ST7789V Say Y here if you want to enable support for the Sitronix ST7789V controller for 240x320 LCD panels +config DRM_PANEL_SYNAPTICS_R63353 + tristate "Synaptics R63353-based panels" + depends on OF + depends on DRM_MIPI_DSI + help + Say Y if you want to enable support for panels based on the + Synaptics R63353 controller. + config DRM_PANEL_SONY_ACX565AKM tristate "Sony ACX565AKM panel" depends on GPIOLIB && OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c05aa9e23907..dea6177e3d95 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -68,6 +68,7 @@ obj-$(CONFIG_DRM_PANEL_SHARP_LS060T1SX01) += panel-sharp-ls060t1sx01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o +obj-$(CONFIG_DRM_PANEL_SYNAPTICS_R63353) += panel-synaptics-r63353.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) += panel-sony-tulip-truly-nt35521.o obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o diff --git a/drivers/gpu/drm/panel/panel-synaptics-r63353.c b/drivers/gpu/drm/panel/panel-synaptics-r63353.c new file mode 100644 index 000000000000..a288ba3e211f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-synaptics-r63353.c @@ -0,0 +1,376 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Synaptics R63353 Controller driver + * + * Copyright (C) 2020 BSH Hausgerate GmbH + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +#include