drivers: lpadc: Make DT props match RM

- Remove build asserts in favor of DT enums
- Remove power level property since it is unused by SDK
- Correct voltage ref value in DT to correspond to
  chip specific values documented in reference manuals
  instead of corresponding to SDK enum names.
- Fix SOC devicetrees affected by these changes.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2023-04-13 16:15:15 +00:00 committed by Carles Cufí
commit 9921c59f40
8 changed files with 41 additions and 58 deletions

View file

@ -27,17 +27,39 @@ properties:
voltage-ref:
type: int
required: true
description: reference voltage source
description: |
Voltage reference selection. Corresponds to value of
register field CFG[REFSEL] (see chip specific manual).
enum:
- 0
- 1
- 2
- 3
calibration-average:
type: int
required: true
description: conversion average number for auto-calibration
enum:
- 1
- 2
- 4
- 8
- 16
- 32
- 64
- 128
power-level:
type: int
required: true
description: power level for the ADC
description: |
Power level selection. Corresponds to the value of
register field CFG[PWRSEL] (see chip specific manual).
enum:
- 0
- 1
- 2
- 3
offset-value-a:
type: int