From f2e3d3f951112ffec7f3a1a40bcf0c187dcae40e Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Mon, 13 May 2024 10:09:45 +0200 Subject: [PATCH] soc: smartbond: Move PM_DEVICE dependency to soc For DA1469x if PM config is selected PM_DEVICE must also be selected for GPIO to work when device enters/exists deep sleep. Previously GPIO and regulator drivers selected PM_DEVICE when PM was enabled. Now it is moved to SOC instead. PM_DEVICE selection in GPIO could result in circular dependency for mcux if MEMC_MCUX_FLEXSPI (which is already dependent on PM_DEVICE) was to be additionally dependent on GPIO. Signed-off-by: Jerzy Kasenberg --- drivers/gpio/Kconfig.smartbond | 1 - drivers/regulator/Kconfig.da1469x | 1 - soc/renesas/smartbond/da1469x/Kconfig | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/Kconfig.smartbond b/drivers/gpio/Kconfig.smartbond index 59c8b2f109f155..5e624cd30119a2 100644 --- a/drivers/gpio/Kconfig.smartbond +++ b/drivers/gpio/Kconfig.smartbond @@ -5,6 +5,5 @@ config GPIO_SMARTBOND bool "Renesas SmartBond(tm) GPIO driver" default y depends on DT_HAS_RENESAS_SMARTBOND_GPIO_ENABLED - select PM_DEVICE if PM help Enable GPIO driver for Renesas SmartBond(tm) MCU family. diff --git a/drivers/regulator/Kconfig.da1469x b/drivers/regulator/Kconfig.da1469x index 142634ae5e81ff..d8205ed4925dff 100644 --- a/drivers/regulator/Kconfig.da1469x +++ b/drivers/regulator/Kconfig.da1469x @@ -4,7 +4,6 @@ config REGULATOR_DA1469X bool "DA1469X regulators driver" default y - select PM_DEVICE if PM depends on DT_HAS_RENESAS_SMARTBOND_REGULATOR_ENABLED help Enable support for the Smartbond DA1469x regulators. diff --git a/soc/renesas/smartbond/da1469x/Kconfig b/soc/renesas/smartbond/da1469x/Kconfig index 0dcaed68f02843..c987b579c10329 100644 --- a/soc/renesas/smartbond/da1469x/Kconfig +++ b/soc/renesas/smartbond/da1469x/Kconfig @@ -13,3 +13,4 @@ config SOC_SERIES_DA1469X select CLOCK_CONTROL select CLOCK_CONTROL_SMARTBOND select PLATFORM_SPECIFIC_INIT + select PM_DEVICE if PM