Received: by 2002:ab2:5182:0:b0:1f4:61d5:3ad4 with SMTP id x2csp50048lqi; Fri, 5 Apr 2024 09:26:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcGP80Zmu0jOHIQkrY8dipx8y8remd+ReFdbFtAP5Hx94jvIzS82mpi4qQNReDEWuG0QcFngnHhH0Dz6cwVlhqVoeizmEI5yy/u43qfQ== X-Google-Smtp-Source: AGHT+IFfIsfbdN6py9MFzbE+dqJIayY9m19hk4BX04TI7rAv98lvsP0u3b2Cj6Gs6+4isd1mX7ks X-Received: by 2002:a17:902:8692:b0:1e2:a40d:b742 with SMTP id g18-20020a170902869200b001e2a40db742mr1726399plo.56.1712334363917; Fri, 05 Apr 2024 09:26:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712334363; cv=pass; d=google.com; s=arc-20160816; b=DtPUYpcnzJ6Oy+akdfU6NqVlihqAnDBziVkhHIICuzim64BgaAh6/7xIcoF5SVcAsa EScXWvQVZsLfVZBmogTRyHi+DH72kUf3Rtg6iolDLkA2Hx7vUm81vYjmyWTGby5CBf3g /xL4iLrXfqgHCxCsG7ahZWJGLpcZ4pLMJvmfsOzShBqd0xwI5IsTQ/ZIQCTlfxlXNaN1 KMnfD0OnbH9ayLT92/4eeSwJ1hS45g8IpSCp3EKYFEboYZy4wUsI7DhxuEYHgOMkwDkm ZPUDZ+qNCnPxJyaKvZlsTrcY4W0UUDD9Lo5uSyVclFdcQnAOcfWKyT/IN6yIb6JQH+gz dwJQ== 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=rWZ/UFU9OUajltHDRCM2CeH0LshCjJsNLCkamYUQgwY=; fh=VEMUKjxclN6CwCrELCh2RN1P6ODodxOozTlJ2MFmSHA=; b=zMiDbMe1Hd2uxRZdxuUwoBgqQ0qJ7O4ScD3/Xw2R0p+QUC6FS+/z4CUVBICz0Y7sVL /cuTnOTl5MRNKq7Y6QlbOsqo/lXG6Ts8kDZLSCwR2KHR3FmvtmlRXnBQ4xkOKNXkuEa7 zBUAV6P45k5J7/bP4Rmk6btO2RiN8Y08gzEMB/MWsSHGz/F2dRsjh53ACBCqReMrPEpG xsY9O4EkNl0976Fq3kNi4UDq7dmCC61rYqLodl/CbM/iMlkGpASdAwZjV55QmcwSWKyT aOiFs+63WdmAAwxk+FCWJVz3eDsOyKGSUrhhuuDQtSeHXGzoIksUsoWT+xoCbwov8ye6 vm6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MgsA0K8c; 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-133316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k3-20020a170902f28300b001defe4aec44si1506443plc.483.2024.04.05.09.26.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MgsA0K8c; 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-133316-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133316-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AFC65B2619A for ; Fri, 5 Apr 2024 16:09:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76D1217276C; Fri, 5 Apr 2024 16:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MgsA0K8c" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 01C7317109C; Fri, 5 Apr 2024 16:07:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712333265; cv=none; b=hQbSKhAIg2z/pfcpHl2NP/0DS7lzIcca2rvQn2S4tF2vYFyJC9t6e+N6zVDDUE/pqLCQf9oDbHkC8PTF+M2AvBpRdhd+jJtyC3pUzJ1dSmTpEEfiDSA7+aq7AuH4KPjajv6pCydC9bgCo3kMf4ozJgHxVJ3WuAjXcl9W14swFNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712333265; c=relaxed/simple; bh=s2oelWPLHDUwNqi9cCjSGSaQzE7ldrgKjOrCLiSRNug=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=D471JDL/2MMe/y7GzGsKBHDonnkf8U9hy2f8rY/zOu9vbyktmLM1M+9GETXkQ/qPSOj7ZgCfXCLuzXLsgO9QXnYReeMrUq7erMfceu4UH989rrvgKJHqkMqdII/3jgonxLcGcqXYPXPbtgOO6+JMzimV33Mt1d1lLmCs7NIlZrk= 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=MgsA0K8c; arc=none smtp.client-ip=209.85.128.43 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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-416317f5346so3869115e9.1; Fri, 05 Apr 2024 09:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712333262; x=1712938062; 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=rWZ/UFU9OUajltHDRCM2CeH0LshCjJsNLCkamYUQgwY=; b=MgsA0K8cB0zkMXMWo9X84y11IYKxdR0h7POgC5DWmhQ+WKeEaYcDDCJFOM4gUOM6aM T367X+Uqi/gxPN68S+yfR0sdhIiR5ac1zyhkriP5ZTs9eko4m6LlyXSUnspNaVapmXKo NqRmctfAWa0B9u5dB6PQdRC8hLUYm72i0SCJJoo0d0EfbHj516108hClI9zeqohPoZ6E 6cTxMMKU/qvWxFbzqZ+rrN5htXpqaAIx0XYP98TJvj0zZsYjQtyxstct4UQVEuu+Cjv/ /zUDea8WE6Eh1FBiFmVTzmcVaGg9n7P5HHd5NfvkS3PAC9rp9xIQ4az73GYc9oFPTaqm VcfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712333262; x=1712938062; 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=rWZ/UFU9OUajltHDRCM2CeH0LshCjJsNLCkamYUQgwY=; b=A0HjfOHBhIOWa1jiT0vUSBnfP40hwbrBGtkn75C5iBDjiZbXWrCGk7bIU2tC1tcNwg WppOeLysUW8Kk9CJ2bVU1/C4E86/oSxUpWB/NnapRa8UsukWfJhP+IvIMo3PwoR2IPkA 3eIJKA0G3oF/SkdGWjlOUZNdd3fS1QR1o20X5ehPDHa2V0+I3VSml8wKqL3DTynyJ4uR bccQTX+Ed1zzNHCVZ+YDxAwV5AnNjRV27wBncwF6/kUappDwfyO/U2MrOaf000eK/6ML EZbp9EYiCOKIGE5ziqsSAMLsJPEEt67baCZVcfdwMcL9CuRZlrgaV26NPhAhBY6ZwcHd 7trw== X-Forwarded-Encrypted: i=1; AJvYcCXPM2HZTFlxj2KyaoebT8mZ7azagY3vZnGPTzZt9dOrX+gqLl1lvbZ4DrYUq2hQgGC0IA2bYAQqCUpxkJlG82obSsSCQnoco8oQ8Kl+ X-Gm-Message-State: AOJu0YwUIv1yeNMFclu8rU+vewfKTEBfJE95QaGU6ADIE7H7QWtQK1+O izqKFuUW+Pcn8KHTYmQDIAFbcb+DLKiIoQ5/2H6gUyqOxFX8uqoS X-Received: by 2002:a05:600c:1e13:b0:416:3326:c150 with SMTP id ay19-20020a05600c1e1300b004163326c150mr440524wmb.29.1712333261663; Fri, 05 Apr 2024 09:07:41 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:07:40 -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 4/4] arm64: dts: freescale: imx8mm-verdin-dahlia: support sleep-moci Date: Fri, 5 Apr 2024 18:07:20 +0200 Message-Id: <20240405160720.5977-5-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/imx8mm-verdin-dahlia.dtsi | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi index b64dac4f29c2..393fc9e20423 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi @@ -32,6 +32,25 @@ simple-audio-card,cpu { sound-dai = <&sai2>; }; }; + + reg_usb_hub: regulator-usb-hub { + compatible = "regulator-fixed"; + enable-active-high; + /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ + gpio = <&gpio5 1 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 = <&gpio5 1 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + regulator-name = "PCIE_1_PWR_EN"; + startup-delay-us = <100000>; + }; }; /* Verdin SPI_1 */ @@ -98,6 +117,7 @@ wm8904_1a: audio-codec@1a { /* Verdin PCIE_1 */ &pcie0 { + vpcie-supply = <®_pcie>; status = "okay"; }; @@ -120,6 +140,11 @@ &pwm3 { status = "okay"; }; +/* We support turning off sleep moci on Dahlia */ +®_force_sleep_moci { + status = "disabled"; +}; + /* Verdin I2S_1 */ &sai2 { status = "okay"; @@ -148,8 +173,16 @@ &usbotg1 { /* Verdin USB_2 */ &usbotg2 { + #address-cells = <1>; + #size-cells = <0>; disable-over-current; status = "okay"; + + usb-hub@1 { + compatible = "usb424,2744"; + reg = <1>; + vdd-supply = <®_usb_hub>; + }; }; /* Verdin SD_1 */ -- 2.40.1