Skip to content
New issue

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

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

Already on GitHub? # to your account

Add bootloader reset for SMLIGHT SLZB-07 #63

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Add bootloader reset for SMLIGHT SLZB-07 #63

merged 3 commits into from
Feb 28, 2024

Conversation

tl-sl
Copy link
Contributor

@tl-sl tl-sl commented Jan 27, 2024

New hardware revision of SMLIGHT SLZB-07 dongle will have bootloader reset hooked up to the GPIO on the CP2102N chip. GPIO drivers for this have been included in mainline Linux since long ago and it works fine with gpiod.

As this is a USB chip the actual chip number for the /dev/gpiochip device will depend on what other system gpio devices might already exist on the system. So have added support to search by chip label to find the chip number, which will return the path of first found CP210X USB chip. Both gpiod API's are covered and have been tested.

slzb-07 is added with the chip_name key to activate above search.

Patches by @darkxst on behalf of @smlight-dev.

tl-sl added 2 commits January 27, 2024 13:40
Chip number for USB gpio chips will depend on what other system gpio
chips already exist on the system. Add support to search by chip label
to find chip number.
@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2024

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (67a0232) 62.45% compared to head (34541a4) 61.78%.
Report is 1 commits behind head on dev.

Files Patch % Lines
universal_silabs_flasher/gpio.py 25.92% 20 Missing ⚠️
universal_silabs_flasher/flasher.py 25.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #63      +/-   ##
==========================================
- Coverage   62.45%   61.78%   -0.68%     
==========================================
  Files          14       14              
  Lines        1718     1748      +30     
==========================================
+ Hits         1073     1080       +7     
- Misses        645      668      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@puddly puddly merged commit b009196 into NabuCasa:dev Feb 28, 2024
12 checks passed
robarnold referenced this pull request in marinatedconcrete/config Feb 28, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[universal-silabs-flasher](https://github.com/NabuCasa/universal-silabs-flasher)
| `==0.0.17` -> `==0.0.19` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/universal-silabs-flasher/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/universal-silabs-flasher/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/universal-silabs-flasher/0.0.17/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/universal-silabs-flasher/0.0.17/0.0.19?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>NabuCasa/universal-silabs-flasher
(universal-silabs-flasher)</summary>

###
[`v0.0.19`](https://github.com/NabuCasa/universal-silabs-flasher/releases/tag/v0.0.19)

[Compare
Source](https://github.com/NabuCasa/universal-silabs-flasher/compare/v0.0.18...v0.0.19)

#### What's Changed

- Add bootloader reset for SMLIGHT SLZB-07 by
[@&#8203;tl-sl](https://github.com/tl-sl) in
[https://github.com/NabuCasa/universal-silabs-flasher/pull/63](https://github.com/NabuCasa/universal-silabs-flasher/pull/63)

#### New Contributors

- [@&#8203;tl-sl](https://github.com/tl-sl) made their first
contribution in
[https://github.com/NabuCasa/universal-silabs-flasher/pull/63](https://github.com/NabuCasa/universal-silabs-flasher/pull/63)

**Full Changelog**:
NabuCasa/universal-silabs-flasher@v0.0.18...v0.0.19

###
[`v0.0.18`](https://github.com/NabuCasa/universal-silabs-flasher/releases/tag/v0.0.18)

[Compare
Source](https://github.com/NabuCasa/universal-silabs-flasher/compare/v0.0.17...v0.0.18)

#### What's Changed

- Bump minimum bellows version to 0.38.0 by
[@&#8203;puddly](https://github.com/puddly) in
[https://github.com/NabuCasa/universal-silabs-flasher/pull/65](https://github.com/NabuCasa/universal-silabs-flasher/pull/65)

**Full Changelog**:
NabuCasa/universal-silabs-flasher@v0.0.17...v0.0.18

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/marinatedconcrete/config).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIxMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants