Skip to content
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

ev11l78a: initial import of the UPD301C Basic Sink board. #61140

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

Flameeyes
Copy link
Contributor

This board is a relatively inexpensive development kit for USB-PD
controllers, using an UPD301C controller.

This Zephyr config includes support for the UART (present on the debug
header of the board), and for the one simple LED (CAP_MIS), both tested
with hello_world and blinky respectively.

Please note that this initial import does not include any other feature
of the board, so no other interaction is available.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Flameeyes, and thank you very much for your first pull request to the Zephyr project!

A project maintainer just triggered our CI pipeline to run it against your PR and ensure it's compliant and doesn't cause any issues. You might want to take this opportunity to review the project's Contributor Expectations and make any updates to your pull request if necessary. 😊

boards/arm/ev11l78a/doc/index.rst Show resolved Hide resolved
@@ -0,0 +1,10 @@
identifier: ev11l78a
name: UPC301C Basic Sink Application Example
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: UPC301C Basic Sink Application Example
name: UPD301C Basic Sink Application Example

Overview
********

The UPD301C Basic Sink Application Example Evaluation Kit is a
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The UPD301C Basic Sink Application Example Evaluation Kit is a
The UPD301C Basic Sink Application Example Evaluation Kit (EV11L78A) is a

********

- ATSAMD20E16 ARM Cortex-M0+ processor at 48 MHz
- UPD301C combines a SAMD20 core and a UPD350 USB-PD controller.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: either end all bullet list items with ., or none

boards/arm/ev11l78a/ev11l78a.yaml Show resolved Hide resolved
boards/arm/ev11l78a/ev11l78a.dts Outdated Show resolved Hide resolved
boards/arm/ev11l78a/ev11l78a-pinctrl.dtsi Show resolved Hide resolved
boards/arm/ev11l78a/ev11l78a.dts Show resolved Hide resolved
@zephyrbot zephyrbot added the area: ADC Analog-to-Digital Converter (ADC) label Aug 4, 2023
@zephyrbot zephyrbot requested a review from anangl August 4, 2023 15:42
@Flameeyes Flameeyes force-pushed the ev11l78a branch 2 times, most recently from 38779f7 to 3ad234b Compare August 6, 2023 21:24
@zephyrbot zephyrbot added the area: UART Universal Asynchronous Receiver-Transmitter label Aug 6, 2023
@zephyrbot zephyrbot requested a review from dcpleung August 6, 2023 21:24
@@ -20,6 +20,7 @@ common:
- wio_terminal
- xiao_esp32c3
- atsamd20_xpro
- ev11l78a
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exclusion won't be needed if #61193 makes it to the tree before this pull request.

:align: center
:alt: EV11L78A

UPD301C Basic Sink Application Example (Credit: Micropchip Technology)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/runner/_work/zephyr/zephyr/doc/_build/src/boards/arm/ev11l78a/doc/index.rst:15: ERROR: Error in "image" directive:
no content permitted.

.. image:: ../../../../../../../boards/arm/ev11l78a/doc/img/ev11l78a.jpg
     :align: center
     :alt: EV11L78A

   UPD301C Basic Sink Application Example (Credit: Micropchip Technology)

I think this line is not indented correctly? The error sound funny

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation was correct, but only figure:: accept contents (the description of the figure), and this originally used image::

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I eventually found that out — I plan on taking the various suggestions from this pull request and see to update at least atsamd20_xpro (which I used as source for most of it) to follow the same style.

@Flameeyes Flameeyes force-pushed the ev11l78a branch 7 times, most recently from 577cdd2 to be9e7f4 Compare August 7, 2023 14:30
CONFIG_GPIO=y
CONFIG_SOC_ATMEL_SAMD_OSC8M=y
CONFIG_SOC_ATMEL_SAMD_OSC8M_AS_MAIN=y
CONFIG_ADC=y
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably not be here, but rather be enabled by specific samples or applications requiring the ADC.

fabiobaltieri
fabiobaltieri previously approved these changes Aug 7, 2023
Copy link
Member

@fabiobaltieri fabiobaltieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boards/arm/ev11l78a/doc/index.rst Outdated Show resolved Hide resolved
boards/arm/ev11l78a/doc/index.rst Outdated Show resolved Hide resolved
boards/arm/ev11l78a/doc/index.rst Outdated Show resolved Hide resolved
Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM!

boards/arm/ev11l78a/ev11l78a_defconfig Outdated Show resolved Hide resolved
kartben
kartben previously approved these changes Aug 8, 2023
This board is a relatively inexpensive development kit for USB-PD
controllers, using an UPD301C controller.

This Zephyr config includes support for:

 * UART (present on he debug header of the board), tested with the
   hello_world sample application;
 * the one standalone LED (CAP_MIS), tested with the blinky sample
   application;
 * the rotary encoder (PDO_SEL), via ADC, tested with the adc sample
   application;
 * the current sense amplifier (I_SENSE), currently untested;
 * the SPI bus, connected internally in the UPD301C to the UPD350;
 * the I2C bus, exposed on the debug header, currently untested.

Note that the drivers.uart.async_api.rtt has to be disabled, as it is
for other m0 boards with no dma or it fails to build.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
@fabiobaltieri fabiobaltieri merged commit 762a1f8 into zephyrproject-rtos:main Aug 8, 2023
16 checks passed
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Flameeyes!
Congratulations on getting your very first Zephyr pull request merged 🎉🥳. This is a fantastic achievement, and we're thrilled to have you as part of our community!

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! 🪁

@Flameeyes Flameeyes deleted the ev11l78a branch August 8, 2023 21:41
Flameeyes added a commit to Flameeyes/zephyr that referenced this pull request Aug 12, 2023
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in zephyrproject-rtos#61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
Flameeyes added a commit to Flameeyes/zephyr that referenced this pull request Aug 12, 2023
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in zephyrproject-rtos#61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
Flameeyes added a commit to Flameeyes/zephyr that referenced this pull request Aug 15, 2023
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in zephyrproject-rtos#61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
carlescufi pushed a commit that referenced this pull request Aug 16, 2023
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in #61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
meshium pushed a commit to meshium/zephyr that referenced this pull request Aug 16, 2023
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in zephyrproject-rtos#61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
npal-cy pushed a commit to npal-cy/zephyr-1 that referenced this pull request Oct 3, 2023
This updates the configurations for these two boars to match the expected
best practices for new boards, as discussed in zephyrproject-rtos#61140.

Signed-off-by: Diego Elio Pettenò <flameeyes@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) area: UART Universal Asynchronous Receiver-Transmitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants