From patchwork Thu Nov 11 15:22:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1746 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 72A193F07B for ; Thu, 11 Nov 2021 16:23:10 +0100 (CET) Received: by mail-wm1-f69.google.com with SMTP id l6-20020a05600c4f0600b0033321934a39sf2834826wmq.9 for ; Thu, 11 Nov 2021 07:23:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636644190; cv=pass; d=google.com; s=arc-20160816; b=Iyocn67eCAh04pFjgp+yt0SnIraK9dGdnwTXcVy8lEmtOTLgxUK++5BNxguzThQYqr /1gT97xZPXLv0WqyQ808g+tpke/S24ituFS4/LK7jTX2b3GQgkLvSLKCBJpFn3bGUgv/ 3DCZe+ldUsJyBytGy4L65lOSS6r1w/Re44p++rpZuS1PuxvAk+wsm/Kvb6ZRnJ1wLkbi rfcMQQ0LZUyqcwVg72HaC7E4zfuMsHAIZNiI7j/3G8PufZPTtwkTP93CQ5NYMIEKIAFH 08AZxkJOct/Ywi3pmhtnxXNUrVlL3PmNK8ZJdTWvK7aN6lbZhRlS4PLv3MxVdR1Zw6lx 0dkw== 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=XnJ56nyr+2yTx+X5T9+0mm57uiqTbkl7TAJmfSyBigs=; b=nyV6I4diClzRFCXgqWxWl17MsCqbbHf1APpnJEVEkUeb0c8aVlr5c8t2jr36vv0KUS z3FKT/S4rs1pOntXnZWsr2QwHN6qxfzOf1kkOJjSJ7fTPsO4VRJ0kMZo6sPrMW9uytSC JVf+SdB+/AHYrQwo3MI0RrKDcPguFe/vOAnYxDvJorDVmSK4e0M7/T8avLBvwnWQCpvR sPH+C/FXXuI/QBbdZWpjtDDN2pkpvr7prJmx4wSlS7Sti9Ad5zy7nsFnMDptujBzIVnG R3Udpcr996kUf6yfthCTDo/Mm+jot01d/ClFEnUcAVXraPjB4bidt4VtZW2L3UBb2IqR sNTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SEiqDmSK; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=XnJ56nyr+2yTx+X5T9+0mm57uiqTbkl7TAJmfSyBigs=; b=avPv6FKF3kkXViaWUjP2vmHknc2gzDptI6q5W+vPo9t1coYDgtUSXO1NOBLAaAUDEH nSk/bvvANj7cnSt8yEkhanPxtpN99vH11sZqN3MT7K0yYGGV1jWEBVzU7rBDmllpjFE0 /L3OoRkVrdLl2p/1uCwLBBSBQqE55IClG3c68= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=XnJ56nyr+2yTx+X5T9+0mm57uiqTbkl7TAJmfSyBigs=; b=Z2Hfokt9YzipG0PaCJQRlJsCt8KG3gSqlwHadHOgeKg8wrp3Op79x8+IDZneDnP88m +BxIO+QedSHRtQ9XgZFLTE/n2smxuRIE3h82y/FQNy6OyMcroGySgLMN/8IjOxHDGI27 Cl6DNnpzb/xB0CohqNY3swx5Wxtif1dBYd+j29H9ae893A2HNypAMTzP/GevwOLbazyB r+E8wXgUepTzDgGIAoEwwfCmkBWlja8z0YPo0zOTxN3L9t4B9jRvdP4E9TC1V9JZS0Rl xdDrhVr+4CihWWDxQYekihJF/JqwztJYDYM2eTsq9oHPk6ddj957YEu+lTgzgzLQpoAE 6f7Q== X-Gm-Message-State: AOAM533QFzIEyVel5h2agitcMHOmjAGAgTq/C3GCYJ03E4bSUH3wwFLn MCSo02xztgm4F3K2AnUBR/M4Xs7p X-Google-Smtp-Source: ABdhPJwRuIVmG0XjnTnvq2KB5wmiyqSMP+ie0ms+NRTuT8qJ72+XfXCwxSAB+1eyWH3asCD2vksG6Q== X-Received: by 2002:adf:d1e2:: with SMTP id g2mr7560325wrd.362.1636644190234; Thu, 11 Nov 2021 07:23:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:ad6:: with SMTP id c22ls5124357wmr.1.canary-gmail; Thu, 11 Nov 2021 07:23:09 -0800 (PST) X-Received: by 2002:a05:600c:22cb:: with SMTP id 11mr9000301wmg.181.1636644189162; Thu, 11 Nov 2021 07:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636644189; cv=none; d=google.com; s=arc-20160816; b=mwsYy6ubtvPTb55UTtu0ADXd26Pn+hKhFG2Y9EVc51fiOrfFhJjmDSAMdsoPiSDglH MsalfHUhOlmZ7hXE4/YtiOQf12tpt42Qk2i3+FZGSlc9GTQ4GF4JM6zv0ajZlAz3bxnD Se4ebzRi8df156ZWe3vw0XC6Hdg1WTQjS4S22qDRec3MJUEQZcLUu670TUSimZKS/P8E 74t3iCzlYV+kIGDE/T9U6ww3+QvaWWO7S6oZbGVwhroXQ+4+GpnA0bs+Yq7N/KRjvC3n fdaIVaX/ZG3ntDX8NqifUySCNBipf7sbmDmJH+CwZDBneGuPlPwXL4GD9aIPbRTmcqOV iT2w== 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=1LE+XNBolkTsWIvH8Ut6LTTHH4UL3wj1a74HRrrRWGs=; b=YUZjjJXwsrnQ8N6wlbcPcUpqTfPpXGrror28Tjthz7Y7jhu34Cx5elLII4Df4OlJQ2 c56Ezd2i05OwiRpLz1oNMK91p4lmaOBnatOcuVBBn4Kj1D0YP9E0RsjrtaW4aq4jP3cM +W1IRPMF7OXttdJRT3L2lo2uFyHgNZCSIa5ui4j7NY9O0zBIF5c6PZaxhFJwjkG52ZQu SSWVIa6kGdnJ+ClP2I2bCHGECIsbJfTyrr9mLRAq9XIDYZPCu85Aqg6MddMqg9hbilWT Fr+yRBv+P68QptpCo98AVCRe4rJ/OFBh2yY3QFsjDFTMn6rMbE8AeLJOezpvNOTbaf24 Of4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SEiqDmSK; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 c4sor2322021wrb.6.2021.11.11.07.23.09 for (Google Transport Security); Thu, 11 Nov 2021 07:23:09 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:6ac7:: with SMTP id u7mr9547761wrw.57.1636644188792; Thu, 11 Nov 2021 07:23:08 -0800 (PST) Received: from panicking.pdxnet.pdxeng.ch ([5.171.215.77]) by smtp.gmail.com with ESMTPSA id f3sm8973683wmb.12.2021.11.11.07.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:23:08 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH 06/11] drm/panel: Add Synaptics R63353 panel driver Date: Thu, 11 Nov 2021 16:22:53 +0100 Message-Id: <20211111152258.26131-6-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111152258.26131-1-michael@amarulasolutions.com> References: <20211111152258.26131-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SEiqDmSK; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: , The LS068B3SX02 panel is based on the Synaptics R63353 Controller. Add a driver for it. Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-synaptics-r63353.c | 362 ++++++++++++++++++ 3 files changed, 371 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-synaptics-r63353.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 2cb8eba76af8..ee135b178235 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -551,6 +551,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_ACX424AKP tristate "Sony ACX424AKP DSI command mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 6e30640b9099..9e80106f69dc 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -56,6 +56,7 @@ obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.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_ACX424AKP) += panel-sony-acx424akp.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.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..da3886c8a4dc --- /dev/null +++ b/drivers/gpu/drm/panel/panel-synaptics-r63353.c @@ -0,0 +1,362 @@ +// 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