Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve powerboard detection logic #179

Open
rroohhh opened this issue Dec 2, 2020 · 1 comment
Open

Improve powerboard detection logic #179

rroohhh opened this issue Dec 2, 2020 · 1 comment
Labels

Comments

@rroohhh
Copy link
Member

rroohhh commented Dec 2, 2020

On a powerboard version 0.29 the powerboard version cannot be correctly determined when the mux (that only exists on version 0.29 and not 0.30) is held in reset.

So for the scripts to work, the pin controlling the reset has to be set unconditionally, atleast once, to check the powerboard version.

A quick fix is changing the axiom_power_on.sh script to always enable it:

#!/bin/bash
for id in 0x20 0x21; do
    i2c_test $id || continue

    i2c_set $id 0x14 0xFF
    i2c_set $id 0x15 0xFF
done

for id in 0x22 0x23; do
    i2c_test $id || continue

    i2c_set $id 0x14 0x4F
    i2c_set $id 0x15 0xBC
done

A more proper fix would be:

 00:13:55 <Bertl> probably the best way would be to take 22b7 high unconditionally (in gpio.py setup) and then check for the PB revision
 00:14:25 <Bertl> if we find no mux, we assume v0.30 and take it low again
@rroohhh rroohhh added the bug label Dec 2, 2020
@rroohhh
Copy link
Member Author

rroohhh commented Dec 8, 2020

@imSanko solving this issue needs extensive hardware testing we can only really do ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant