From patchwork Sat Jan 6 22:39:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13512837 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 13FB3C46CD2 for ; Sat, 6 Jan 2024 22:40: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=bsImnX9L4KybiEesIuH9Ap3aYv8MzX1vfNyFNm6Hqio=; b=wCVLhHo1yBXTFs azhnP8lwGCwmO2PWueO+LpudmlPXOLISsOv1JRT8I9y8AggvlGTZxkJ6wRFxSsdwI3Qs2lm4zQ4Xu T1MU5lv01qspXl9dOsNUZHywBKw8GjNsU7EzyG3Lk9L9CL1od/PrHMltf2uRLm9fk0RObz4OSwElD 9ZKq8uDfRMZlAA0GjSXKoPX32YlAw/d5zSOMpE17md5pqZJU5szW64SFv5lFGyDpr+SOGG4k1A/O7 1nDN+LURX7Lx/vl+t2lDI6E4SWBa3h4EcXMXAdaW/S7QXz+lAY3YlQO7RLUbgj52JOzcdg57U5J44 aY1sp7bxFTRuv6ZnxhWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMFKu-001ywK-3D; Sat, 06 Jan 2024 22:40:13 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rMFKt-001yvA-01 for linux-arm-kernel@lists.infradead.org; Sat, 06 Jan 2024 22:40:12 +0000 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7bade847536so41217839f.0 for ; Sat, 06 Jan 2024 14:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704580807; x=1705185607; 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=TFJmQIFj0A0tInfs7hU9PMq1MKbXz8YKwehmuSMd3n8=; b=aSM6Bo/iLF7EB+6L+ISj5RoNYsQh3qQUwVKgIMQWbvJXiODxrKQwZuHPok2cWFST4x IQRe0r+pR8l/YehGmUDi7nsobDA5jfccOM06KcMc9nblLDDj+0IZ1akfjfH8PmlL7Sqj N+qf/hMC1r1z9xWoUmoVUQ5vreaWB+wbqyEQLyvOAQNLngf86+J/vPyr4qEh/8ZOSxqr ici9ZnLrBS/5Kw1H0aqCcNJ65+wjJidJfMZ4YOH7NUXd1RB2ntVZlSoAa8JAARDc9sW+ 2acfiqiv9KAEHELb7iO+yHe31qWNNLLAMaIcsLNIjITAMiS4odCcXjKu/KygHv9BKoYr Ud+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704580807; x=1705185607; 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=TFJmQIFj0A0tInfs7hU9PMq1MKbXz8YKwehmuSMd3n8=; b=Q1iVZNoQuvuuSfQZ5XQdLxHoCD47x0eCHRJAGSb1uXTaJR4HUC9XOe2Wc+duuLF/2M paBriScJVKdA5FobuLLq9hCAb+I7UepED5nhKofbOb4X51ogq3hymgus/XxlunRV7WmE /zZ/kURUHx+DXw299pVemH7nWBTg6oDhgz8mbrxadNs9Dai7vsAAinauCa1kMav4x1i7 x3qU6EQ3CsCvgf7gb//IY0FQCFzZu+8n5A6aP9H1lxnvrLlNbfZ1aLbZLhx5gDlc9jWt S/mWz1e96KA1sXWvDkSsHD6/E6kNydCO84c+CeQWpGN5SSm3ZiZ5MExcSZVnHDqSzvHD s2Ng== X-Gm-Message-State: AOJu0YxAaS/jvyGhssPn9uQtiXztL8ssmykgcuQDZGu3TznHA0p48Ttm yeS6LI5Cykgl1E3auhx+lIU= X-Google-Smtp-Source: AGHT+IE69x8jS3gwN3hKFTtSb/EzuvmDnKpSai31R1x002W1zv0DPDc8yR+2xWlEmUylCYPANiIiNg== X-Received: by 2002:a05:6e02:1787:b0:360:197:55d1 with SMTP id y7-20020a056e02178700b00360019755d1mr3326542ilu.23.1704580807209; Sat, 06 Jan 2024 14:40:07 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:af2f:17f0:33a3:d6fe]) by smtp.gmail.com with ESMTPSA id l13-20020a056e021c0d00b0035ffe828182sm735346ilh.37.2024.01.06.14.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 14:40:06 -0800 (PST) From: Adam Ford To: linux-pm@vger.kernel.org Cc: Lucas Stach , Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Ulf Hansson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: imx8mp: add HDMI power-domains Date: Sat, 6 Jan 2024 16:39:50 -0600 Message-ID: <20240106223951.387067-3-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240106223951.387067-1-aford173@gmail.com> References: <20240106223951.387067-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240106_144011_044766_C78D2096 X-CRM114-Status: GOOD ( 11.08 ) 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 From: Lucas Stach This adds the PGC and HDMI blk-ctrl nodes providing power control for HDMI subsystem peripherals. Signed-off-by: Lucas Stach Signed-off-by: Adam Ford --- V2: Added the fdcc to hdmi_blk_ctrl per NXP's downstream kernel guidance I (Adam) tried to help move this along, so I took Lucas' patch and attempted to apply fixes based on feedback. I don't have all the history, so apologies for that. diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 76c73daf546b..d695c80e710c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -836,6 +836,23 @@ pgc_mediamix: power-domain@10 { <&clk IMX8MP_CLK_MEDIA_APB_ROOT>; }; + pgc_hdmimix: power-domains@14 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MP_CLK_HDMI_ROOT>, + <&clk IMX8MP_CLK_HDMI_APB>; + assigned-clocks = <&clk IMX8MP_CLK_HDMI_AXI>, + <&clk IMX8MP_CLK_HDMI_APB>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>, + <&clk IMX8MP_SYS_PLL1_133M>; + assigned-clock-rates = <500000000>, <133000000>; + }; + + pgc_hdmi_phy: power-domains@15 { + #power-domain-cells = <0>; + reg = ; + }; + pgc_mipi_phy2: power-domain@16 { #power-domain-cells = <0>; reg = ; @@ -1361,6 +1378,25 @@ eqos: ethernet@30bf0000 { intf_mode = <&gpr 0x4>; status = "disabled"; }; + + hdmi_blk_ctrl: blk-ctrl@32fc0000 { + compatible = "fsl,imx8mp-hdmi-blk-ctrl", "syscon"; + reg = <0x32fc0000 0x23c>; + clocks = <&clk IMX8MP_CLK_HDMI_APB>, + <&clk IMX8MP_CLK_HDMI_ROOT>, + <&clk IMX8MP_CLK_HDMI_REF_266M>, + <&clk IMX8MP_CLK_HDMI_24M>, + <&clk IMX8MP_CLK_HDMI_FDCC_TST>; + clock-names = "apb", "axi", "ref_266m", "ref_24m", "fdcc"; + power-domains = <&pgc_hdmimix>, <&pgc_hdmimix>, + <&pgc_hdmimix>, <&pgc_hdmimix>, + <&pgc_hdmimix>, <&pgc_hdmimix>, + <&pgc_hdmimix>, <&pgc_hdmi_phy>; + power-domain-names = "bus", "irqsteer", "lcdif", + "pai", "pvi", "trng", + "hdmi-tx", "hdmi-tx-phy"; + #power-domain-cells = <1>; + }; }; aips5: bus@30c00000 {