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:
Andy Sinclair 2024-02-20 22:18:45 +00:00 committed by Anas Nashif
commit b46e2f3d8a
2 changed files with 12 additions and 1 deletions

View file

@ -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.