From patchwork Thu Dec 7 14:16:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13483352 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 81E2CC10DC3 for ; Thu, 7 Dec 2023 14:18:06 +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=jtu4OemKpsSIKRZIoz/KIoW56m5R4VtKRWpI3wJY1IQ=; b=Jog+H9MyzPR/Lb vmh9AB2gG+Zsw5pnX/DMyK0b7n+OWhd2dPKbQ2+9zDCZxWggv1nq4kOyQFnlQNFE5x0S1vWD3J6oa HaJ3IGWsEJ1gf4MD0YD5JACcAqbY/CfUN+fSut/NJR+JukT5ga+sh0u9va517rsOd2SuweEVI2ZLN aaD2UMc6BeGfY7siPWM/yv9uYX033PAg1xh0R2vp9F8+4x0hfJ2EBq+FLp3NUJXdY3IaprmVGTCyv 4hsm+pUcPAB5Weh1vSBDtk28UVcWhUJty/hx0mwa9WQ2hxm+9eymVI2ebPLGS3Gqh63AXeexnglhY MZOIwTBiDDTlJmRo8fvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rBFC4-00D02Z-0x; Thu, 07 Dec 2023 14:17:36 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rBFC0-00Czyh-2N for linux-arm-kernel@lists.infradead.org; Thu, 07 Dec 2023 14:17:34 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9e1021dbd28so124798166b.3 for ; Thu, 07 Dec 2023 06:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701958648; x=1702563448; 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=mF9zOE4ExgVr9gQbxX7r7tJN+TXsbkHqJB5gcZ6w0c8=; b=kx/y8fU1WSCpjv7JBgjPviBwAHI1efwXF4BAeZ1bAYt21LfB7F6QcAHsSKeMNwHRkf qM77Xfcn9eU277keXkaHNqGzQWph0O05XJkup1gdyx7+HogYj83ngSftvs7w6Y/34iAm HxlvtOmypp762S+fCFgswdKfQVnu9Izql97CU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701958648; x=1702563448; 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=mF9zOE4ExgVr9gQbxX7r7tJN+TXsbkHqJB5gcZ6w0c8=; b=qSEC+LGxT0jETiV0c4zZL66rKbWkqIKtKz/est+k562D/7s4svPWv2vKdbkNPkkGr+ On9ThoxyDfb35j0amVPK5OnDNFN2IW2ddQlj5acfZtcYt5ZBu0mAu9b+XPtMA4QqUbar Y5eZkK1zd2H9UtfnKgscDjJr9CAzXh+TUEb7DmQahBo+vPCOGuiq1KSG9fkjCQzChHdz UROIxWXEIy+smVqe46wxQ9eQU2zgViXkkQyNhM+B0mk7bQr9WVSRzkMjGa8B4vKNSi8e 2rGwHbtzgylFHcSFy3bYeEsfAsT6ODjVflgLD5pTQ++a4vFcHNleG1jLKEOTE0PJ0u7J 8TZw== X-Gm-Message-State: AOJu0YyCUUM0Thi2mO4+J1YsWC9Fmz93zVjuYV1H02MlzvEnZh5SErAr N3oia6Folc1OWOsxusRe7fHzzA== X-Google-Smtp-Source: AGHT+IHol+ZevJoFf28hi8eUKxIiSNgtRFFCa/GbsGQny6bOEW6yOyjkTXz3Q9kNLO3rSY+QhvtvKg== X-Received: by 2002:a17:906:408b:b0:a19:a19b:c72f with SMTP id u11-20020a170906408b00b00a19a19bc72fmr1394903ejj.127.1701958647742; Thu, 07 Dec 2023 06:17:27 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:9bf:959c:3c66:46c2]) by smtp.gmail.com with ESMTPSA id f24-20020a170906c09800b00a1e814b7155sm885421ejz.62.2023.12.07.06.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 06:17:27 -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 v5 00/10] Add displays support for bsh-smm-s2/pro boards Date: Thu, 7 Dec 2023 15:16:29 +0100 Message-ID: <20231207141723.108004-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-20231207_061732_795610_7C8C88EA X-CRM114-Status: GOOD ( 17.98 ) 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 v5: - Replace a 'return ret' with a 'goto fail' in the r63353_panel_activate() - Add 'Reviewed-by' tag of Krzysztof Kozlowski Changes in v4: - Set the reset gpio to low in a single operation - Remove duplicated code for prepare/unprepare callbacks - 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