Half bridge: New dts binding to fix pinmux

The previous approach to define the pinmux in the timer nodes didn't work
because the timers don't have a pinctrl-0 property. This commit adds a new
half-bridge binding similar to upstream Zephyr pwm binding, which is a child
node of the used timer.

It makes sense to define PWM frequency and dead-time also in this node, so
the dcdc devicetree binding is redundant and therefore removed.
This commit is contained in:
Martin Jäger
2021-02-04 17:28:52 +01:00
parent 4eaf89154a
commit 2de110b0b7
15 changed files with 100 additions and 92 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ extern LoadOutput load;
#if BOARD_HAS_LOAD_OUTPUT
#define DISCHARGE_CURRENT_MAX DT_PROP(DT_CHILD(DT_PATH(outputs), load), current_max)
#else
#define DISCHARGE_CURRENT_MAX DT_PROP(DT_PATH(dcdc), current_max)
#define DISCHARGE_CURRENT_MAX DT_PROP(DT_PATH(pcb), dcdc_current_max)
#endif
void battery_conf_init(BatConf *bat, int type, int num_cells, float nominal_capacity)