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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user