Received: by 2002:ab2:5182:0:b0:1f4:61d5:3ad4 with SMTP id x2csp37395lqi; Fri, 5 Apr 2024 09:08:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3RTBp+lT8/054rxISZGN2XJ44DNB3zeEu1+ZJm8fMzctJxom5hhFmqUVqLmiI1VqoJh+GqI9ZMR1XIXfBa414EE5SzYtrGa3NhrOkyQ== X-Google-Smtp-Source: AGHT+IElvMJ2/n1Bz074lT1MicBTo7l0EdyJvMjEAd229JuEuvyYfDh5jNz8SHvEJKXUzBTaI2MN X-Received: by 2002:a05:6214:2a81:b0:699:514:3046 with SMTP id jr1-20020a0562142a8100b0069905143046mr1926132qvb.15.1712333329447; Fri, 05 Apr 2024 09:08:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712333329; cv=pass; d=google.com; s=arc-20160816; b=vb7gQ9KSyNbVD+KvsMTVYql2rSXQhNJNmRCzp0isWLv75b7iHptDXNcPJVqVR8OyEY fNbvfC83Jhdix6kV3n9qJEi57Eye7zy6y6Lh5bs65VrQVcFK0V3YGzPiMd8+pLcUblzO /ikBxaohHMbEBpR9tNwUlMbVZeFyxHd7L69S9E3uIQYECG7dTHllTUK+CeLl4WSUrCtB vDGEPIOYk86cjgFJ7BuXVvGami0+YDo6oB2Ak2o2oMI92HCcrXcMOytwFXCEkRmA3qri T5cICFxqVysLot4ziZpqnj3EfmabkRGxfWHnDr5yR2awofA+RGqjFspdjgmmV0GLO4j6 tMNA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lgmM3Xbata7VzEXtxd2ThwevKFI1uBmzRn4wOr+9OFw=; fh=loagprOm6qllUgpSpm/sKh2xi9JBaeRCgWwfI3ugBCs=; b=bIglyo2GEd3xWmfVP99cIVP0O51KrqJnuwWOt0ixD713uQxxldxYRd3Qp1qyHrw+l7 Vw50HFs0wBq4pWXF1Sx80drV+ZxWhQ5XXOMOqCXDMJ++SJ6/1WOoU93YrnWscqvMljrP TkRfnPyw825t2/8uQPAyBqocsn8kKy+ZMV/szYB/3HLVVWh4jkPOxDdokrixVh/znGtb cl60xpTnErIB+NXFMslPRfzWOQOsQwKEa6rtQkQFUNPdX+zpMCLNkFamM5DEtqq6rEIv UqiRcgiwv4X9hhLgjlMBdi/3oMK9fibhk865630pLc2Q8RffDW2wn/qSxqlHbW/Om5oN /Diw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CbzeMbI4; 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-133314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k8-20020a0cfa48000000b006993674c416si1977300qvo.489.2024.04.05.09.08.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CbzeMbI4; 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-133314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133314-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 75C6F1C217D0 for ; Fri, 5 Apr 2024 16:08:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B1B3171E4C; Fri, 5 Apr 2024 16:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CbzeMbI4" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 C551A17166D; Fri, 5 Apr 2024 16:07:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712333261; cv=none; b=PoKFUAmqdLh9jviCp5uy4ZaK/j4NZNDn3RUhCIOcRufbdpP7MpM5MCkg4V2ZKfN4/oPjpkyP35BQ/zkYlfc4Bnps3jK5EmTihDtc613b/U3AHoln6J0m8xuERO3Q2XF0XtykHBBwWttVb0Ycnp442c1lDbuZbSdCj6VF/JWY2d0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712333261; c=relaxed/simple; bh=dBH1j/h1dRu0ygt9hNbmwa87jEdhv9yAzGW6ZwQoLsM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M1qQPZ86GtgRGlmFt3Fycw7ETdGiaTXkpikPN0c645679HuAp3AmsYhJQ6YuNFAr7JAuEjJBe13nRUwXFBa7/vVCnLMvHPL+JS3uvBTI1tKzA26TvP+BlDFVN9mW68k9ybO1Pl0ytRCZABQxjVS6VFk2wSvoQrUCaqm4gCA2ge0= 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=CbzeMbI4; arc=none smtp.client-ip=209.85.208.176 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-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d4a8bddc21so30480871fa.0; Fri, 05 Apr 2024 09:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712333258; x=1712938058; darn=vger.kernel.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=lgmM3Xbata7VzEXtxd2ThwevKFI1uBmzRn4wOr+9OFw=; b=CbzeMbI4CaD1hnNNDeGjtYpOxPuYPUKls3QRCRomHPzEJDBiesAeouuO7buolVUdYu hc2VNSKmaCSw6NErdJe4dVR6G5RiKUEw4hMAmDWWFhxD38j73eDsIUvFn9e97FbsO77a HQcvO3trmCMtnhco2TcUIhBTCw5IbMtPoYNDutuQM0TQ+FuaBr4zfzpHkyL7yFbp1JEI 85RN8ZvmzZJJAyqw5ed6VMHq5Rn4z3V1jwzcXFfSnQzKz55QvaVjQelL7kJASYxA5Os6 FFbnjeNgXiwkAaGLq/Iv68c5BgDaNTh0W9xJsqmSjrXV+Gei0iX3SLgTAe+76UZ/9U8V qpag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712333258; x=1712938058; 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=lgmM3Xbata7VzEXtxd2ThwevKFI1uBmzRn4wOr+9OFw=; b=YQxW4+fLcjMyRHeodBk1xOgAsysrTyZ68QEIntkP/Gpc1JqH9Tes/T0PJvvMGvrwy8 9vEYNVtyut5p9yPhS2WH/jVpfhZzfBkbkkh9xxql46O4Az0qJhS4Ue3l9CuYyq0+WW8s uiB3t2lRpF+n2JHisHCeHL4hQcQpEWjybFLIJMkd4ReVJgHhK5lwcchuaFeZHd1t2IVJ A2DuOBT4kNS1EKN052rN1pz49TND3fcNZnmb4J3Mks2xh1ScHF2iB8qcKw/bgWfnDl3U f99x4dHEAi4GW081pcZsCo3sfG1AtzHzkoSyoU9HYNW8Z6AjNxWeVkbH+HEh5/9lVdNo DkDA== X-Forwarded-Encrypted: i=1; AJvYcCWOitVAPK2dFNWEIdlZoVrXmgJnT/2sMEP0YfysonLGqKA2gOUosm7MyXpCaNHtjFnorxRSY8LoaRFexztu6gEfMzOCGMXz6heObSrS X-Gm-Message-State: AOJu0YzC77EWxrjoVSCNaO91ro8cgb2GSgngPGptuHwxvaCIPOSxLlhE 7X5oNlsPF7ZN3wcIxXjaDErzkUcY0hi5nILs+yH+lfX6c9eOD3qN X-Received: by 2002:a2e:9045:0:b0:2d8:681:dc9e with SMTP id n5-20020a2e9045000000b002d80681dc9emr1448379ljg.41.1712333258017; Fri, 05 Apr 2024 09:07:38 -0700 (PDT) Received: from eichest-laptop.toradex.int ([2a02:168:af72:0:f624:ad13:2091:c808]) by smtp.gmail.com with ESMTPSA id k41-20020a05600c1ca900b004156c501e24sm6902651wms.12.2024.04.05.09.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:07:36 -0700 (PDT) From: Stefan Eichenberger To: robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, francesco.dolcini@toradex.com Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Eichenberger Subject: [PATCH v1 2/4] arm64: dts: freescale: imx8mp-verdin-dahlia: support sleep-moci Date: Fri, 5 Apr 2024 18:07:18 +0200 Message-Id: <20240405160720.5977-3-eichest@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240405160720.5977-1-eichest@gmail.com> References: <20240405160720.5977-1-eichest@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Stefan Eichenberger Previously, we had the sleep-moci pin set to always on. However, the Dahlia carrier board supports disabling the sleep-moci when the system is suspended to power down peripherals that support it. This reduces overall power consumption. This commit adds support for this feature by disabling the reg_force_sleep_moci regulator and adding two new regulators for the USB hub and PCIe that can be turned off when the system is suspended. Signed-off-by: Stefan Eichenberger --- .../dts/freescale/imx8mp-verdin-dahlia.dtsi | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi index e68e0e6f21e9..abad1887040a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi @@ -32,6 +32,25 @@ simple-audio-card,cpu { sound-dai = <&sai1>; }; }; + + reg_usb_hub: regulator-usb-hub { + compatible = "regulator-fixed"; + enable-active-high; + /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ + gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + regulator-name = "HUB_PWR_EN"; + }; + + reg_pcie: regulator-pcie { + compatible = "regulator-fixed"; + enable-active-high; + /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ + gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + regulator-name = "PCIE_1_PWR_EN"; + startup-delay-us = <100000>; + }; }; &backlight { @@ -117,6 +136,7 @@ wm8904_1a: audio-codec@1a { /* Verdin PCIE_1 */ &pcie { + vpcie-supply = <®_pcie>; status = "okay"; }; @@ -143,6 +163,11 @@ ®_usdhc2_vmmc { vin-supply = <®_3p3v>; }; +/* We support turning off sleep moci on Dahlia */ +®_force_sleep_moci { + status = "disabled"; +}; + /* Verdin I2S_1 */ &sai1 { assigned-clocks = <&clk IMX8MP_CLK_SAI1>; @@ -186,6 +211,25 @@ &usb3_phy1 { status = "okay"; }; +&usb_dwc3_1 { + #address-cells = <1>; + #size-cells = <0>; + + usb_hub_3_0: usb-hub@1 { + compatible = "usb424,5744"; + reg = <1>; + peer-hub = <&usb_hub_2_0>; + vdd-supply = <®_usb_hub>; + }; + + usb_hub_2_0: usb-hub@2 { + compatible = "usb424,2744"; + reg = <2>; + peer-hub = <&usb_hub_3_0>; + vdd-supply = <®_usb_hub>; + }; +}; + /* Verdin SD_1 */ &usdhc2 { status = "okay"; -- 2.40.1