Skip to content

Commit d6e940e

Browse files
bjarki-andreasenkartben
authored andcommitted
dts: vendor: nordic: nrf54h: move adc and comp to gdpwr_slow_main
The ADC and COMP on the nrf54h20 both have all of their analog inputs routed to pads in different power domains than themselves, this means the device drivers for both of them need to request the pads to be resumed when active to allow any reading of the pads. To keep the drivers simple, we can rely on HW to keep the power domain the COMP and ADC are in powered, which happens automatically when the ADC or COMP is ENABLED. We can then place them on the power domain of their pads in the devicetree. This ensures the pads are powered and not retained while the devices are RESUMED. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 5fd26a6 commit d6e940e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

dts/vendor/nordic/nrf54h20.dtsi

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,13 @@
999999
interrupts = <386 NRF_DEFAULT_IRQ_PRIORITY>;
10001000
status = "disabled";
10011001
#io-channel-cells = <1>;
1002-
power-domains = <&gdpwr_slow_active>;
1002+
/*
1003+
* This device is actually in the gdpwr_slow_active domain, but
1004+
* all of its analog inputs are routed to pads in the
1005+
* gdpwr_slow_main. Request gdpwr_slow_main and rely on the
1006+
* device HW to force its own power domain on while ENABLED.
1007+
*/
1008+
power-domains = <&gdpwr_slow_main>;
10031009
zephyr,pm-device-runtime-auto;
10041010
};
10051011

@@ -1012,7 +1018,13 @@
10121018
reg = <0x983000 0x1000>;
10131019
status = "disabled";
10141020
interrupts = <387 NRF_DEFAULT_IRQ_PRIORITY>;
1015-
power-domains = <&gdpwr_slow_active>;
1021+
/*
1022+
* This device is actually in the gdpwr_slow_active domain, but
1023+
* all of its analog inputs are routed to pads in the
1024+
* gdpwr_slow_main. Request gdpwr_slow_main and rely on the
1025+
* device HW to force its own power domain on while ENABLED.
1026+
*/
1027+
power-domains = <&gdpwr_slow_main>;
10161028
};
10171029

10181030
temp: temperature-sensor@984000 {

0 commit comments

Comments
 (0)