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: 13573005 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 8E237C5478C for ; Mon, 26 Feb 2024 23:46:04 +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=zJYOYaGk/y8fOKz+0wMifDAhPe7ySVSo3VuHi787w8Y=; b=DMvUCrdzJ0Ljq5 lsQrnmkpgZt8Zf3qDKPJPRHuDR+iJ6wFhqJFGBntV5HJQYYkVooDbyxvs8LjR8RLB8lr91wrv9gDT MARm8ljt/pUbqtddmc9siLuSUkqK1Hcz/klHAxjntxVQ4/oFI7gvlLvAA9Vbta6wJuq9ZGbwogGeK /LJbQMFuHDsxh73iEcf94M5k3zb/QlBqDHCui0RIB+GLNeApeHgMrAX5XPjRxTB4o34Cq6ZaR6nxV mbBttCkjstuBR8kri+3wEWLvHu0NNmVkNBUDDCG2jaZPPEIzW7v9z38hHi0SzQMs8kVK3OuMRiRH9 GadcO5qFxdT+Wv+cHu3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rekfH-0000000309c-1Dxj; 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-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 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