zephyr/tests/drivers/regulator/fixed/dts/test_common.dtsi
Peter A. Bigot 977ec16451 tests: drivers: regulator: add test for fixed regulator
Basic checks on core regulator functions.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2020-10-28 15:22:53 +01:00

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";
};
};