From patchwork Fri Apr 21 15:43:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13221016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1879EC7618E for ; Sat, 22 Apr 2023 14:45:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CFCD510E2BF; Sat, 22 Apr 2023 14:45:31 +0000 (UTC) Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7CF3D89CC1 for ; Fri, 21 Apr 2023 15:43:31 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-2f7a7f9667bso1200668f8f.1 for ; Fri, 21 Apr 2023 08:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682091809; x=1684683809; 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=bGhninvCfwM3cEyNcZ4WVCLboSbKUZEfNvggheMtKI8=; b=qq5fZeLPGJBiR9WhxWVr/J2CJptqhk9VO5SyqMuOtE/wlt0cn3bA5tQnKH7Fzvp8+t mUSsTPeg36zmG9mmFLDh6jBXWURqB90UmXSIkSxoF4c7IDP1MH8KxDGY1+VRnsi3gLYU zMKDZgKWr5HuGtUMzABagGDObqud77iPIHM98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682091809; x=1684683809; 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=bGhninvCfwM3cEyNcZ4WVCLboSbKUZEfNvggheMtKI8=; b=BqXqTxEMPt0GgReLy5sQ0gZQcGi8mBZCGOihG23BFhJvcMxSnOUQ31b1A5uZIprMlN SZ7FyBx0YeE0Zm+hDdp9nLdoa7gaApTzyvD2pH5I6tnGnvp20o7ec9gt5qCt/gkQ9Kiw axf4zuyGrOj+8IjFnTrhtGBr1jATIEuijF00bkynvwDURNdkgw6cCRmVHWKyQ3oB8M6U K532s5KALda22E8+cFX6LjjZwxb0pLgKbdrfneZtEc16KBely5oY0DuBk2ySV+JdporV w8vlUoyFADK4KYXH1F1w2WCZjkVfUC73TPZNRu3Ptl+hNuHX2sXjPfsUcswHmOTeHdM8 l8YQ== X-Gm-Message-State: AAQBX9eT+Jgf+l02nMDGNA5czMp/RFp4ElT6vkFsYR+qV/eiJeHAcNEI ZMUHOE20CcvoF2DHoto43rVvtQ== X-Google-Smtp-Source: AKy350bNOn0XaJOZbHF/mKa+8yWb9j1RXhwzD+mFTe+LakHPYoh+l9jh6N7W7PRZUGF+DcSi/r7iFw== X-Received: by 2002:a5d:4147:0:b0:301:8080:a8fa with SMTP id c7-20020a5d4147000000b003018080a8famr4768749wrq.27.1682091809492; Fri, 21 Apr 2023 08:43:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 08:43:28 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Subject: [PATCH 1/7] dt-bindings: display: panel: Add synaptics r63353 panel controller Date: Fri, 21 Apr 2023 17:43:02 +0200 Message-Id: <20230421154308.527128-2-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-Mailman-Approved-At: Sat, 22 Apr 2023 14:45:29 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Dario Binacchi , Sam Ravnborg , Amarula patchwork , dri-devel@lists.freedesktop.org, Rob Herring , Thierry Reding , Krzysztof Kozlowski , michael@amarulasolutions.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Michael Trimarchi Add documentation for "synaptics,r63353" panel. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- .../display/panel/synaptics,r63353.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/synaptics,r63353.yaml diff --git a/Documentation/devicetree/bindings/display/panel/synaptics,r63353.yaml b/Documentation/devicetree/bindings/display/panel/synaptics,r63353.yaml new file mode 100644 index 000000000000..13e6ed39e124 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/synaptics,r63353.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/synaptics,r63353.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synaptics R63353 based MIPI-DSI panels + +maintainers: + - Michael Trimarchi + +properties: + compatible: + items: + - enum: + - sharp,ls068b3sx02 + - const: synaptics,r63353 + + avdd-supply: true + dvdd-supply: true + port: true + reg: true + reset-gpios: true + backlight: true + +required: + - compatible + - avdd-supply + - dvdd-supply + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "sharp,ls068b3sx02", "synaptics,r63353"; + reg = <0>; + avdd-supply = <&avdd_display>; + dvdd-supply = <&dvdd_display>; + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ + + port { + panel_in: endpoint { + remote-endpoint = <&mipi_dsi_out>; + }; + }; + }; + }; + +... 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: 13221018 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 906DBC6FD18 for ; Sat, 22 Apr 2023 14:45:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E14610E311; Sat, 22 Apr 2023 14:45:32 +0000 (UTC) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49C4D89CC1 for ; Fri, 21 Apr 2023 15:43:33 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-2f95231618aso1224450f8f.1 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=FIIGRn8j4kA2TDBtTxRO5zN0CLNfn+G6oKQkvqkgfLBwPluHSXUsRJFqIfYPY56wlB mlxS1CSrxZRcGdGbwUI/g0vQ1hQC6MA+8t0SmHCn6DxRGr7pm3KQ9tqp8dNVCCLJ/RFc 2cK2g/l5W0wog8yZOiSG7sawOco57M4DDyH/00MP2EeC/gH03ZXKYdBDbtfDFIwrjFtw oQ7yon13cASjOiNtojBM8M8r2fqSBx89aefBHrJLXPnfFOaZT/4Wv9WOzYKXZ1c84IgK nPn8q+meNEEds6MUtVfRXpbTv3HHfPfyM+7eGg2lidnFH94lX4xhRfVJt94dlcCbH50q /D2Q== X-Gm-Message-State: AAQBX9fiC5dRgmZ36D9GKFdriamp+43/BLAQ8p7kvcXFSnKwAGNtb3Gm GBMlBQey3bClRvaBVn1jYktCgQ== X-Google-Smtp-Source: AKy350aGGULBOGUdPrSSkCcZp8QgQ6rXi1cHh9ZGg+Qa7OjS9eijChMRWNq5t6UygaFMYn59hftNTg== 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 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-Mailman-Approved-At: Sat, 22 Apr 2023 14:45:29 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dario Binacchi , dri-devel@lists.freedesktop.org, Thierry Reding , michael@amarulasolutions.com, Sam Ravnborg , Amarula patchwork Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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