LibreSolar / charge-controller-firmware

Firmware for Libre Solar MPPT/PWM charge controllers
https://libre.solar/charge-controller-firmware/
Apache License 2.0
144 stars 71 forks source link

Add new half bridge dts binding and fix pinmux #114

Closed martinjaeger closed 3 years ago

martinjaeger commented 3 years ago

This PR fixes the new pinmuxing introduced in Zephyr 2.5 for the half bridge PWM signals. These changes go into the develop branch, which should be merged into master after Zephyr 2.5 release mid February.

As there were some issues with the previous approach of assigning the timer to the DC/DC (see also commit message), a new half-bridge dts binding is introduced, which will also be helpful for potential upstreaming of the half bridge driver to Zephyr.

Ping @luizvilla and @hugueslarrive: This is also relevant for your porting work of the OwnTech boards. Feel free to have a look and give some feedback.

martinjaeger commented 3 years ago

Merging into develop branch because I want to continue with other work that relies on these updates.