Basic checks on core regulator functions. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
32 lines
724 B
Plaintext
32 lines
724 B
Plaintext
/*
|
|
* Copyright 2020 Peter Bigot Consulting, LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
regulator {
|
|
compatible =
|
|
#if APP_DTS_REGULATOR_SYNC
|
|
"regulator-fixed-sync",
|
|
#endif
|
|
"regulator-fixed";
|
|
label = "REG";
|
|
regulator-name = "test";
|
|
#ifdef APP_DTS_REGULATOR_ALWAYS_ON
|
|
regulator-always-on;
|
|
#endif /* APP_DTS_REGULATOR_ALWAYS_ON */
|
|
#ifdef APP_DTS_REGULATOR_BOOT_ON
|
|
regulator-boot-on;
|
|
#endif /* APP_DTS_REGULATOR_BOOT_ON */
|
|
#ifdef APP_DTS_REGULATOR_ON_DELAYED
|
|
startup-delay-us = <10000>;
|
|
#endif /* APP_DTS_REGULATOR_ON_DELAYED */
|
|
#ifdef APP_DTS_REGULATOR_OFF_DELAYED
|
|
off-on-delay-us = <20000>;
|
|
#endif /* APP_DTS_REGULATOR_OFF_DELAYED */
|
|
};
|
|
resources {
|
|
compatible = "test,regulator-fixed";
|
|
};
|
|
};
|