From patchwork Tue Dec 5 10:52:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13479956 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 EFAA2C10DCE for ; Tue, 5 Dec 2023 10:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vzraL1JXZ1LKemGWjcOr99Z5pttNeXh2OHTLXSsezM0=; b=bf8FStQu78Ar+U pQP2/fC2GeZ03Jh+tWNmPh3uNtdUV23CORsHVs0vRVXoNsji17xD3JliQE61aYb4sJEPYb2e1bL3a fecDLZWOECCf/mfmJR0ges2QQLZxwHWki+00MmpfaqXR2cbb5K/bbkTHweQPNP8shYraW8kFdT4uR jWVHGVE64ynqRv7DiwMpPi7iGY0/yD+YajACnCFDEirf9nlkWXqBL1lu/EtTvSbDE/uEVRPzf54Ef jRFq9K4DYwz+DHD8jtz61xplAjUpddOYKX9IWaf8QOcLalPI7RUxV2k6sLsrWPqlqesnis5tD7+pU f3qKvMhGWRdWHKDA4ZzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAT43-0072I9-3C; Tue, 05 Dec 2023 10:54:07 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAT41-0072HH-06 for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 10:54:06 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a0029289b1bso708980566b.1 for ; Tue, 05 Dec 2023 02:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701773642; x=1702378442; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9vMrXeU9PccX6SmGwv0uL8uz2m+ssCwq/m3VB0zUtRA=; b=aJ1/SSTZLDR9tyPhT+daF4+I+jSZTqTwBDSDKqkPQuHAlXOAyzsTNLTM4AmbJRppud Y70zXZheWcxNwsZbIBwiNrvQgVuDbEiQjrgtaL2x8H6duz6yY0m1djZLfx/oh2nlJ4qQ a7MoHPQNdGJKkaxXAJi6/W4khCv+GQ3fusvvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701773642; x=1702378442; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9vMrXeU9PccX6SmGwv0uL8uz2m+ssCwq/m3VB0zUtRA=; b=S/be7vZ+mw1krAPciDJpwaqcogdmF3Nkf0VuoTXpy17x0wFrf75e5Ir0e6zWeG+LXt Z3e45n4YZVqioldamWoPmo+fs4dDUqswPpYcXIIFYrqkH7TULTXnpgtKuoIb+ZC+IRHv a/HyPbK762FIyxAf33J1G+Luay7KaxI2czU0cV23wm9bBdnv0SOgqJFYXXH3kGcOMJmM 9mHphSwTlqNxRJt+iFxLOzIB00moHOj1SU+TyMYcCphDnDIcNH9nx7C+/n/Qc1mTXnhM rE+T3Wx5a5Abie+nZBMbEchEbECXIC9HR4mJIa1DsnpWTkCHmbQfldmvwi7ffyD6wEO5 ibDg== X-Gm-Message-State: AOJu0YwF+nKb64snet1h/9Nd+jaLOpWqG+Tc25nDigOpZxP7ssTcmwsZ 7s8IkZBrrGPq9YFOIy9WzTSW5Q== X-Google-Smtp-Source: AGHT+IFuMd+CZo1e3WCy0qTpcsuyyZxRhrA2D9Fm6zF+vDpSe64HfbUduReMi+n70WxZd3wbPaRzFQ== X-Received: by 2002:a17:906:1c2:b0:a1c:795b:405a with SMTP id 2-20020a17090601c200b00a1c795b405amr366504ejj.109.1701773641775; Tue, 05 Dec 2023 02:54:01 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-54-95-129.retail.telecomitalia.it. [82.54.95.129]) by smtp.gmail.com with ESMTPSA id n23-20020a170906089700b0099297782aa9sm6413491eje.49.2023.12.05.02.53.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 02:54:01 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Andrzej Hajda , Conor Dooley , Daniel Vetter , Dave Stevenson , David Airlie , Fabio Estevam , Frieder Schrempf , Inki Dae , Jagan Teki , Jernej Skrabec , Jessica Zhang , Jonas Karlman , Krzysztof Kozlowski , Laurent Pinchart , Maarten Lankhorst , Marek Szyprowski , Maxime Ripard , NXP Linux Team , Neil Armstrong , Peng Fan , Pengutronix Kernel Team , Rob Herring , Robert Foss , Sam Ravnborg , Sascha Hauer , Shawn Guo , Thomas Zimmermann , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 00/10] Add displays support for bsh-smm-s2/pro boards Date: Tue, 5 Dec 2023 11:52:47 +0100 Message-ID: <20231205105341.4100896-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_025405_113465_AEC79C09 X-CRM114-Status: GOOD ( 17.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The series adds drivers for the displays used by bsh-smm-s2/pro boards. This required applying some patches to the samsung-dsim driver and the drm_bridge.c module. Changes in v4: - Set the reset gpio to low in a single operation - Remove duplicated code for prepare/unprepare callbacks - Add 'Reviewed-by; tag of Neil Armstrong Changes in v3: - Add 'Reviewed-by' tag of Krzysztof Kozlowski. - Replace "synaptics,r63353" compatible with "syna,r63353", as required by vendor-prefixes.yaml. - Drop power-supply - Replace "synaptics,r63353" compatible with "syna,r63353", as required by vendor-prefixes.yaml. - Squash patch [09/11] dt-bindings: ili9805: add compatible string for Tianma TM041XDHG01 into [07/11] dt-bindings: display: panel: Add Ilitek ili9805 panel controller. Changes in v2: - Add $ref to panel-common.yaml - Drop port, reset-gpios, and backlight - Set port and backlight ad required - Replace additionalProperties with unevaluatedProperties - Adjust the timings of the panel reset - Add $ref to panel-common.yaml - Drop port, reset-gpios, and backlight - Set port and backlight ad required - Replace additionalProperties with unevaluatedProperties - Adjust the mipi_dsi node based on the latest patches merged into the mainline in the dtsi files it includes. - Added to the series the following patches: - 0001 drm/bridge: Fix bridge disable logic - 0002 drm/bridge: Fix a use case in the bridge disable logic - 0003 samsung-dsim: enter display mode in the enable() callback - 0004 drm: bridge: samsung-dsim: complete the CLKLANE_STOP setting Dario Binacchi (4): drm/bridge: Fix bridge disable logic drm/bridge: Fix a use case in the bridge disable logic drm: bridge: samsung-dsim: enter display mode in the enable() callback drm: bridge: samsung-dsim: complete the CLKLANE_STOP setting Michael Trimarchi (6): dt-bindings: display: panel: Add synaptics r63353 panel controller drm/panel: Add Synaptics R63353 panel driver dt-bindings: display: panel: Add Ilitek ili9805 panel controller drm/panel: Add Ilitek ILI9805 panel driver drm/panel: ilitek-ili9805: add support for Tianma TM041XDHG01 panel arm64: dts: imx8mn-bsh-smm-s2/pro: add display setup .../display/panel/ilitek,ili9805.yaml | 62 +++ .../display/panel/synaptics,r63353.yaml | 61 +++ MAINTAINERS | 12 + .../freescale/imx8mn-bsh-smm-s2-common.dtsi | 1 + .../freescale/imx8mn-bsh-smm-s2-display.dtsi | 121 ++++++ drivers/gpu/drm/bridge/samsung-dsim.c | 14 +- drivers/gpu/drm/drm_bridge.c | 9 +- drivers/gpu/drm/panel/Kconfig | 18 + drivers/gpu/drm/panel/Makefile | 2 + drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 406 ++++++++++++++++++ .../gpu/drm/panel/panel-synaptics-r63353.c | 363 ++++++++++++++++ 11 files changed, 1062 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9805.yaml create mode 100644 Documentation/devicetree/bindings/display/panel/synaptics,r63353.yaml create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9805.c create mode 100644 drivers/gpu/drm/panel/panel-synaptics-r63353.c