Skip to content

Conversation

@mhei
Copy link
Member

@mhei mhei commented Jan 13, 2026

With this PR, support for multiple instances of the safety controller on one platform is improved.
The main goal is to check on several UARTs whether a firmware update is required.

A corresponding small change in our meta-chargebyte-distro layer will be necessary, to enable
all required instances on our products.

mhei added 3 commits January 13, 2026 17:38
At the moment, it is possible to pass different GPIOs to use
via command line arguments. This is handy during development,
but in final products, it makes the resulting command lines
long and unreadable when the safety controller is not connected
on the compiled-in default interface.
Also in scripts, this would not be much better.

So let's allow to specify the GPIO stuff via environment
as already done for the UART used.

Signed-off-by: Michael Heimpold <[email protected]>
On upcoming products like e.g. Charge Control V, we have multiple
safety controllers. This also means to have multiple instances
to be checked and updated.
Here we can use the instances feature by systemd, bundled with
using a specific environment per interface and limiting the
instances by matching the Device Tree compatible string.

Signed-off-by: Michael Heimpold <[email protected]>
Signed-off-by: Michael Heimpold <[email protected]>
Copy link

@t-mon t-mon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants