Skip to content

Commit 5177718

Browse files
ppryga-nordicrlubos
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)
1 parent d2642ad commit 5177718

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
@@ -742,6 +742,7 @@
742742
power-domains = <&gdpwr_fast_active_1>;
743743
endtx-stoptx-supported;
744744
frame-timeout-supported;
745+
zephyr,pm-device-runtime-auto;
745746
};
746747

747748
spi121: spi@8e7000 {
@@ -1150,6 +1151,7 @@
11501151
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
11511152
endtx-stoptx-supported;
11521153
frame-timeout-supported;
1154+
zephyr,pm-device-runtime-auto;
11531155
};
11541156

11551157
i2c131: i2c@9a6000 {
@@ -1285,6 +1287,7 @@
12851287
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
12861288
endtx-stoptx-supported;
12871289
frame-timeout-supported;
1290+
zephyr,pm-device-runtime-auto;
12881291
};
12891292

12901293
i2c133: i2c@9b6000 {
@@ -1331,6 +1334,7 @@
13311334
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
13321335
endtx-stoptx-supported;
13331336
frame-timeout-supported;
1337+
zephyr,pm-device-runtime-auto;
13341338
};
13351339

13361340
dppic135: dppic@9c1000 {
@@ -1419,6 +1423,7 @@
14191423
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
14201424
endtx-stoptx-supported;
14211425
frame-timeout-supported;
1426+
zephyr,pm-device-runtime-auto;
14221427
};
14231428

14241429
i2c135: i2c@9c6000 {
@@ -1465,6 +1470,7 @@
14651470
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
14661471
endtx-stoptx-supported;
14671472
frame-timeout-supported;
1473+
zephyr,pm-device-runtime-auto;
14681474
};
14691475

14701476
dppic136: dppic@9d1000 {
@@ -1600,6 +1606,7 @@
16001606
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
16011607
endtx-stoptx-supported;
16021608
frame-timeout-supported;
1609+
zephyr,pm-device-runtime-auto;
16031610
};
16041611

16051612
tdm130: tdm@992000 {

0 commit comments

Comments
 (0)