drivers: regulator: fake: Added is_enabled property
Added is_enabled devicetree property to fake regulator. Allows testing of init behaviour when regulator is enabled in hardware. Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
This commit is contained in:
parent
977fc0c2ad
commit
b46e2f3d8a
2 changed files with 12 additions and 1 deletions
|
@ -10,3 +10,10 @@ compatible: "zephyr,fake-regulator"
|
|||
|
||||
child-binding:
|
||||
include: regulator.yaml
|
||||
|
||||
properties:
|
||||
fake-is-enabled-in-hardware:
|
||||
type: boolean
|
||||
description: |
|
||||
Sets the is_enabled flag passed to regulator_common_init.
|
||||
Allows test cases where the regulator is enabled in hardware.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue