From patchwork Tue Mar 18 23:00:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sukrut Bellary X-Patchwork-Id: 874633 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 85CA22063FD for ; Tue, 18 Mar 2025 23:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742338860; cv=none; b=kTN1A/68C6YLaM+hAsvqWelvjjD5lW6Gng0lq5qsi3wsFd2ZE2OYbiH3ewj1bkWj6nw5L0CYRIjYnbLsgTRQ1lYVyt1pDhEVsQx96H2BscJ4QINCLM4iJUA1519HXRRLKEAQC5QYCbqUJOeXC5bTfMEhIJIyYS7JmfMxwYFFjE0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742338860; c=relaxed/simple; bh=KjTL/kc1eYTfSVbF1Y/4qPazi4UmfcO2nDxBcYIa/nU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BhLCf870TKzFhjGUWPCXRSgmMsTeGvxllYj0Q5j0p4V2EoTXI6zn2bQcSJf233WMLYQQ88dkLfD39+frhayz6B4gNM5cDKKxVpMTHYlCe0Q0fAlbpiBf2i6SeG/F3wqKf1j0il11fBQXCZs9vuAAlT8ieOrAzk4T63RaZoILYfo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=RwW0M0A0; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="RwW0M0A0" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2235189adaeso2532275ad.0 for ; Tue, 18 Mar 2025 16:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1742338858; x=1742943658; 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=rsyWzi3KnCZDSIQ4SscmiQvCbCr+L8MktGb1FOBdF5k=; b=RwW0M0A0Y0a7zz2P4pEXs1H+dRCAgMyR+j9r+uuNFu1UL+LHBA/waleHBEjrpySV9a m42tz+7DF7WfEstgp3/4xZYeuFaAN+wZu9C9Y3QiZ4hONqeKN7240CxiTi0dwZm/O2lR HCxhRhze9uZ3+sSV9/YXBAv5395MulGA4lOXxN0XFkxj4sETLRQ36HtvE7KHlfNteKUc dGSupnZlmjdQqdQsVtqisUAHaSyb2CcZSiXUDm2SWKHdZAKxpYeqL/llkOnuEeQC0I86 IfGRiI6mhwZs4wDg7tPU3dr5vslzur63/SV+1tHJQ+UaHzZJYAbjOC33IdOYKKpT83/b uiNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742338858; x=1742943658; 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=rsyWzi3KnCZDSIQ4SscmiQvCbCr+L8MktGb1FOBdF5k=; b=NJYGne/QD5slD1nsSzPNu2i2HGNjwlaHI1ZV/Tn0tBsL0+YfnlqsqD2Rge9zMHatRD md04mkWDqZ6yhMnkTAbzaThmR8W+8uzxH6PArN16hx7JogOJ/ZZFkK7+WuxbMdBkeqeS OhrDUjZN1FoZYiacnqNURKsbL21z0i4WEnXKcMOz8IGh7M0lDzE29yE8m8DZAHXeHj4Y fVw9TP8XwO0Z/1brttuN5sW45I0eR5HemjhKQ4H5snFDS1glmRHOzno6DTsGqMMbSQC3 t0EPOhcb1g6bSAmARW/Ow9DoThQtz2Sj0PJaUqg/DtiYekFrIygnBrqZxWA0PymZvIEi E/kw== X-Forwarded-Encrypted: i=1; AJvYcCWI5yVV8BBh3oUqyK+Lf24ggGGaUagPJoJ1lUlRFhytvPwGrI30tXFk8ZESd6bKIg4+USBPktvQTA==@vger.kernel.org X-Gm-Message-State: AOJu0YwTbj6yzvnFkluZjAmgTQfz8hPL8wbJHw6aEzIa+Z0Y4+xEuF2l 6Mr+22IhWfU5ePILobmRLTh8sdTsi5injrTrCKlydaXe5t/huacAb3PHwPM5pWQ= X-Gm-Gg: ASbGnctK6m5txgPm6muWXvKyoDiCwyXYctxiJPqXZv8aN95VJOq53CyjwpyLdtmktOY k3erzZFiVbGW1vedq0/84N2p/gVsTAcTDmkBU793t4hw7dK0cq1mghLWymbMZgCGzdg/QkknLRA 66VR1vS09I+YsrcGW1EcWC3Pje/al0+8kMxdGC1TT8rkPm1GkyODjU1xTytR8pkyL5kKczl7+9g A4Qc8XpdPOSc7LheMFm2+oLIv2iMATfkbyRsT0OuEHDbHGJVVQf9+J/ANkc7uxO0vAEKqR92SlB /M9rhJHHuCDl6SPrG9pAzBk+EeUSuVYyzSYmxgjLKLEAEJWHgOCuF7Fm4TUN78mzRuLoT0T4s/B Js8Fcytg= X-Google-Smtp-Source: AGHT+IHUNJViFXE4mZINOgNDoCllQmqZOnocHLrF3VCSwCnt9Ce0i+DvhytxOw5IATvfS/lSW8+VYA== X-Received: by 2002:a17:903:2301:b0:220:cfb7:56eb with SMTP id d9443c01a7336-226491f957dmr7833935ad.26.1742338857707; Tue, 18 Mar 2025 16:00:57 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-225c6ba6f14sm100739465ad.111.2025.03.18.16.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Mar 2025 16:00:56 -0700 (PDT) From: Sukrut Bellary To: Kevin Hilman , Russell King , Rob Herring , Tony Lindgren , Krzysztof Kozlowski , Nishanth Menon , Ulf Hansson Cc: Sukrut Bellary , Aaro Koskinen , Andreas Kemnade , Roger Quadros , Conor Dooley , Santosh Shilimkar , Bajjuri Praneeth , Raghavendra Vignesh , Bin Liu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 2/4] pmdomain: ti: Fix STANDBY handling of PER power domain Date: Tue, 18 Mar 2025 16:00:40 -0700 Message-Id: <20250318230042.3138542-3-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250318230042.3138542-1-sbellary@baylibre.com> References: <20250318230042.3138542-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Per AM335x TRM[1](section 8.1.4.3 Power mode), in case of STANDBY, PER domain should be ON. So, fix the PER power domain handling on standby. [1] https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf Signed-off-by: Sukrut Bellary --- drivers/pmdomain/ti/omap_prm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pmdomain/ti/omap_prm.c b/drivers/pmdomain/ti/omap_prm.c index b8ceb3c2b81c..7e36e675a8c6 100644 --- a/drivers/pmdomain/ti/omap_prm.c +++ b/drivers/pmdomain/ti/omap_prm.c @@ -18,7 +18,9 @@ #include #include #include - +#if IS_ENABLED(CONFIG_SUSPEND) +#include +#endif #include enum omap_prm_domain_mode { @@ -88,6 +90,7 @@ struct omap_reset_data { #define OMAP_PRM_HAS_RSTST BIT(1) #define OMAP_PRM_HAS_NO_CLKDM BIT(2) #define OMAP_PRM_RET_WHEN_IDLE BIT(3) +#define OMAP_PRM_ON_WHEN_STANDBY BIT(4) #define OMAP_PRM_HAS_RESETS (OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_RSTST) @@ -404,7 +407,8 @@ static const struct omap_prm_data am3_prm_data[] = { .name = "per", .base = 0x44e00c00, .pwrstctrl = 0xc, .pwrstst = 0x8, .dmap = &omap_prm_noinact, .rstctrl = 0x0, .rstmap = am3_per_rst_map, - .flags = OMAP_PRM_HAS_RSTCTRL, .clkdm_name = "pruss_ocp" + .flags = OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_ON_WHEN_STANDBY, + .clkdm_name = "pruss_ocp", }, { .name = "wkup", .base = 0x44e00d00, From patchwork Tue Mar 18 23:00:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sukrut Bellary X-Patchwork-Id: 874632 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 152B8214233 for ; Tue, 18 Mar 2025 23:01:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742338864; cv=none; b=EWMwgB11SlGNvVZZXrlmf5qyBQPu7ILT5ElAu4eybWoHKq02wLSCo7j5jciO54LTS/ZxErXdo1iexb76Pgs6xTik6r/rgY4uvfWmpRxqbH47uedH6VkGHQfu+4/f/pu0hXZOYU4dcsnR0fzW7+mMZ+Ac6b9oIxi1pSBmmimkl6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742338864; c=relaxed/simple; bh=/uzA/KJrTOFFakH+TO1IPmQV5uCsNGlZTZ/BRQx9ipo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=i2TwaPmmsO6C9ohDWkGJQK0QQao6sa3LJ5OAONENXnKlptVkD+wHkzwxy2AJ5SUxxmWxNt2fGhhoJqA452zaxrlj9t/oGTvDG1l+Wn/LOcUcblAapbTEgKMD0Sc0j+EhGW5ZFCNCurudYdxd3RUBr2oyF61D35NR2P1wll5cD9Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Z1AgQk3M; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Z1AgQk3M" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-22438c356c8so108266125ad.1 for ; Tue, 18 Mar 2025 16:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1742338862; x=1742943662; 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=jMDUDwI/ykvsmvKBODi6azon2DC/c4gZowN4BruVYoU=; b=Z1AgQk3MvsOV1TC4Zfxl/FpKRG3Gm29LQDXUPhgYLz9TjFQIwqBDpUokYXqkFyvPT2 q7iHRPRIFZvTqPLfl2evfJ+tV6kcMMgxQF5dRTibjDg0AdpNfJSGtCzE45+bao00y4pT XMU1vL5NHoBKcCDpYARCDubQJYEr+F2bgYB+wBvr+VU7bIhT1Q/An5LihGf5uVOWTblU b5fOdwRmhxuCHRfzcHN1ZNOxpfXzei+dounf33Is+ZcqLMFrZsTSRmRIGMvwD1xJVUMq zomibMFLhhmSXGSXWdcegwXzXnR+NoTUHHDKeoTVHR+7ZbOLPDsguAfToZYkfMiPH06M nbEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742338862; x=1742943662; 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=jMDUDwI/ykvsmvKBODi6azon2DC/c4gZowN4BruVYoU=; b=Zs5B5FQu8N27txsp0K2IapQa9UMpclXNKjaqKjaJ6Cm05dZNWgAJbWHh1/wo26iTgu gGLhh2IUcGvLSPgdTuVieqZ+zpT/GSm3VmXZK94zCtA+ADYklUhZxtx0uItUHFoxgfjY iPZfYat6PIF4rlZAANSr6mMxxrV7IBtVXdrQ5r8nmhLzVCsgI5FWVq2E3sY8reeQ0I2z Hy+Lcmj+X+uVwZ+wpzqrnv+0z23inUgvtdER/S83vtesZdOTSDktKhRxSUXegZ/chNX6 R1Zsr5my20kLXPWjxhH7EPoJeev+i/FBWVaxSG+EXcwdHduQAJ5GuO99s2XsIQqMJEBT D7MQ== X-Forwarded-Encrypted: i=1; AJvYcCWpokk0IlrYksFs9CJ3tlQbISxriDsyhouygb7cCFdHgzQKGh6Iy9xvFtm1fALhlFdjP+cQwZ9f0A==@vger.kernel.org X-Gm-Message-State: AOJu0YyO0VH9M4RC63WMAgggDCMwE9QGybRvdZRhlg3SUlkbvLdb+sUt +WoXMM5+G4T/YOspK/ofPLYSe9Sezt8BZUsz2VF5MYduYySpBdcekvyoEvjieZQ= X-Gm-Gg: ASbGncsBkZOSQDyhrXOWQPtQ311OCfSUk9xZdczAVaEKOHqaG/Cw8nC6vlWBAlqXuhP UVou7G0KpDs3uIjpq1R9z2soGC9OAzoH5Liv9HOw0lNKk9gHnNHXmMpDuAIhm6QAHA7h9YthqNY n8iFCCN7Fy4ubxe2Y+YBc0hmTFlcHTQUNTjmGWj/LoDsMWJMu/aKSY+0T40re2Q1//b3wHNsWUE 0/iXvqQNtqiGrjn78Hiu5aSg+GM5bLKtj6ayDHAUe+Bp4c86MvwfzmpuGkBgpXeBZEhxVjOG8hw /HdaQZWfQ75wYNvKG0flj76L5Ufl9uCvJIe380AY/3l7cUY5ciy2pQ9aJSvrYGHi56yoxxMJIi6 r8tLRI0I= X-Google-Smtp-Source: AGHT+IET8hPlzYxJjNAKwUxaX04oJy+bl8g7nOQMt8+vAfkRPrb30J30Y6geQFPYgmWuAJsrOk+VLA== X-Received: by 2002:a17:902:d2c6:b0:215:acb3:3786 with SMTP id d9443c01a7336-2264993661fmr6704785ad.19.1742338862423; Tue, 18 Mar 2025 16:01:02 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-225c6ba6f14sm100739465ad.111.2025.03.18.16.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Mar 2025 16:01:01 -0700 (PDT) From: Sukrut Bellary To: Kevin Hilman , Russell King , Rob Herring , Tony Lindgren , Krzysztof Kozlowski , Nishanth Menon , Ulf Hansson Cc: Sukrut Bellary , Aaro Koskinen , Andreas Kemnade , Roger Quadros , Conor Dooley , Santosh Shilimkar , Bajjuri Praneeth , Raghavendra Vignesh , Bin Liu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 4/4] ARM: multi_v7_defconfig: Enable am335x PM configs Date: Tue, 18 Mar 2025 16:00:42 -0700 Message-Id: <20250318230042.3138542-5-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250318230042.3138542-1-sbellary@baylibre.com> References: <20250318230042.3138542-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Enable Power management related defconfigs for TI AM335x[1]. [1] AM335x TRM - https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf Signed-off-by: Sukrut Bellary --- arch/arm/configs/multi_v7_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 37e3baa33b67..1d2600b5f975 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -985,6 +985,7 @@ CONFIG_EDAC=y CONFIG_EDAC_LAYERSCAPE=y CONFIG_EDAC_HIGHBANK_MC=y CONFIG_EDAC_HIGHBANK_L2=y +CONFIG_RTC_DRV_OMAP=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_AC100=y CONFIG_RTC_DRV_AS3722=y @@ -1095,6 +1096,7 @@ CONFIG_TEGRA_IOMMU_SMMU=y CONFIG_EXYNOS_IOMMU=y CONFIG_QCOM_IOMMU=y CONFIG_REMOTEPROC=y +CONFIG_WKUP_M3_RPROC=m CONFIG_OMAP_REMOTEPROC=m CONFIG_OMAP_REMOTEPROC_WATCHDOG=y CONFIG_KEYSTONE_REMOTEPROC=m @@ -1146,6 +1148,8 @@ CONFIG_ARCH_TEGRA_3x_SOC=y CONFIG_ARCH_TEGRA_114_SOC=y CONFIG_ARCH_TEGRA_124_SOC=y CONFIG_SOC_TI=y +CONFIG_AMX3_PM=m +CONFIG_WKUP_M3_IPC=m CONFIG_KEYSTONE_NAVIGATOR_QMSS=y CONFIG_KEYSTONE_NAVIGATOR_DMA=y CONFIG_RASPBERRYPI_POWER=y @@ -1162,6 +1166,7 @@ CONFIG_EXTCON_MAX77693=m CONFIG_EXTCON_MAX8997=m CONFIG_EXTCON_USB_GPIO=y CONFIG_TI_AEMIF=y +CONFIG_TI_EMIF_SRAM=m CONFIG_STM32_FMC2_EBI=y CONFIG_EXYNOS5422_DMC=m CONFIG_IIO=y