Skip to content

Conversation

Kronosblaster
Copy link
Contributor

@Kronosblaster Kronosblaster commented Jun 19, 2025

Power domains are added to the device tree.
The enabled nodes with power domains assigned to them have them turn on in the SOC layer.
Init for enabled clock nodes.
This PR waits on #90216 to be merged.

@github-actions github-actions bot added the platform: TI K3 Texas Instruments Keystone 3 Processors label Jun 19, 2025
@bjarki-andreasen
Copy link
Contributor

Using PM_DEVICE_RUNTIME, power domains are automatically resumed (pm_device_runtime_get()) when a device on the power domain is resumed, so if you pm_device_runtime_get(DEVICE_DT_GET(DT_NODELABEL(i2c0))); its power domain i2c0_pd will be resumed automatically, the SYS_INIT should not be neccesary, unless its an intermediary solution until drivers for devices like i2c0 implement PM_DEVICE maybe?

@Kronosblaster
Copy link
Contributor Author

Using PM_DEVICE_RUNTIME, power domains are automatically resumed (pm_device_runtime_get()) when a device on the power domain is resumed, so if you pm_device_runtime_get(DEVICE_DT_GET(DT_NODELABEL(i2c0))); its power domain i2c0_pd will be resumed automatically, the SYS_INIT should not be neccesary, unless its an intermediary solution until drivers for devices like i2c0 implement PM_DEVICE maybe?

Yeah. There are some drivers that are shared between vendors. This is intended such that those don't have to be modified. All the devices with status = "okay" have their power domains turned on in the SOC layer with this method.

@Kronosblaster Kronosblaster force-pushed the sysInit branch 5 times, most recently from 7207f98 to 7ba0f78 Compare June 20, 2025 06:28
@Kronosblaster Kronosblaster force-pushed the sysInit branch 11 times, most recently from aa773e5 to fb714fe Compare June 24, 2025 04:55
Copy link

@Kronosblaster Kronosblaster requested a review from dnltz August 11, 2025 10:50
@Kronosblaster Kronosblaster force-pushed the sysInit branch 2 times, most recently from e414cf2 to bb2c0eb Compare August 12, 2025 10:12
@Kronosblaster Kronosblaster requested a review from dnltz August 12, 2025 10:27
@Kronosblaster Kronosblaster force-pushed the sysInit branch 2 times, most recently from 4772327 to e32d2a9 Compare August 13, 2025 09:56
Turns on all the power domains for devices with a power-domain device
tree property in the soc layer.
Sets clock frequency for enabled devices.
Supported for the R5f0_0 core on the
AM243x EVM.
Makes dmsc node in the power domain driver static.

Signed-off-by: Dave Joseph <[email protected]>
Copy link

@Kronosblaster Kronosblaster changed the title soc : ti: Power domain support and soc layer power domain init soc : ti: Soc layer power domain and clock nodes init Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Power Management platform: TI K3 Texas Instruments Keystone 3 Processors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants