-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support SX126x RF switch controlled by MCU #5
Support SX126x RF switch controlled by MCU #5
Conversation
@andysan It is always recommended to mention the corresponding Zephyr PR for reviewers to make sure the change builds. |
There isn't a PR for the Zephyr side yet since I wanted to make sure the base support is merged to avoid complicating the review. I have a branch here though if you are interested: https://github.com/andysan/zephyr/tree/sx126x-rf-switch |
cca70ea
to
6493b08
Compare
@Mani-Sadhasivam I have rebased this and posted the corresponding Zephyr patches. |
@andysan Thanks for the PR! I like the idea of controlling the RF switch using MCU GPIOs but we should really try to minimize the delta between upstream I know it is a bit of work for you but if we keep adding stuff like this in our fork then soon it will become a mess. |
I have raised or updated the following upstream issues related to this PR:
|
The necessary changes have now been merged upstream. What’s the policy for pulling in new changes? Should I just cherry pick them? Are we on a release branch/tag? Or should I rebase the Zephyr changes on top of master? |
…tTxContinuousWave and SX126xSetTxInfinitePreamble functions
6493b08
to
3ba9291
Compare
Ended up cherry-picking the relevant changes. Let me know if I should do something else. |
3ba9291
to
d831b85
Compare
…entation Removed SX126xDbgPinTxWrite and SX126xDbgPinRxWrite functions from public API
… (SX126xIoRfSwitchInit)
d831b85
to
e635629
Compare
UPDATE: Remove re-ordering commit that was reverted on upstream since it prevented the radio from waking up correctly. |
Ping @Mani-Sadhasivam . Is it acceptable to merge this PR with the commits backported from upstream? |
@andysan Sorry for the late reply! Instead of cherry picking the commits, can you please rebase this to master? |
Would it be a better idea to use a release tag and cherry pick the change? I'm a bit nervous about not using a release here. |
Ack. Sorry for that comment (bit sleepy last night). Let's move onto |
I had a look at that this would entail. Moving to 4.4.4 changes the signature of a couple of functions in the SX1276 radio. It's also unclear exactly how we deal with branching in this module. Rebasing is probably not an option since that would leave some changes dangling and subject to garbage collection (which would break older versions of Zephyr). I would merge the new tag, but that makes it harder to track which changes are Zephyr-specific. Can we merge these changes now and figure out how we move to 4.4.4 separately? They aren't in the 4.4.4 release anyway. |
Hmm. Okay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@carlescufi Could you please merge this PR? |
This PR contains a series of changes that add support for SX126x radio state tracking from Zephyr. These changes are needed to support RF switches that are wired to MCU GPIOs instead of directly to the radio.
NOTE: Depends on #4 which adds build configs for SX126X.NOTE: There isn't a PR for the Zephyr side yet since the base SX126x driver hasn't been merged. See https://github.com/andysan/zephyr/tree/sx126x-rf-switch for my development branch.NOTE: This is a dependency for zephyrproject-rtos/zephyr#26611