-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add support for Atmel SAML21, SAMR34, SAMR35 parts #41308
Add support for Atmel SAML21, SAMR34, SAMR35 parts #41308
Conversation
Can you please update |
3d34b01
to
3dadec4
Compare
What a good idea, thanks! |
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
62fc515
to
0540211
Compare
Hi @attie-argentum , Thank you for your contribution! I think there are three things in this PR:
My preference is split PR in two for organization purposes. In order to add a newer SoC the preference is have a single commit that update ADC is a general improvement and don't need to be part of a newer SoC series as you, in fact, fixed ADC before add the SoC. The split can help to speed up acceptance. |
0540211
to
2e59058
Compare
5e0173e
to
5b54872
Compare
Address @gmarull's comments and rebase. |
Hi @mbolivar-nordic , @gmarull I was wondering if you may revisit this PR to check if @attie-argentum addressed all your concerns. |
Implement support for SAML21 parts, tested on a SAML21 Xplained Pro dev board. Confirmed operational peripherals: UART, GPIO, PWM, ADC. Signed-off-by: Attie Grande <[email protected]>
Implement support for SAML21 Xplained Pro dev board. Signed-off-by: Attie Grande <[email protected]>
Implement support for SAMR34 and SAMR35 parts, tested on a SAMR34 Xplained Pro dev board. Confirmed operational peripherals: UART, GPIO, PWM, ADC. NOTE: The SAMR34 datasheet lists NVIC line 20 for the ADC's interrupt, but the SAML21 datasheet gives line 22. It appears that the SAMR34 sheet is incorrect (the ADC doesn't function with line 20), and as such, I have also omitted the adjustments for TC4 and AC... Signed-off-by: Attie Grande <[email protected]>
Implement support for SAMR34 Xplained Pro dev board. Signed-off-by: Attie Grande <[email protected]>
For SAML21-based parts, the REFCTRL register is locked while the ADC is enabled. Permit some parts to declare that they need the ADC to be disabled before modifying REFCTRL. Signed-off-by: Attie Grande <[email protected]>
@gmarull - thanks for your comments... I'm going to hang on to the GPIO (magic numbers / device tree) for the moment, if that's okay... but I've addressed the others. Very keen to get this merged now, I seem to be periodically playing catch-up with a moving target. |
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.
Thanks for the patience and continued effort
@nandojve / @mbolivar-nordic - please could you re-check too? 🤞 |
@mbolivar-nordic - please could you have a look over this again, I'd love to get this merged and complete. |
Done; you're just down to @stephanosio 's NAK now |
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
Amazing, thanks all! 🥳 |
This PR implements support for SAML21, SAMR34 and SAMR35 parts.
I've named the SAMR34 / SAMR35 parts
samr34
in the sources, becausesamr3x
would not be correct here (see SAMR30 which is a SAML21 with an AT86RF212B / 802.15.4 radio), and SAMR35 is just "SAMR34 without USB".The SAMR34 and SAMR35 parts are fundamentally a SAML21 with a LoRa radio built in.
I will not be using the LoRa radio for LoRa in my application (I'll be using FSK), but I have run the LoRa send/receive samples between two boards to verify operation.
Dependencies
This PR depends on: