dts: bindings: charger: max20335: use enum for property

Add enum for `constant-charge-voltage-max-microvolt` property to
signalize improper values given with device tree at compile time.

Signed-off-by: Lukasz Madej <l.madej@grinn-global.com>
This commit is contained in:
Lukasz Madej 2024-02-07 15:49:33 +01:00 committed by Anas Nashif
commit 20bfa7d38d
2 changed files with 16 additions and 0 deletions

View file

@ -80,6 +80,9 @@ Charger
* Dropped ``constant-charge-current-max-microamp`` property in ``charger_max20335`` driver because
it did not reflect real chip functionality.
* Added enum key to ``constant-charge-voltage-max-microvolt`` property in ``maxim,max20335-charger``
binding to indicate invalid devicetree values at build time.
Controller Area Network (CAN)
=============================

View file

@ -10,6 +10,19 @@ compatible: "maxim,max20335-charger"
properties:
constant-charge-voltage-max-microvolt:
required: true
enum:
- 4050000
- 4100000
- 4150000
- 4200000
- 4250000
- 4300000
- 4350000
- 4400000
- 4450000
- 4500000
- 4550000
- 4600000
chgin-to-sys-current-limit-microamp:
type: int