app: enable HS MOSFET fail-safe protection based on devicetree
The fuse destruction in case of a shorted high-side MOSFET was enabled for all boards with DC/DC converter, even if the board doesn't have a fuse at the low-side terminal (e.g. Nucleo G474RE). Add an ls-fuse property to the charge-controller binding to describe this hardware feature and make HS_MOSFET_FAIL_SAFE_PROTECTION depend on it. The property is added to all MPPT boards, so the behavior does not change for them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b1cd0b6922
commit
bfbe98a62e
+5
-1
@@ -19,11 +19,15 @@ config CONTROL_FREQUENCY
|
||||
config HS_MOSFET_FAIL_SAFE_PROTECTION
|
||||
bool
|
||||
default y
|
||||
depends on $(dt_node_bool_prop,/pcb,ls-fuse)
|
||||
help
|
||||
If enabled, the DC/DC control function will will detect if the high-side MOSFET has failed
|
||||
If enabled, the DC/DC control function will detect if the high-side MOSFET has failed
|
||||
short and trip the fuse by switching the low-side MOSFET continuously on. This will prevent
|
||||
accidental overcharging of the battery.
|
||||
|
||||
Only available if the board has a fuse at the low-side terminal (ls-fuse property of the
|
||||
pcb devicetree node).
|
||||
|
||||
#
|
||||
# Visible (user-configurable) Kconfig symbols
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user