Skip to content

Commit 5dea2d8

Browse files
ppryga-nordicgithub-actions[bot]
authored andcommitted
[nrf fromtree] dts: nrf54h20: Add zephyr,pm-device-runtime-auto; to uart instances
The uart driver for nRF54h20 doesn't call pm_device_runtime_enable(). During an uart driver init `pm_device_driver_init()` return early, because the `pm_device_is_powered()` returns `false`. Power domains, where uarts are instantiated, are disabled: `pm->domain->pm_base->state` is not equal to `PM_DEVICE_STATE_ACTIVE`. At the end of the day, an uart instance is left disabled. This is a workaround to make the uart usable when CONFIG_PM, CONFIG_PM_DEVICE and CONFIG_PM_DEVICE_RUNTIME are enabled. Signed-off-by: Piotr Pryga <[email protected]> (cherry picked from commit eaede77) (cherry picked from commit 2ace1aa)
1 parent ff8f0c5 commit 5dea2d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dts/vendor/nordic/nrf54h20.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@
749749
power-domains = <&gdpwr_fast_active_1>;
750750
endtx-stoptx-supported;
751751
frame-timeout-supported;
752+
zephyr,pm-device-runtime-auto;
752753
};
753754

754755
spi121: spi@8e7000 {
@@ -1157,6 +1158,7 @@
11571158
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
11581159
endtx-stoptx-supported;
11591160
frame-timeout-supported;
1161+
zephyr,pm-device-runtime-auto;
11601162
};
11611163

11621164
i2c131: i2c@9a6000 {
@@ -1292,6 +1294,7 @@
12921294
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
12931295
endtx-stoptx-supported;
12941296
frame-timeout-supported;
1297+
zephyr,pm-device-runtime-auto;
12951298
};
12961299

12971300
i2c133: i2c@9b6000 {
@@ -1338,6 +1341,7 @@
13381341
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
13391342
endtx-stoptx-supported;
13401343
frame-timeout-supported;
1344+
zephyr,pm-device-runtime-auto;
13411345
};
13421346

13431347
dppic135: dppic@9c1000 {
@@ -1426,6 +1430,7 @@
14261430
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
14271431
endtx-stoptx-supported;
14281432
frame-timeout-supported;
1433+
zephyr,pm-device-runtime-auto;
14291434
};
14301435

14311436
i2c135: i2c@9c6000 {
@@ -1472,6 +1477,7 @@
14721477
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
14731478
endtx-stoptx-supported;
14741479
frame-timeout-supported;
1480+
zephyr,pm-device-runtime-auto;
14751481
};
14761482

14771483
dppic136: dppic@9d1000 {
@@ -1607,6 +1613,7 @@
16071613
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
16081614
endtx-stoptx-supported;
16091615
frame-timeout-supported;
1616+
zephyr,pm-device-runtime-auto;
16101617
};
16111618

16121619
tdm130: tdm@992000 {

0 commit comments

Comments
 (0)