Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2427199rwr; Fri, 21 Apr 2023 08:44:59 -0700 (PDT) X-Google-Smtp-Source: AKy350ar1DFynpbPhgZQ1HPeqpsLrld2JqgLwRvXRDcrqIk1aYbJzRVQXNw9hWyxiT/1a7daGFnn X-Received: by 2002:a05:6a20:a10d:b0:eb:7d41:a6e6 with SMTP id q13-20020a056a20a10d00b000eb7d41a6e6mr7717623pzk.0.1682091899421; Fri, 21 Apr 2023 08:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682091899; cv=none; d=google.com; s=arc-20160816; b=Y0J+fWSBfkYWYZLgXBd76aV/d2lfdeAaJXg28kHQ31kpHaLEhI0O6bLwkYNbQGHdNs 6d4SYre4957m7TVdDsrWy2W5ssEslisw8e4ZrBTVrmj98jP8hNEPTS8/Y6qb2hO0aSrC RDbePtrs/WajxxJAt/R8juUBMYA/AZa/HIgoKUbcio/7S/tEhMtWRaOvDJzLGgZOezc5 jAw/XgnrlMVvG1ai55Z6BghBi8UPtohI5opdn2Bw3I+Nu/Zw3kQOklZo3tiBgbGwiEBE kF0wnU6lqr8VrfS+vsMeACVT6TrAeetiJ4u1mJvpjPHsr+UKKjtNuwvZmERrCHQsvJzq nAQQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a655b4e000000b0051393805ccesi4625939pgr.418.2023.04.21.08.44.48; Fri, 21 Apr 2023 08:44:59 -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 S232812AbjDUPnp (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 Content-Transfer-Encoding: 8bit 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 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