Apply initial mode (regulator-initial-mode) as part of the regulator_common_init_enable call. Update tests to cover this change. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
30 lines
509 B
Plaintext
30 lines
509 B
Plaintext
/*
|
|
* Copyright (c) 2022 Nordic Semiconductor ASA
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
regulator: regulator {
|
|
compatible = "zephyr,fake-regulator";
|
|
|
|
reg0: REG0 {};
|
|
|
|
reg1: REG1 {
|
|
regulator-always-on;
|
|
};
|
|
|
|
reg2: REG2 {
|
|
regulator-boot-on;
|
|
};
|
|
|
|
reg3: REG3 {
|
|
regulator-min-microvolt = <100>;
|
|
regulator-max-microvolt = <200>;
|
|
regulator-min-microamp = <100>;
|
|
regulator-max-microamp = <200>;
|
|
regulator-allowed-modes = <1 10>;
|
|
regulator-initial-mode = <1>;
|
|
};
|
|
};
|
|
};
|