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:
parent
d791526dd8
commit
20bfa7d38d
2 changed files with 16 additions and 0 deletions
|
@ -80,6 +80,9 @@ Charger
|
||||||
* Dropped ``constant-charge-current-max-microamp`` property in ``charger_max20335`` driver because
|
* Dropped ``constant-charge-current-max-microamp`` property in ``charger_max20335`` driver because
|
||||||
it did not reflect real chip functionality.
|
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)
|
Controller Area Network (CAN)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,19 @@ compatible: "maxim,max20335-charger"
|
||||||
properties:
|
properties:
|
||||||
constant-charge-voltage-max-microvolt:
|
constant-charge-voltage-max-microvolt:
|
||||||
required: true
|
required: true
|
||||||
|
enum:
|
||||||
|
- 4050000
|
||||||
|
- 4100000
|
||||||
|
- 4150000
|
||||||
|
- 4200000
|
||||||
|
- 4250000
|
||||||
|
- 4300000
|
||||||
|
- 4350000
|
||||||
|
- 4400000
|
||||||
|
- 4450000
|
||||||
|
- 4500000
|
||||||
|
- 4550000
|
||||||
|
- 4600000
|
||||||
|
|
||||||
chgin-to-sys-current-limit-microamp:
|
chgin-to-sys-current-limit-microamp:
|
||||||
type: int
|
type: int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue