Skip to content

Commit 58c2df7

Browse files
committed
boards: m5stack: cores3: Add bus_5v fixed regulator
Add a `bus_5v` fixed-regulator node driven by the `BOOST_EN` pin. This enables drivers and shields to reference the 5V supply through the standard `vin-supply` property, providing correct power sequencing and runtime control via Zephyr’s regulator API. This regulator is equivalent to the `bus_5v` already defined on the M5Stack Core2 board. Signed-off-by: Chen Xingyu <hi@xingrz.me>
1 parent f03c105 commit 58c2df7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

boards/m5stack/m5stack_cores3/Kconfig.defconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ endif # LVGL
2424

2525
# Takes good care of initialization priorities
2626

27+
if REGULATOR_FIXED
28+
config REGULATOR_FIXED_INIT_PRIORITY
29+
default 81
30+
endif
31+
2732
if REGULATOR_AXP192_AXP2101
2833
config REGULATOR_AXP192_AXP2101_INIT_PRIORITY
2934
default 81

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@
6363
rotation = <0>;
6464
};
6565
};
66+
67+
bus_5v: bus_5v {
68+
compatible = "regulator-fixed";
69+
regulator-name = "bus_5v";
70+
enable-gpios = <&aw9523b_gpio 15 GPIO_ACTIVE_HIGH>;
71+
};
6672
};
6773

6874
&usb_serial {

0 commit comments

Comments
 (0)