dts: bindings: lpadc: Add regulator phandle prop

Add phandle prop to reference any regulator that must
be enabled in order for the LPADC to function as intended.

Change LPADC driver to use this property if present.

LPADC on LPC55S36 depends on VREF peripheral, enable for this platform.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2023-04-12 20:21:10 +00:00 committed by Carles Cufí
commit fe8b112efd
4 changed files with 30 additions and 1 deletions

View file

@ -71,6 +71,10 @@ properties:
required: true
description: Offset value B to use if CONFIG_LPADC_DO_OFFSET_CALIBRATION is false
nxp,reference-supply:
type: phandles
description: References to required regulators which must be enabled for LPADC to function
"#io-channel-cells":
const: 1