Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2479145rdh; Sun, 26 Nov 2023 07:48:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFdii8DilAdDVG1LKEzAiHhHEvqDX1leFIkQiC7Nte1VO7TkGolqkduiNmf90iuWP6wCNh X-Received: by 2002:a05:6a20:9698:b0:18b:4dc2:a4e1 with SMTP id hp24-20020a056a20969800b0018b4dc2a4e1mr7891851pzc.55.1701013684261; Sun, 26 Nov 2023 07:48:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701013684; cv=none; d=google.com; s=arc-20160816; b=ptll99hiukey4CT0Io+4T3vtLIcS3Y4fvLdEls7xj2khC/gfq5uK7saJijNiN0i/Dl +2nre94sIPwAZOMa6s3grJ3pQ916nau3hiM8dGwnjYWVYG/Ofohg6x2D4ZFsLedKzLJ/ yiztoitBRN44BUDfSHAC1OuEdHCLCgkj3pYCFDeLKBTw1b7mgfofieULFE+Qsbi8UKQZ tlbqpIKwKMi4kw/jSdB/5S9qhLyHWxQtY7XYm3RZ5YPMAKhoOn3ZOrZx3+o1H0dJZ3sD TLEJP5cW3fLr6xwUoUdLbNLORzaBxvyt8uhPrc/q0gxZtbZfHgn6GYBtsHaG6dYtGsO/ d8gg== 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=cIMMz8wLJivOaa5nAUHEwRejpQ5B3CKhmLwaInr1cws=; fh=YMCpMfj2GNScjLvWYsHyWUGLqrAoIyNb9XBc8eC5U/M=; b=T80ACggnVjoEDks7qq3gK1AUTHbGhvtJBhEy9HZPbM3/UPwIrWk0N8/6+wv17BteD6 sOAju010HqB9pkFWfcdtJqiWy70DP7cLNuqeVKfcQNZhN0xJqBaKiQBpVARziJuSYawv 3PsjEXoHnEhQ+IWdZNcBlbm8LPTcvbjr18s3uwsfVsfaDlbUBzk1PfoKaJBAX3DRC79z JU9+UM729vD1nLgAd06qlv6erLXivK8rJgD8mV9To3JSjMIUj5jH5Qvs1B7uLA1BlqUV 6hLs5HkuxMwt1zVsqFrojP95+rX8loguuQn38PW/jmgpyi6AknYy6ETYn530uCaitz62 9TPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IkttUpP5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id r15-20020aa7844f000000b006cc028f4b39si3739328pfn.53.2023.11.26.07.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 07:48:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IkttUpP5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 18D8380A5B4C; Sun, 26 Nov 2023 07:48:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232322AbjKZPr3 (ORCPT + 99 others); Sun, 26 Nov 2023 10:47:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbjKZPrR (ORCPT ); Sun, 26 Nov 2023 10:47:17 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D59AD1733 for ; Sun, 26 Nov 2023 07:46:51 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507a0907896so4476030e87.2 for ; Sun, 26 Nov 2023 07:46:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701013610; x=1701618410; 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=cIMMz8wLJivOaa5nAUHEwRejpQ5B3CKhmLwaInr1cws=; b=IkttUpP5VgzE4LFaiMXZZwYM0PS1wHGfZbMCnEzgSrn5N1YK/iyU/fWD+C/uST9a2F /E5n8eyxaH6j9cE5b7x7yNc8ODbDxUESEvR+n92oulRTMPPnFTzZq9MSgJfaIvTjtRw0 OUGWhsEDfC+meESVfYDXrYgMCLbkh4DkdbXxU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701013610; x=1701618410; 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=cIMMz8wLJivOaa5nAUHEwRejpQ5B3CKhmLwaInr1cws=; b=tCO/1NQ3w/OA+cA9gZ0awNRCRYTDrX0KDx16JjgoId3fq6aI3ekPnKZXbGzwbI8NdF E36JSF9JwvW5OJHbSCTKgsjtyzYDE5f0QsZRi2YbM2B75TB1m9yCCkaI83G6MLrGw2+C jziwFfDQ1QD0ccKobVngabyKSoUOPHrJ5q+AoYfXdGK7expchimpONhU+SyORKbDGiy/ Zqv/JlMvuUQYjzSJ+HeUMtD27WRJuZdKotHlH7lWzTi+JyTCTYJo/Av4tTlhQHOlZ9eu +wPxQy1HX5oQYVLNGoCWmcssQrMSI34LSLFTsBGejLOBeqI46KbvAF32yg1VrC28Khqg MlJw== X-Gm-Message-State: AOJu0Yy3AbCumcG2LhbbPkuuHQ9ZjwTVN5kOQwM3akbpzBrDNqPnx2ug j04cct29E4ebjqCrUXJsMQqXBiRg3xhp/v69vkg6+w== X-Received: by 2002:ac2:4424:0:b0:509:e5a3:ef49 with SMTP id w4-20020ac24424000000b00509e5a3ef49mr6156178lfl.18.1701013609648; Sun, 26 Nov 2023 07:46:49 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-244-100-54.retail.telecomitalia.it. [95.244.100.54]) by smtp.gmail.com with ESMTPSA id h24-20020a170906591800b009fdc684a79esm4656158ejq.124.2023.11.26.07.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 07:46:49 -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 v2 06/11] drm/panel: Add Synaptics R63353 panel driver Date: Sun, 26 Nov 2023 16:44:58 +0100 Message-ID: <20231126154605.15767-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231126154605.15767-1-dario.binacchi@amarulasolutions.com> References: <20231126154605.15767-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 07:48:01 -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 --- 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 509281e9e169..ab6985806793 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