Skip to content

Commit 12677dc

Browse files
gmarullmbolivar-nordic
authored andcommitted
boards: degu_evk: use regulator for Vin1 monitoring circuit
Replace custom init code with the regulator infrastructure to enable the Vin1 monitoring circuit. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent d44070f commit 12677dc

File tree

4 files changed

+9
-32
lines changed

4 files changed

+9
-32
lines changed

boards/arm/degu_evk/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

boards/arm/degu_evk/board.c

Lines changed: 0 additions & 26 deletions
This file was deleted.

boards/arm/degu_evk/degu_evk.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
regulator-boot-on;
6565
};
6666

67+
en-vin1-moni {
68+
compatible = "regulator-fixed-sync", "regulator-fixed";
69+
label = "en_vin1_moni";
70+
regulator-name = "en_vin1_moni";
71+
enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
72+
regulator-boot-on;
73+
};
74+
6775
/* These aliases are provided for compatibility with samples */
6876
aliases {
6977
led0 = &led0;

boards/arm/degu_evk/degu_evk_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CONFIG_USB_DEVICE_STACK=y
1919
CONFIG_GPIO=y
2020
CONFIG_GPIO_AS_PINRESET=y
2121

22-
# required to enable 3V3 power rail
22+
# required to enable 3V3 power rail and Vin1 monitor
2323
CONFIG_REGULATOR=y
2424

2525
CONFIG_PINCTRL=y

0 commit comments

Comments
 (0)