-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add Basic support for Microchip SAM D5X/E5X Family devices #93450
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 Basic support for Microchip SAM D5X/E5X Family devices #93450
Conversation
Hello @ArunMCHP, and thank you very much for your first pull request to the Zephyr project! |
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
boards/microchip/sam/sam_e54_xpro/doc/img/atsam_e54_xpro_pinout.webp
Outdated
Show resolved
Hide resolved
5e8b12a
to
4981667
Compare
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.
Please re-order the commits.
5b8d763
to
eac3759
Compare
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.
Some minor problems spotted in the documentation page of the new board
Thanks!
SAM E54 Xplained Pro Evaluation Kit | ||
################################### | ||
|
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.
SAM E54 Xplained Pro Evaluation Kit | |
################################### |
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.
Removed.
|
||
.. image:: img/atsam_e54_xpro.webp | ||
:align: center | ||
:alt: SAM_E54_XPRO |
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.
.. image:: img/atsam_e54_xpro.webp | |
:align: center | |
:alt: SAM_E54_XPRO |
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.
Removed.
|
||
.. image:: img/atsam_e54_xpro_pinout.webp | ||
:align: center | ||
:alt: SAME54-XPRO-pinout |
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.
.. image:: img/atsam_e54_xpro_pinout.webp | |
:align: center | |
:alt: SAME54-XPRO-pinout |
Please drop this image file. It adds no useful information
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.
Removed.
Default Zephyr Peripheral Mapping: | ||
---------------------------------- | ||
- SERCOM2 USART TX : PB24 |
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.
Default Zephyr Peripheral Mapping: | |
---------------------------------- | |
- SERCOM2 USART TX : PB24 | |
Default Zephyr Peripheral Mapping | |
--------------------------------- | |
- SERCOM2 USART TX : PB24 |
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.
Fixed.
- SERCOM2 USART TX : PB24 | ||
- SERCOM2 USART RX : PB25 | ||
- GPIO/PWM LED0 : PC18 | ||
- GPIO SW0 : PB31 | ||
- GMAC RMII REFCK : PA14 | ||
- GMAC RMII TXEN : PA17 | ||
- GMAC RMII TXD0 : PA18 | ||
- GMAC RMII TXD1 : PA19 | ||
- GMAC RMII CRSDV : PC20 | ||
- GMAC RMII RXD0 : PA13 | ||
- GMAC RMII RXD1 : PA12 | ||
- GMAC RMII RXER : PA15 | ||
- GMAC MDIO MDC : PC11 | ||
- GMAC MDIO MDIO : PC12 | ||
- SERCOM4 SPI SCK : PB26 | ||
- SERCOM4 SPI MOSI : PB27 | ||
- SERCOM4 SPI MISO : PB29 | ||
- SERCOM7 I2C SDA : PD08 | ||
- SERCOM7 I2C SCL : PD09 | ||
- USB DP : PA25 | ||
- USB DM : PA24 |
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.
You may want to make this a table -- your manual semicolon alignment are lost in html form (but it can also stay like this, your call)
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 @kartben, We have removed this section and given reference to board user guide.
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.
Convention is to name the file exactly the same as the board
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.
Renamed same as board name.
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.
Also note that you may want to refrain from using the word "binding" in the description of the bindings you're introducing, and may want to look at adding a concise title:
property which is what will get picked up for the autogenerated list of supported hardware features
https://docs.zephyrproject.org/latest/boards/microchip/sam/sama7g54_ek/doc/index.html#supported-features
Add clock dts node and minimal set of binding parameters for clock_control driver. Signed-off-by: Sunil Abraham <[email protected]>
Add clock control driver with minimal functionality. Implement basic on, off, get_status and get_rate API. Signed-off-by: Sunil Abraham <[email protected]>
Add pinctrl dts node and binding parameters for Microchip Pinctrl Port G1 IP Signed-off-by: Mohamed Azhar <[email protected]>
Add pinctrl driver for Microchip Port G1 Peripheral IPs Signed-off-by: Mohamed Azhar <[email protected]>
Add uart dts nodes and minimal set of binding parameters for sercom uart driver. Signed-off-by: Sunil Abraham <[email protected]>
Add uart driver with minimal features. Implement polling receive and transmit functionality. Signed-off-by: Sunil Abraham <[email protected]>
1bc7d79
to
3688ddd
Compare
Thanks @kartben. We have added a title to each binding we introduced and also removed the word "binding" from the description section. We have addressed all the review comments, kindly review and merge the PR if everything looks good. |
Follow these steps to program and debug the board: | ||
================================================== | ||
|
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.
This seems unnecessary, you're already in the Programming and Debugging section
Follow these steps to program and debug the board: | |
================================================== |
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 @kartben. I will remove this and update the PR.
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.
Removed these lines.
Add initial support for the Microchip SAM E54 Xplained Pro board (ATSAME54-XPRO). Product page: https://www.microchip.com/en-us/development-tool/atsame54-xpro Signed-off-by: Arunprasath P <[email protected]>
3688ddd
to
c7a6b8a
Compare
Hi @kartben, Hi @parthitce, @nordicjm , @nandojve, |
Hi @ArunMCHP! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
This PR adds initial support for Microchip’s SAM D5x/E5x family of SoCs, along with board support for the SAM E54 Xplained Pro development kit (ATSAME54-XPRO). It includes the basic SoC integration, devicetree files, and minimal configuration needed to bring up the board with a working UART console.
Associated pull request for the addition of the SAM D5x/E5x devices to hal_microchip:
zephyrproject-rtos/hal_microchip#33
The naming convention of driver files and device organization is as per the RFC : #92168