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: 2856 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D244C3F07F for ; Fri, 21 Apr 2023 17:43:33 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3f173bd0d1bsf12439445e9.3 for ; Fri, 21 Apr 2023 08:43:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682091813; cv=pass; d=google.com; s=arc-20160816; b=x29EIvQAa3E9s50AnVigiNy37HWZCVoTGtprV+ILNupyopDt1I19gGpliJn7uXoVin qsiNAE6xkgNegMX/5Dd9VdQ5TGX1UAFe3KKNROcFUV+077514FOmrktwdaXghRkZl7FB +7ZyJOH3pnsQNWmtbakbsDOCtGGjsVROW6JLvMi6SLoe2Eom1yTQ21svlR2fmEo3JV8R Nz8B5k3JxPqVXkzM0gKiOKn+P9x+8VTucIRgugkAVImD9K1ptj4dKSN5r3npjJi8Svvs cr4QyBmFh2rsfuqmv6+Z2UloTW2zg8pHrs8NF4x+LLeGwiej00CTHy/oPTrBBYFL4xDy Z0Tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=RbW4fC4ltUkMYL59wAo5IduMayPiAqf5WbuXcTr/wKo=; b=bWy8DiKmrfwWlnh5NPcJkH8VMPwru4T6cVMVyOU58cy85SB4saK2d0g88Drqacnnuc vVXRsD2sC+4JtSvolM2jWme/3KR0Hxvyt1uSCKOL39EUE2QjBFW1gnYDG4T5MUZIBAwU NY97ULzTyfwIFHxUU6w4HE4wRWAOocwWI3wkIhG+si9Ny+aqMICdmG/J+Z5dZV/30b5P ZAPKQQLEudHP9PFYOQSsHxHQQh4cxJDtArlmujSr4xL3tw6U+1TX73mkp87Bfbd6SvOW tCtj1F3WjOOCKftMnZa0BKPqVXpVaj+sVsRJq0ZrZZ7Q8eENp0+ACCbF0SfodOZXBCdH ZGzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XQEqrB7D; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682091813; x=1684683813; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=RbW4fC4ltUkMYL59wAo5IduMayPiAqf5WbuXcTr/wKo=; b=LyYo+yeq1R7U0S7Y2gDMGPRXHIIrAPcwd8IPaZhAbrnLxFfl9PVnQk3SfvoROqGEH7 PzWEtJm3hXVRK6Dgf6+eeAfAS8tPNGIdMrgtNZGFQCHOBeiH+7gba9Hjgg6Btq+vDv+4 swCKy2mrRQfGHZbzuu8/sTO84E8JaQSWTT8OE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682091813; x=1684683813; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RbW4fC4ltUkMYL59wAo5IduMayPiAqf5WbuXcTr/wKo=; b=I3zDuFKPtguwU0IR8vXo2zMPsNU3fVdJ3+YNz9tCIDOS8d94EV6oYNPC/zcHnFulss KXMHza7gbOubbOHAmmC5SKyyEzcWpzLw0cInPXHW7NGZYW+8UKpb9tPIcb5isFjoZibO SN909HxJ6ojmuWHtZC8m5ceGqIBmOStzuS6J7tEDhdjOw+hlGrWiVUCcTYbrhwFxLg2u T6mjWFyTprnbwYilEHCTjpydVJFzv55l90MuicrBr1QCA0+6rDuoAiUlD5Ji+C9GjuqU ErUfgqr8Zo9SZ4UHI9kAn4uHDnf8kgmz1jn8c6rnwp2DJFana4tLy0qfS6wFxfGEQn07 syZg== X-Gm-Message-State: AAQBX9dobkM3CRLwRFoj1FK8QU9Y8gsHqBTsYUOMyEXiT2QaiS7gM32O C/bMg0cQ3rOo+d6QObhXQfOGX7WH X-Google-Smtp-Source: AKy350bU7jh+dviiQsz14pz6LcsH57HLvRK9rLKojDd4qCAa2grgQkxLQAR+YAFzFqo3hRStlQae3A== X-Received: by 2002:a05:600c:ac4:b0:3f1:78d0:fc49 with SMTP id c4-20020a05600c0ac400b003f178d0fc49mr545328wmr.7.1682091813272; Fri, 21 Apr 2023 08:43:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:4d8a:0:b0:2f4:1b04:ed8f with SMTP id b10-20020a5d4d8a000000b002f41b04ed8fls7730848wru.1.-pod-prod-gmail; Fri, 21 Apr 2023 08:43:32 -0700 (PDT) X-Received: by 2002:adf:e946:0:b0:2fe:d540:8c8e with SMTP id m6-20020adfe946000000b002fed5408c8emr4163331wrn.19.1682091811630; Fri, 21 Apr 2023 08:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682091811; cv=none; d=google.com; s=arc-20160816; b=REc6ID9DwBEPpyiIvgcMfDs1zDHXSbG0/RvKhgSw7MCgcHPDSwKFlmukCGDdHuM6kR hQFJahJI0kynhYLNjFmPmOWwbNfXNMPItsPP427Ct4M0yCFGKCMyOpS9Vff1RLxuiIQL T4rhUn0GKeIGy8YIuVPzHuLetOPQDkGiclrSRBKp45C6ClbUdLeHJBp6BwDOhw7An+ag JIsaf+J09hjuzUtIml51lVjYtZbfcFOgyvg+fezMhBI4+oWLlTQGCTP5zmylHVjUoZrD lL5kyR8yg4hvziSYO6reONpZvjw54aPh+Ij5XhfxY4k5kiWP2xHujJScY+oVCgxf1jAi b5NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=RGmx6aas+6lrsSGcmDihsoNQav0yXnIFp4ZHfNMih4U=; b=UfhMLc8ha+7dPYfO6XdFRIWM2pZ617N6E95ZkvP9fBXHTmUXhjq6MRm/Pv5ZIEP4V9 f3jrilcU6Sd3xmy1zF5DTgxac2z2yLQNe0CGvg8CawpQHoaSgM3bcbHGOUrFgisWRHUf lm/WnquSrxkHTiBnmoN75RGED6XsSN8GOUApJFYeFZ3QSFnbo3rUlUASgD5kbq627AqV RZiKPvbqutWjXdtmq4gyg6eoAR9QuwMsmsPL6S7ckg41tiF8v8QGoeTUadUUGCC03i/X XCZXk/QIs1f2QZ5qVMqE0eoyjssIaB9/5/oXeY+1nN0joWkEjMN7yHGVBH+JDNND6yCd bzrA== 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 dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id b4-20020a5d45c4000000b002f0076e2005sor2035262wrs.99.2023.04.21.08.43.31 for (Google Transport Security); Fri, 21 Apr 2023 08:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XQEqrB7D; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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