Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp339007rdb; Thu, 30 Nov 2023 06:17:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEat7e5UIxNbrRlV+jmwP8Q7ZY4vGZ5qcXs/hbaTGdCy5gSQhiB4v7kfvTZ8pcidVWKuvMw X-Received: by 2002:a17:902:b401:b0:1cf:9790:f243 with SMTP id x1-20020a170902b40100b001cf9790f243mr19474697plr.61.1701353864421; Thu, 30 Nov 2023 06:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701353864; cv=none; d=google.com; s=arc-20160816; b=WVh4LtWlyTnGCCMnBvt/xRsZ7i0UMj+BfJo94bd0qZfhLrf+OY1L3VqQBo9gfgGMPt ZWc7ikkyPbp+/xX13OpD9eDb5kVx3VnDypY2ZsHqN8b357iprcKkSXh7mdwaHSAcNvg0 jB/4WVVkwANeBud1lOz0JIOd/gNAzJbDag2L4SH7lyNYi/Oag5OHSrqVnuqFGheDtOXB PKySsKyP0pfALfgaT6mJ0ezQ3ctW5PZ3h820YAyWBb3KC1YQZhH12TEkBEXqZEfcBM0Y JvstIWMtgfte0cUwRk4UQbrvobn/gAwSxB1G5CgcWqHqnDzAfrbz7MUH1cFPJohGU1id T2xg== 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=BB+8tiThrQ8A3cvAQ5Ca0/LgocfETriGMEf/l26sW2A=; fh=YMCpMfj2GNScjLvWYsHyWUGLqrAoIyNb9XBc8eC5U/M=; b=E6g6MMrjbCbx8DlTFIlvTGQ+TvIH84M/IBO6vXekavqlMptP9JIBq0Umnlckr2rt23 cNP/c2lKJRoS9+EwxvXoqU03eN4DDr9Av+qW/6YshCsyQrnYMh7V2IjWxDLfe8BYDASa 7cQBMM1+P5gIpfHxmzsUn0nKhvsiihvUAd7kS30vSLEW2YG/wVb2GMC3bl0aZ9y0qp+v 8KF7uVekNToT+ZUF1OSfFQsK/70BNMXUn3O+ogIUHo7U+8iigu9xpVPuNaCp93qa2qd2 ZWHD5QQzzfTVCZhiD08Lq8Sfx3qfPRwoQX66lxGAODoYOxq5PAZB1BfwWHdb0FBkKU4q dn3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IKU7S21Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z15-20020a170903018f00b001cff3de9343si1334179plg.553.2023.11.30.06.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:17:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IKU7S21Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 812078026AC4; Thu, 30 Nov 2023 06:17:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345979AbjK3OR1 (ORCPT + 99 others); Thu, 30 Nov 2023 09:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345925AbjK3ORS (ORCPT ); Thu, 30 Nov 2023 09:17:18 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BDF8BD for ; Thu, 30 Nov 2023 06:17:23 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50bbfad8758so1357481e87.3 for ; Thu, 30 Nov 2023 06:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701353841; x=1701958641; darn=vger.kernel.org; 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=BB+8tiThrQ8A3cvAQ5Ca0/LgocfETriGMEf/l26sW2A=; b=IKU7S21QrNn1ZLvl7B/9wQ6K/KO3helYxjvo+Epre1x65qojKycwUZvJRx0YI5pNJw njgTc0KhtLR/K5k1xAOzSa5PJUFylRWpRKFwehDP02WMIUD+3uRigdFi+jNP6MFtH1QL U54Nx4zVvLNS7+S6/Y715AObVxYYBE6GuPd5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701353841; x=1701958641; 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=BB+8tiThrQ8A3cvAQ5Ca0/LgocfETriGMEf/l26sW2A=; b=cqqKE482XBM8iC3x94995znXscF5zE4W/VZtMAdUNsqa/Pctv+aU2I0tBjGUP37jDn 4hrPOaC6Sc9ziJPv0D/valJEucdeim0sSH2vVRTC2kgRIWMIVSDmRt3RB1kxzQD9B5b2 53SGHRX8fdlQ8ZtZvCpgohpc3dUbRpL0ex1zvkn5hcW+wr0Z0EwrnSdiiv4rhnVDF8E4 dJqk+LORtPrQvQvsVFubpwCLf6dhyUOmK6kQD06onBkc+bgKomNsEhmXWF2Y6+78hEE+ 6ja6U5KjrURwaXFVKVunW4ilmmPKJ3zCgTKXsnttmG70mmgF5IdSZGqtmuIYzq8//zaH MDQA== X-Gm-Message-State: AOJu0Yzfn3QSniOfQA0O97ztrXRxvok3GfcpwSj1zxpxBi1nWlkrTIpx mRpKlZKRst8y9TurKoTDViCCBgzXCpvasIvyhRWYxQ== X-Received: by 2002:ac2:546e:0:b0:50b:bf92:dd7e with SMTP id e14-20020ac2546e000000b0050bbf92dd7emr5050173lfn.35.1701353841276; Thu, 30 Nov 2023 06:17:21 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:d1eb:b106:516d:db0a]) by smtp.gmail.com with ESMTPSA id my18-20020a1709065a5200b009f28db2b702sm716064ejc.209.2023.11.30.06.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:17:20 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Sam Ravnborg , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: [PATCH v3 06/10] drm/panel: Add Synaptics R63353 panel driver Date: Thu, 30 Nov 2023 15:16:23 +0100 Message-ID: <20231130141705.1796672-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231130141705.1796672-1-dario.binacchi@amarulasolutions.com> References: <20231130141705.1796672-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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:17:42 -0800 (PST) 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 --- (no changes since v2) Changes in v2: - Adjust the timings of the panel reset MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-synaptics-r63353.c | 375 ++++++++++++++++++ 4 files changed, 391 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-synaptics-r63353.c diff --git a/MAINTAINERS b/MAINTAINERS index 012df8ccf34e..c373764b6e64 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6875,6 +6875,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 99e14dc212ec..d018702be3dc 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -735,6 +735,15 @@ 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 + depends on BACKLIGHT_CLASS_DEVICE + 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 d10c3de51c6d..f267d932c2b5 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -74,6 +74,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_TD4353_JDI) += panel-sony-td4353-jdi.o obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) += panel-sony-tulip-truly-nt35521.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..d45373de7c9f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-synaptics-r63353.c @@ -0,0 +1,375 @@ +// 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