drivers: add half-bridge driver API
Add infrastructure for out-of-tree drivers in this Zephyr module and define a driver API for half bridges consisting of two complementary PWM outputs with dead time, as used in the DC/DC converter. The API is defined as a __subsystem so that drivers can use the DEVICE_API() macro. Integer-based compare values allow to change the PWM with minimum step size, while inline helpers provide the float duty cycle interface known from the previous application code. A libresolar vendor prefix is added for the new bindings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c9951dc1fa
commit
5e0c6dc73f
@@ -0,0 +1,16 @@
|
||||
# Copyright (c) The Libre Solar Project Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Common properties for half bridges consisting of two complementary PWM outputs
|
||||
|
||||
properties:
|
||||
frequency:
|
||||
type: int
|
||||
required: true
|
||||
description: Switching frequency in Hz
|
||||
|
||||
deadtime-ns:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Dead time in nanoseconds between switching off one MOSFET and switching on the other one
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) The Libre Solar Project Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Additional devicetree vendor prefixes used in this module
|
||||
|
||||
libresolar Libre Solar Project
|
||||
Reference in New Issue
Block a user