Skip to content

Commit ca2e549

Browse files
[nrf fromlist] 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. Upstream PR #: 96711 Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 4ec7df4 commit ca2e549

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
@@ -991,7 +991,13 @@
991991
interrupts = <386 NRF_DEFAULT_IRQ_PRIORITY>;
992992
status = "disabled";
993993
#io-channel-cells = <1>;
994-
power-domains = <&gdpwr_slow_active>;
994+
/*
995+
* This device is actually in the gdpwr_slow_active domain, but
996+
* all of its analog inputs are routed to pads in the
997+
* gdpwr_slow_main. Request gdpwr_slow_main and rely on the
998+
* device HW to force its own power domain on while ENABLED.
999+
*/
1000+
power-domains = <&gdpwr_slow_main>;
9951001
zephyr,pm-device-runtime-auto;
9961002
};
9971003

@@ -1004,7 +1010,13 @@
10041010
reg = <0x983000 0x1000>;
10051011
status = "disabled";
10061012
interrupts = <387 NRF_DEFAULT_IRQ_PRIORITY>;
1007-
power-domains = <&gdpwr_slow_active>;
1013+
/*
1014+
* This device is actually in the gdpwr_slow_active domain, but
1015+
* all of its analog inputs are routed to pads in the
1016+
* gdpwr_slow_main. Request gdpwr_slow_main and rely on the
1017+
* device HW to force its own power domain on while ENABLED.
1018+
*/
1019+
power-domains = <&gdpwr_slow_main>;
10081020
};
10091021

10101022
temp: temperature-sensor@984000 {

0 commit comments

Comments
 (0)