Skip to content

Commit 2ace1aa

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 08e0cf4 commit 2ace1aa

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
@@ -708,6 +708,7 @@
708708
power-domains = <&gpd NRF_GPD_FAST_ACTIVE1>;
709709
endtx-stoptx-supported;
710710
frame-timeout-supported;
711+
zephyr,pm-device-runtime-auto;
711712
};
712713

713714
spi121: spi@8e7000 {
@@ -1066,6 +1067,7 @@
10661067
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
10671068
endtx-stoptx-supported;
10681069
frame-timeout-supported;
1070+
zephyr,pm-device-runtime-auto;
10691071
};
10701072

10711073
i2c131: i2c@9a6000 {
@@ -1200,6 +1202,7 @@
12001202
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
12011203
endtx-stoptx-supported;
12021204
frame-timeout-supported;
1205+
zephyr,pm-device-runtime-auto;
12031206
};
12041207

12051208
i2c133: i2c@9b6000 {
@@ -1246,6 +1249,7 @@
12461249
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
12471250
endtx-stoptx-supported;
12481251
frame-timeout-supported;
1252+
zephyr,pm-device-runtime-auto;
12491253
};
12501254

12511255
dppic135: dppic@9c1000 {
@@ -1334,6 +1338,7 @@
13341338
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
13351339
endtx-stoptx-supported;
13361340
frame-timeout-supported;
1341+
zephyr,pm-device-runtime-auto;
13371342
};
13381343

13391344
i2c135: i2c@9c6000 {
@@ -1380,6 +1385,7 @@
13801385
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
13811386
endtx-stoptx-supported;
13821387
frame-timeout-supported;
1388+
zephyr,pm-device-runtime-auto;
13831389
};
13841390

13851391
dppic136: dppic@9d1000 {
@@ -1514,6 +1520,7 @@
15141520
nordic,clockpin-enable = <NRF_FUN_UART_TX>;
15151521
endtx-stoptx-supported;
15161522
frame-timeout-supported;
1523+
zephyr,pm-device-runtime-auto;
15171524
};
15181525

15191526
tdm130: tdm@992000 {

0 commit comments

Comments
 (0)