Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rw6xx: Add Support for Standby Power Mode #84945

Merged
merged 14 commits into from
Mar 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
soc: nxp_rw6xx: Add support for XTAL32K clock
This clock is used for certain peripherals such
as RTC.
On certain RW612 boards such as rd_rw612_bga, XTAL32K
and ENET share pins. Add code to check if ENET and
XTAL32 are enabled at the same time.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
mmahadevan108 committed Mar 20, 2025
commit 1e49a38439ae050ad78b6b7e701fcc219c805af1
5 changes: 5 additions & 0 deletions soc/nxp/rw/Kconfig
Original file line number Diff line number Diff line change
@@ -55,4 +55,9 @@ endif # NXP_RW6XX_BOOT_HEADER
rsource "../common/Kconfig.flexspi_xip"
rsource "../common/Kconfig.nbu"

config XTAL32K
bool "Use the External 32K clock"
help
This clock is used by certain peripherals such as RTC.

endif # SOC_SERIES_RW6XX
4 changes: 4 additions & 0 deletions soc/nxp/rw/soc.c
Original file line number Diff line number Diff line change
@@ -201,6 +201,10 @@ __weak __ramfunc void clock_init(void)
#if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(flexcomm14), nxp_lpc_i2c, okay)) && CONFIG_I2C
CLOCK_AttachClk(kSFRO_to_FLEXCOMM14);
#endif
#if CONFIG_XTAL32K
CLOCK_EnableXtal32K(true);
CLOCK_AttachClk(kXTAL32K_to_CLK32K);
#endif

/* Clock flexcomms when used as SPI */
#ifdef CONFIG_SPI