Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2198755rbb; Tue, 27 Feb 2024 14:05:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqQ1jjGY2KZ06qgioSVYhfVxb+JzTw/YxDNMeMqJwZR17Iqqyg7YHdi47lQMMTOWVPZ9DqGswMm00saKFN+5X4pLb2FrtnWLOeAPVRvA== X-Google-Smtp-Source: AGHT+IEt6EFSLay06Ri5jNNIQuJSrN+bDeWSinSiDTY/T4l4x5iq/PSsPREtK95HPe5eIdgr21u/ X-Received: by 2002:a17:906:fb09:b0:a3f:52dc:786b with SMTP id lz9-20020a170906fb0900b00a3f52dc786bmr424426ejb.23.1709071511556; Tue, 27 Feb 2024 14:05:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709071511; cv=pass; d=google.com; s=arc-20160816; b=0OBdbfjI4Ye2lqRO/Q+U4XWCpcfBG/lSUu3QhSVSyfoXPPcDjICA06WCGa1QxZfqbk sTrPqVIubZFupaN97NwZJu70iWEe0hRJaO5iW5MhGcaWgNU58FJoCdmaR0LX2SnPjFRa mypgqH8mCPRk5Sd14pFyMy5Fd4stnFPr/4CI8nAdPffggujsgS0L2VpnhO3vYRa9Te28 uWuDIJbQfq1d0RFEjAwG8xAzo4NzbRsXa0sTfHQZ2wQrMfwFGVb4QrSh0xhPJLGlfQ4q cFP7VsETfzsyz13letRRIS71Y2UIYWxWSDunqRpxRq0ycKCUdUWt/vygqwlEmbtyTQAW yDRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=esEHp5IAk1LAFDu21p5+aFW04wAykxOmP5opQf8qNeE=; fh=gJ24+xHNWCgu1aPo84yC9MoMeZ5iInLiGgegLkwKTbA=; b=IWr0J0K56ylNXqXPhn5/4b5nWjdoVyU/2RraDDddw9Kn+2J28B0gDNzvhVmG97fF3b bGwjPe5qomIMoOXnJWTWNInD+wDdluO2iTb+zNyZ7+ZswCjs8ZWG3MvZpcJSqOwLrkdN ZA7X8j4OrczQznCt/d5a4qr/N7juqFGzzUOwc5IPOpzjvwMAYrWt0of2/LfBR3uRGU7g GMR7ID3lxH6IV7hz3Bhds2Z/sO1j08AbfFSqFtr7/9F09KUwGv7Z7nnI1QbM8x3lGDkx 4W30RrpsF5egBAUmIyzwahVbyeRqTonBGYF+gQVr5K1pugGWQ9VfP+wu1xIeR+ZTM1bq 5N6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TVJd0+td; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-84086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b21-20020a170906039500b00a438e8f40d1si1069325eja.456.2024.02.27.14.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:05:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TVJd0+td; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-84086-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 28B471F246EC for ; Tue, 27 Feb 2024 22:05:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63C0A14F9F8; Tue, 27 Feb 2024 22:05:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TVJd0+td" Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B49214F977; Tue, 27 Feb 2024 22:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071500; cv=none; b=BnQzvoGsPDgLnxXRPzReX2zknUKGoO4NjWYjH3HflKXt2xoK7jd8fCFbmiA5WjVJqMLGdmiEEiSFOcsPhoFt0HCNAWtTGWG4Sj3vzKvy0WJjTqqMCtdmdg9ZUo55zDhAPpR2y8RIY3qdr/NTYqJgbug3FXCysVmRiInSAaWrI6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709071500; c=relaxed/simple; bh=F7sfpiSGcDO8hdP41H1GuO7gilXG9HPvCrlGgK7UDk4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tKi3P97Mua87RgHI4eIDc4S140usWLorXvZUncG/H9cCHiDJo2GLr2imAG0JCIBp9oS+54eMeOKXEW7lnMB/eFC9gWkGTV3lazi2TNUcq7Ndf6apaZe8up9/qh1fW0F7XD+MoAnQVpOeErHaPwcZntbn+GO22/QVflDdaaOmFQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TVJd0+td; arc=none smtp.client-ip=209.85.222.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-787a43e2e2dso285168885a.0; Tue, 27 Feb 2024 14:04:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071498; x=1709676298; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=esEHp5IAk1LAFDu21p5+aFW04wAykxOmP5opQf8qNeE=; b=TVJd0+tdga9CpNg4q5iHenEd04+R+HoMNy1fMghRfptXDclWhX9bx3eXwttwrs1FvT JAeFqWsNnO1qWDDEULJuT8AeEmMkdkY1tMZcJcd5guGqP9buj3UeqjhfY5iYf63Es+/+ 9UaokraJuoMYhf8NYIn0nA4C7iW08nkZjCRcGFI6VUCcwjvCoIyP7eRMH+yANLVMheDj ce2pD5Y6gbBN/HhcLGMqXlZ4PcDf66dNdk2d1ELV36gJzIERJlOs30sbh2uRXk+GAqJw NLAUIyNWv0DbtArARwaDhOa39iGoIFiLcHGVC17FPeYZbzl0VWoyjDegEbUeZou9O6M1 Cr/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071498; x=1709676298; 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=esEHp5IAk1LAFDu21p5+aFW04wAykxOmP5opQf8qNeE=; b=dejHg9E3FhKED4T1cbZ363/JEG7m+PUWj+hPdYflLbfyS3yxZL0/yUST5u+0LyJMg8 Rge/nfKiZpjKugJ3tYgqpRjmM8laMjwgG/IYIiDO5pqXU+ugwsPLXzboAmXHDiTjeJOl CgzlyCT5SM0GRmtKN+nu4XxtPJRacIUqeWPjvvDXriVq/fnE5EVnewnFB2GR4wXdSQc0 AEkwxqNiMVsBO4TkY9x1BwIvwPewB5YTGaHqnOhH1iC+cSHqnbaLJi37k9nGwq1KRvWI ZRtIm0BhECCla6JUUJmtCYuHNv9IKrljlpxMDcQoYVS95lMgFA4Bz7MxgpKw/W7yhupC NFIw== X-Forwarded-Encrypted: i=1; AJvYcCWmwQZnTqTwDzreZAmWzAAeascJMyJdvvm5Ib8fp/57idfLsqTN1Wqiv+D7rt2hkh4NP1GxI2JL6nV4+1cz99xbdxvtd5K9Stl7zzjxfCM3jy1w2W1QK+DVGv1rhF3TXlqYlEMa9zZEfA== X-Gm-Message-State: AOJu0YxOQgtTWJEq0Uy7WzaiC8XdRxaE5P+XDeLPHxTsFyw/Sx7H54Fk /8I4WvxQZctW69P/cPQdPMHgJxTjrjRJHAxjgBxg4R4/SWUyUDoq X-Received: by 2002:ad4:5ceb:0:b0:68e:e9d2:3e3 with SMTP id iv11-20020ad45ceb000000b0068ee9d203e3mr4169150qvb.46.1709071497829; Tue, 27 Feb 2024 14:04:57 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:9ee3:b2ab:6ca:180d]) by smtp.gmail.com with ESMTPSA id c12-20020a0ce14c000000b0068fc55bcf6asm4569556qvl.119.2024.02.27.14.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:04:57 -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 V7 0/6] soc: imx8mp: Finish support for HDMI Date: Tue, 27 Feb 2024 16:04:34 -0600 Message-ID: <20240227220444.77566-1-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 attempts, 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. V7: Patch 5/7 marks the PVI driver disabled by default to prevent EPROBE_DEFER errors. No other changes to other patches in the series 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 | 147 ++++ 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, 937 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8mp-hdmi-phy.yaml create mode 100644 drivers/phy/freescale/phy-fsl-samsung-hdmi.c -- 2.43.0