From patchwork Mon Feb 26 23:45:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13572997 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 5F04BC48BF6 for ; Mon, 26 Feb 2024 23:45:44 +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=YgEEEisL6SXlkM6PvqcP23GrvoH1kGiZM+lYnEguH8k=; b=BJ02TKV827+U9b 0njyRrdVQ/CKs7DKGxEU/INJSCaVEzHCQpv06D3TxReLiTObz55eL2Ezc1QqJCUT2m3zir80XvQsr Hpj8c1uK0lMXU1mLv12T4f6+5z8RSnFXLvIyCWCtIZV4Z7KNogstvn85R/AvPV4iWmgHdv3vy5w28 ZL+vF+NTuDgvhDiBhD+lys96alZCG7W87XLEa/fTeqhBMCCr8oAWBuKKKM5alZflWb65p6Ni8JrUC jz36EqHIW7WwEVLs5EZumr0s90t/A4q1yT6SAvBBDS8G7wIbZhsp/zCe5t5axTevF2qlsYyO2wR54 YO/PwqqFmDrKvJ5cdcLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rekfH-0000000309w-3wW5; Mon, 26 Feb 2024 23:45:43 +0000 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rekfC-0000000308G-2uEr; Mon, 26 Feb 2024 23:45:41 +0000 Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-7c7964d109aso143350039f.2; Mon, 26 Feb 2024 15:45:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708991137; x=1709595937; 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=YWIbvre+rElW1Hi4Tns90pWqujeQfsqDKyIvXn+Wd7Y=; b=DvGQCNeQXSS/Dl2a51t9WMSfKMCR0TXCCSA7Zx3rvoQrGPaeyCxirA0YJiBso52/e+ lYu1ElGw7+Z0tAsTPQAi13lglid/LG3toEDBlU93Ix36kH8J1CineYgZdELBj81ghkTs FdgWbkZBSgJWznceMp68WWlacO8BaCMTNeCqEr1ZGA8wt8dhbWLWuQbBD/GpWLniY0Un DA7Uq04BYzhAW5D+j3L5mSNA5Xq3Kk1F4ffhLYXaRmjrTADZD+ORs4ao3WzJ2NYMXBGi c01aKWLyZbMkKVZsu0WA+rLft7oe8Umzby88ZEzp+N+FnOiKGI4p7WlT/GXLMd+UkJ7S 0A3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708991137; x=1709595937; 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=YWIbvre+rElW1Hi4Tns90pWqujeQfsqDKyIvXn+Wd7Y=; b=iq+Zhd1AihYspBImiRcEKptMfm02NKTbi2Mjz6SegGKDfDGn83A2LlUbw1gsFX6s1S lS02i/hUAJOkTXZhihzgqu7cZZXq4n9myvsXqo3MNn2IDkEQH1sWyjuzYxxZyY8/t0i3 00m10DsP/g8/qUyb9ZW9fZZyirfCccNkjAR0oV7/xH3Idh9/aZOFYL0lbhZqgzksnh9J 6OsF6UcmMZuce1nNnCJZDothF2A7MufBW+mG6IZfJR/ivRB0K5F03pRpglq+iTICOjjh YAD20AMdpWplzHnn/TAF3cHzTqVOPLReh3RqeiTTqdu0wNCxR6cqkh8/5k4PoUPRoiWE c8qQ== X-Forwarded-Encrypted: i=1; AJvYcCUP/s+N5rhgR66EY6hYjDq5kSa18uYQffpnKjiaYHx4ODeKwqpKtsPtL/ImYjHFTTCBPvDDmcoJ9jAsVs8XeTQACKSjWWxRYGz9eNWmvA== X-Gm-Message-State: AOJu0YyQKvN0dedITAHfclW8kv/PnVO7YaPU3qCURpIjVb8QsGHy5UPm LgPqOG9+VGBWMtKS9MeSGSZPVwSvxwRkjtXhLtjpAUrC+NrDW8XxaVY7NF9bpqsHBg== X-Google-Smtp-Source: AGHT+IEFd1YNIU2pFTFYWayiyy5owHCUX8d2oFahEMWR2wOBYQt4gvySx+O01SGAjDhoU7jBjgwbnA== X-Received: by 2002:a05:6602:1d01:b0:7c7:da5e:3a61 with SMTP id hh1-20020a0566021d0100b007c7da5e3a61mr2215880iob.9.1708991136677; Mon, 26 Feb 2024 15:45:36 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:9c95:d061:819a:2ab2]) by smtp.gmail.com with ESMTPSA id c25-20020a023319000000b004741cf1e95esm1545317jae.11.2024.02.26.15.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 15:45:36 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Catalin Marinas , Will Deacon , Lucas Stach , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH V6 0/6] soc: imx8mp: Finish support for HDMI Date: Mon, 26 Feb 2024 17:45:11 -0600 Message-ID: <20240226234532.80114-1-aford173@gmail.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-20240226_154538_846479_31A90A4F X-CRM114-Status: GOOD ( 17.85 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Adam Ford Sat, Feb 17, 10:16 PM (9 days ago) to linux-arm-kernel, linux-phy, aford, me, Vinod, Kishon, Rob, Krzysztof, Conor, Shawn, Sascha, Pengutronix, Fabio, NXP, Catalin, Will, Lucas, devicetree, linux-kernel The i.MX8M Plus has an HDMI controller, which depends on several other systems. The Parallel Video Interface (PVI) and the HDMI-TX are already in the Linux-Next staging area 20240209, but the HDMI PHY driver and several device trees updates are still needed. This series is adapted from multiple series from Lucas Stach with edits and suggestions from feedback from various attemps, but it since it's difficult to use and test them independently, I merged them into on unified series. The version history is a bit ambiguous since different components were submitted at different times and had different amount of attempts. The previous attempt I did used the wrong starting point for the PHY, so this update includes a newer starting point with tags from that version and fixes from various people's feedback. I hope I caught them all, but I apologize if I missed something. Any tags from the previous attempt I made were intentionally dropped, because of the significant change, but I kept tags from the newer version I grabbed from patchwork. Because several items from the last attempt were merged, this series is only focussed on adding the HDMI PHY driver, and enabling the power domain, irqsteer interrupt controller, and HDMI pipeline in the device tree. The version numbers are a bit strange since these all got pulled from various attempts with different versions, but I wanted to push them together as a series to complete the pending work. This series restarted at V4 based on the version of the PHY driver and the other drivers and power-domain changes have been applied already. V6: Make the PHY driver depend on COMMON_CLK to fix build errors Make LCDIF3 disabled by default since it depends on hardware. V5 primarily updates feedback from the PHY driver itself, but a small adjustment was made to the register size in the device tree. Adam Ford (1): arm64: defconfig: Enable DRM_IMX8MP_DW_HDMI_BRIDGE as module Adam Ford (1): arm64: defconfig: Enable DRM_IMX8MP_DW_HDMI_BRIDGE as module Lucas Stach (5): dt-bindings: phy: add binding for the i.MX8MP HDMI PHY phy: freescale: add Samsung HDMI PHY arm64: dts: imx8mp: add HDMI power-domains arm64: dts: imx8mp: add HDMI irqsteer arm64: dts: imx8mp: add HDMI display pipeline .../bindings/phy/fsl,imx8mp-hdmi-phy.yaml | 62 ++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 146 ++++ arch/arm64/configs/defconfig | 1 + drivers/phy/freescale/Kconfig | 6 + drivers/phy/freescale/Makefile | 1 + drivers/phy/freescale/phy-fsl-samsung-hdmi.c | 720 ++++++++++++++++++ 6 files changed, 936 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8mp-hdmi-phy.yaml create mode 100644 drivers/phy/freescale/phy-fsl-samsung-hdmi.c