From patchwork Sun Feb 18 04:16:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13561663 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 6B792C48BC4 for ; Sun, 18 Feb 2024 04:17:38 +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:References:In-Reply-To: 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: List-Owner; bh=X8KkkZmzZriYKF6o+TdEvUEOFvrpLIOzJCanHklKq04=; b=KY/HCIlXSZzSTm Lc2RUbswMFnmzd1SwdsU/z/JpP/xZFHh26u+SOxV4og528gNiQ01URixmoLDYqIiUiiXoQ7e0l2pO DFbj2I79myLiPDX+JaoKxh6yGSAGQztYypxQqwIa85WQ07w5b5CXyCjy9RG2URWveHmrlNtWQA0A4 lrvHRorotmgnwtgqWt4DdpKNkZ9ch5GxOFQ7O1OXvpdWGg3fVyqYZWdMY/KkjSLBrwLd0lXCOqLsf HfzXF9Y9qPSkMIH2a+HojiJWlFXDWoRWR/iToLCj1pz/jbQTl5tAFjIuRJuAmVwFVsfvmdpQ/y0uE IKHNuOU7t/KO63CKEH7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbYcT-00000006xUv-41Xm; Sun, 18 Feb 2024 04:17:37 +0000 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbYc5-00000006xG3-0u3B; Sun, 18 Feb 2024 04:17:14 +0000 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-68f51ba7043so5271566d6.3; Sat, 17 Feb 2024 20:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708229832; x=1708834632; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c/aeBIdmV1XrY4y6jgnhEUqIAA87/lYvvzwVW9/z3wo=; b=F9tHALc07UAauwTHBvekJ7l24BjPnurOOYjyWgIWFb05pIiXkARjgn08HiiGwjSqIB LE1VYw74ZxbhtPmD17lojU76eO4Z10aY1+8WJ7GslAneFkUqAgH4OF4RiVTrzJ7RuAT6 9GNCSRAEmNELq9hiL2qpeOesPZa3w+hxS2rZKplCUqKQLKhS2N2RXlGARD2lCOOVsApN 4J+WO0osIAJUyU5e2o84O8FFgMNcwInksv5MiOrVM6fhoy6Fcq5fj2SC16QM7EhOhbhr yqhQbYub1JILOOIO+bebBPjHSsQEiM0Cl73CljqEjxaroFEMD/9u95AATtnVdR+tQAtU Fg2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708229832; x=1708834632; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c/aeBIdmV1XrY4y6jgnhEUqIAA87/lYvvzwVW9/z3wo=; b=QuYQDaXdQEhgWk+72jnuFwsQP4Nh9iqroxfzuG+5jS20zBr1cia4tfajS4BCBL6Qw/ VcmCynZpyrZ3YlVyBYxDpUyuGX1hH89F2besHjECUGbsyJJVQn+hXRrwWmrcaTEw/uqa kQC/3IeaD8lkKcTS6BsLqilwJh0fAGxTPQXdvW2yGy9Wxzia+apQ+ZfcTf4LS+ZHsp8/ 6YipzmQ3I+xJ06wuIdbIh9RS697/Lz2VS6aI38IN8MMB+K/9ZHYR+Twk4rGgYUw+NbJm XPJE5tLm4jZj6v/NJENDxAhu/waffbfCZJFaFHpb/hqgkWyaj0RDrOFMsC28AQQ9zC2a ELkA== X-Forwarded-Encrypted: i=1; AJvYcCU9nE75CxkFzH6A+qWFxjqXjS519ZMTx6lU/cr9FpdF0xsEJufrJw+0ETxk7it5vgF9mHC1xAW54RHlU5IyUW1/PHdq0VxSaQlRqa8Apg== X-Gm-Message-State: AOJu0YzgUl8Gk8rbIJx+9YJOT9g2X0QNSa1Z/nEZVGHbJXD5jyYD5Max 8ZuwWzmhR8/cv5jgZdjMjXFxTad8rz5YBdstyh+VrZeio3byuBgivZQGxzjtVkW0Nw== X-Google-Smtp-Source: AGHT+IE+l1O/kUpQQgLps3SgnxzH9E9IVKxRsFX38onbawk5mnGPrRddcJb2C6Zr5PV5EEzAfT4lAQ== X-Received: by 2002:a0c:8b1a:0:b0:68f:5901:c76a with SMTP id q26-20020a0c8b1a000000b0068f5901c76amr1396486qva.0.1708229831817; Sat, 17 Feb 2024 20:17:11 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:dde9:2f2d:61e4:7364]) by smtp.gmail.com with ESMTPSA id or31-20020a056214469f00b0068eeebc4656sm1713621qvb.139.2024.02.17.20.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 20:17:11 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org Cc: aford@beaconembedded.com, Lucas Stach , Adam Ford , Marek Vasut , Luca Ceresoli , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 5/6] arm64: dts: imx8mp: add HDMI display pipeline Date: Sat, 17 Feb 2024 22:16:43 -0600 Message-ID: <20240218041649.1209173-6-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240218041649.1209173-1-aford173@gmail.com> References: <20240218041649.1209173-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_201713_345997_0654BA1A X-CRM114-Status: GOOD ( 10.66 ) 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 From: Lucas Stach This adds the DT nodes for all the peripherals that make up the HDMI display pipeline. Signed-off-by: Lucas Stach Signed-off-by: Adam Ford Tested-by: Marek Vasut Tested-by: Luca Ceresoli --- V5: No change V3: Re-ordered the HDMI parts to properly come after irqstree_hdmi inside AIPS4. Change size of LCDIF3 and PVI to match TRM sizes of 4KB. V2: I took this from Lucas' original submission with the following: Removed extra clock from HDMI-TX since it is now part of the power domain Added interrupt-parent to PVI Changed the name of the HDMI tranmitter to fsl,imx8mp-hdmi-tx Added ports to HDMI-tx --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 94 +++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index cbb15ded4a74..433ea4ae6a16 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1940,6 +1940,100 @@ irqsteer_hdmi: interrupt-controller@32fc2000 { clock-names = "ipg"; power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_IRQSTEER>; }; + + hdmi_pvi: display-bridge@32fc4000 { + compatible = "fsl,imx8mp-hdmi-pvi"; + reg = <0x32fc4000 0x1000>; + interrupt-parent = <&irqsteer_hdmi>; + interrupts = <12>; + power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_PVI>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + pvi_from_lcdif3: endpoint { + remote-endpoint = <&lcdif3_to_pvi>; + }; + }; + + port@1 { + reg = <1>; + pvi_to_hdmi_tx: endpoint { + remote-endpoint = <&hdmi_tx_from_pvi>; + }; + }; + }; + }; + + lcdif3: display-controller@32fc6000 { + compatible = "fsl,imx8mp-lcdif"; + reg = <0x32fc6000 0x1000>; + interrupt-parent = <&irqsteer_hdmi>; + interrupts = <8>; + clocks = <&hdmi_tx_phy>, + <&clk IMX8MP_CLK_HDMI_APB>, + <&clk IMX8MP_CLK_HDMI_ROOT>; + clock-names = "pix", "axi", "disp_axi"; + power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_LCDIF>; + + port { + lcdif3_to_pvi: endpoint { + remote-endpoint = <&pvi_from_lcdif3>; + }; + }; + }; + + hdmi_tx: hdmi@32fd8000 { + compatible = "fsl,imx8mp-hdmi-tx"; + reg = <0x32fd8000 0x7eff>; + interrupt-parent = <&irqsteer_hdmi>; + interrupts = <0>; + clocks = <&clk IMX8MP_CLK_HDMI_APB>, + <&clk IMX8MP_CLK_HDMI_REF_266M>, + <&clk IMX8MP_CLK_32K>, + <&hdmi_tx_phy>; + clock-names = "iahb", "isfr", "cec", "pix"; + assigned-clocks = <&clk IMX8MP_CLK_HDMI_REF_266M>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_266M>; + power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_HDMI_TX>; + reg-io-width = <1>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + hdmi_tx_from_pvi: endpoint { + remote-endpoint = <&pvi_to_hdmi_tx>; + }; + }; + + port@1 { + reg = <1>; + /* Point endpoint to the HDMI connector */ + }; + }; + }; + + hdmi_tx_phy: phy@32fdff00 { + compatible = "fsl,imx8mp-hdmi-phy"; + reg = <0x32fdff00 0x100>; + clocks = <&clk IMX8MP_CLK_HDMI_APB>, + <&clk IMX8MP_CLK_HDMI_24M>; + clock-names = "apb", "ref"; + assigned-clocks = <&clk IMX8MP_CLK_HDMI_24M>; + assigned-clock-parents = <&clk IMX8MP_CLK_24M>; + power-domains = <&hdmi_blk_ctrl IMX8MP_HDMIBLK_PD_HDMI_TX_PHY>; + #clock-cells = <0>; + #phy-cells = <0>; + status = "disabled"; + }; }; pcie: pcie@33800000 {