-
Notifications
You must be signed in to change notification settings - Fork 8.2k
soc: microchip: Introduce pic32cxsg sg41 #86952
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
Closed
MyGh64605
wants to merge
8
commits into
zephyrproject-rtos:main
from
MicrochipTech:pic32cxsg_helloworld
Closed
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2218375
modules: microchip Addition of pic32cxsg modules
MyGh64605 a151edd
dts: arm: microchip Addition of pic32cxsg
MyGh64605 7adc77c
soc: microchip: pic32cxsg Addition of pic32cxsg
MyGh64605 74b0f44
dts: pinctl: Add pinctrl node to PIC32CXSG dtsi
MyGh64605 2f35e49
drivers: pinctrl Addition of pic32cxsg pin control
MyGh64605 750923e
dts: serial: Use pic32cxsg compatiable for sercom
MyGh64605 9608226
drivers: serial: microchip Addition of pic32cxsg serial
MyGh64605 daa9f91
boards: microchip Addition of pic32cxsg board
MyGh64605 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Microchip PIC32CXSG SERCOM configuration options | ||
|
|
||
| # Copyright (c) 2024 Microchip | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config UART_PIC32CXSG | ||
| bool "Microchip PIC32CXSG series SERCOM USART driver" | ||
| default y | ||
| depends on DT_HAS_MICROCHIP_PIC32CXSG_UART_ENABLED | ||
| select SERIAL_HAS_DRIVER | ||
| select SERIAL_SUPPORT_INTERRUPT | ||
| help | ||
| This option enables the SERCOMx USART driver for Microchip PIC32CXSG MCUs. | ||
|
|
||
| config UART_PIC32CXSG_ASYNC | ||
| bool "Async UART support for Microchip PIC32CXSG series" | ||
| depends on UART_PIC32CXSG | ||
| depends on UART_ASYNC_API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| description: Microchip PIC32CXSG multi-protocol (UART, SPI, I2C) SERCOM unit | ||
|
|
||
| compatible: "microchip,pic32cxsg-sercom" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the devicetree binding, should be in the previous commit. |
||
|
|
||
| include: | ||
| - name: base.yaml | ||
| - name: atmel,assigned-clocks.yaml | ||
|
|
||
| properties: | ||
| reg: | ||
| required: true | ||
|
|
||
| interrupts: | ||
| required: true | ||
|
|
||
| clocks: | ||
| required: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| # Copyright (c) 2024 Microchip | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| description: Microchip PIC32CXSG SERCOM UART driver | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the devicetree binding, should be in the previous commit. |
||
|
|
||
| compatible: "microchip,pic32cxsg-uart" | ||
|
|
||
| include: | ||
| - name: uart-controller.yaml | ||
| - name: pinctrl-device.yaml | ||
| - name: atmel,assigned-clocks.yaml | ||
|
|
||
| properties: | ||
| reg: | ||
| required: true | ||
|
|
||
| interrupts: | ||
| required: true | ||
|
|
||
| clocks: | ||
| required: true | ||
|
|
||
| clock-names: | ||
| required: true | ||
|
|
||
| atmel,assigned-clocks: | ||
| required: true | ||
|
|
||
| atmel,assigned-clock-names: | ||
| required: true | ||
|
|
||
| rxpo: | ||
| type: int | ||
| required: true | ||
| description: | | ||
| Receive Data Pinout. An enumeration with the following values: | ||
| +-------+---------------+ | ||
| | Value | RX Pin | | ||
| +-------+---------------+ | ||
| | 0 | SERCOM_PAD[0] | | ||
| +-------+---------------+ | ||
| | 1 | SERCOM_PAD[1] | | ||
| +-------+---------------+ | ||
| | 2 | SERCOM_PAD[2] | | ||
| +-------+---------------+ | ||
| | 3 | SERCOM_PAD[3] | | ||
| +-------+---------------+ | ||
| txpo: | ||
| type: int | ||
| required: true | ||
| description: | | ||
| Transmit Data Pinout. An enumeration with values that depend on the | ||
| hardware being used. This controls both the transmit pins and if | ||
| hardware flow control is used. | ||
| PIC32CXSG: | ||
| +-------+---------------+---------------+---------------+ | ||
| | Value | TX Pin | RTS | CTS | | ||
| +-------+---------------+---------------+---------------+ | ||
| | 0 | SERCOM_PAD[0] | N/A | N/A | | ||
| +-------+---------------+---------------+---------------+ | ||
| | 1 | Reserved | | ||
| +-------+---------------+---------------+---------------+ | ||
| | 2 | SERCOM_PAD[0] | SERCOM_PAD[2] | SERCOM_PAD[3] | | ||
| +-------+---------------+---------------+---------------+ | ||
| | 3 | SERCOM_PAD[0] | SERCOM_PAD[2] | N/A | | ||
| +-------+---------------+---------------+---------------+ | ||
| collision-detection: | ||
| type: boolean | ||
| description: Enable collision detection for half-duplex mode. | ||
|
|
||
| dmas: | ||
| description: | | ||
| Optional TX & RX dma specifiers. Each specifier will have a phandle | ||
| reference to the dmac controller, the channel number, and peripheral | ||
| trigger source. | ||
| For example dmas for TX, RX on SERCOM3 | ||
| dmas = <&dmac 0 0xb>, <&dmac 0 0xa>; | ||
| dma-names: | ||
| description: | | ||
| Required if the dmas property exists. This should be "tx" and "rx" | ||
| to match the dmas property. | ||
| For example | ||
| dma-names = "tx", "rx"; | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 driver support only one binding at moment.
zephyr/drivers/serial/uart_sam0.c
Line 8 in aa6f87d