Skip to content

Conversation

@benpicco
Copy link
Contributor

@benpicco benpicco commented Oct 23, 2019

This adds support for the Atmel SAM E54 Xplained Pro Evaluation Kit.

split off from #14685
depends on #20062 #20056 #20058
additional functionality depends on #20052 #20055 #20057 #21866

@benpicco benpicco added area: Boards platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) labels Oct 23, 2019
@benpicco benpicco requested a review from galak October 23, 2019 11:01
@zephyrbot zephyrbot added the area: Tests Issues related to a particular existing or missing test label Oct 23, 2019
@zephyrbot
Copy link

zephyrbot commented Oct 23, 2019

All checks are passing now.

checkpatch (informational only, not a failure)

-:61: WARNING:UNDOCUMENTED_DT_STRING: DT compatible string "atsame54,xpro" appears un-documented -- check ./dts/bindings/
#61: FILE: boards/arm/atsame54_xpro/atsame54_xpro.dts:12:
+	compatible = "atsame54,xpro", "atmel,same54p20a", "atmel,same54";

-:61: WARNING:UNDOCUMENTED_DT_STRING: DT compatible string vendor "atsame54" appears un-documented -- check ./dts/bindings/vendor-prefixes.txt
#61: FILE: boards/arm/atsame54_xpro/atsame54_xpro.dts:12:
+	compatible = "atsame54,xpro", "atmel,same54p20a", "atmel,same54";

-:61: WARNING:UNDOCUMENTED_DT_STRING: DT compatible string "atmel,same54p20a" appears un-documented -- check ./dts/bindings/
#61: FILE: boards/arm/atsame54_xpro/atsame54_xpro.dts:12:
+	compatible = "atsame54,xpro", "atmel,same54p20a", "atmel,same54";

-:61: WARNING:UNDOCUMENTED_DT_STRING: DT compatible string "atmel,same54" appears un-documented -- check ./dts/bindings/
#61: FILE: boards/arm/atsame54_xpro/atsame54_xpro.dts:12:
+	compatible = "atsame54,xpro", "atmel,same54p20a", "atmel,same54";

-:87: WARNING:LONG_LINE: line over 80 characters
#87: FILE: boards/arm/atsame54_xpro/atsame54_xpro.dts:38:
+			gpios = <&portb 31 (GPIO_PUD_PULL_UP | GPIO_INT_ACTIVE_LOW)>;

- total: 0 errors, 5 warnings, 556 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Your patch has style problems, please review.

NOTE: Ignored message types: AVOID_EXTERNS BRACES CONFIG_EXPERIMENTAL CONST_STRUCT DATE_TIME FILE_PATH_CHANGES MINMAX NETWORKING_BLOCK_COMMENT_STYLE PRINTK_WITHOUT_KERN_LEVEL SPLIT_STRING VOLATILE

NOTE: If any of the errors are false positives, please report
      them to the maintainers.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

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

doc change LGTM, thanks.

Copy link
Contributor

@galak galak left a comment

Choose a reason for hiding this comment

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

Can you shrink the images, they are huge (file size).

Does this only need the SoC PR, or do we need UART driver? GPIO driver? [ what's the minimal set of SoC + drivers to make the board code useful ].

@benpicco
Copy link
Contributor Author

benpicco commented Nov 6, 2019

Down to

808K ATSAME54-XPRO-pinout.png 
596K atsame54_xpro.png

If you just want to blink an LED, the SoC PR is enough.
The GPIO PR is about EXTI (and port D), basic GPIO functionality is the same as on samd2x.

UART would be nice of course. 😉

@galak
Copy link
Contributor

galak commented Nov 6, 2019

Down to

808K ATSAME54-XPRO-pinout.png 
596K atsame54_xpro.png

If you just want to blink an LED, the SoC PR is enough.
The GPIO PR is about EXTI (and port D), basic GPIO functionality is the same as on samd2x.

UART would be nice of course. 😉

Sent you on slack a much smaller image, take a look and see what you think.

@galak
Copy link
Contributor

galak commented Nov 7, 2019

@benpicco can you look at addressing the build issues / sanitycheck failures. If you want this in for 2.1 we need to resolve this by friday (Nov 8th).

@benpicco
Copy link
Contributor Author

benpicco commented Nov 7, 2019

I forgot to also move the flash and sram blocks in the samd5xx20.dtsi etc DTS files after moving it in samd5x.dts - this is fixed by #20420

Then the DTS processor will complain about the unknown lock regions property introduced by #20058 - you'll get past the config with this PR 😉

Then soc.h wants to include tc_fixup_samd5x.h which is introduced by #20056

With these three, hello_world compiles.

@benpicco benpicco requested a review from ioannisg as a code owner November 7, 2019 13:57
@ioannisg
Copy link
Member

ioannisg commented Nov 7, 2019

This adds support for the Atmel SAM E54 Xplained Pro Evaluation Kit.

split off from #14685
depends on #20062

#20062 is merged; update the description :)

Copy link
Member

@ioannisg ioannisg left a comment

Choose a reason for hiding this comment

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

The test file looks not relevant to the PR.
Some clean up of the Kconfig file headers is needed.
Looking good, otherwise

@benpicco benpicco force-pushed the same54-xpro branch 2 times, most recently from 014fac6 to fdacbef Compare November 7, 2019 15:45
@ioannisg ioannisg added the Release Notes To be mentioned in the release notes label Nov 7, 2019
@ioannisg ioannisg requested a review from galak November 7, 2019 16:03
@galak
Copy link
Contributor

galak commented Nov 7, 2019

@benpicco still major CI failures

@benpicco
Copy link
Contributor Author

benpicco commented Nov 8, 2019

@galak I removed references the not yet merged features.

@stephanosio stephanosio added this to the v2.2.0 milestone Nov 22, 2019
@benpicco
Copy link
Contributor Author

If the other PRs get merged before this, I will remove the last few commits here.

@stephanosio stephanosio self-requested a review December 11, 2019 13:57
@benpicco benpicco force-pushed the same54-xpro branch 2 times, most recently from 1db08fb to fab1a3d Compare January 14, 2020 16:20
@benpicco benpicco force-pushed the same54-xpro branch 2 times, most recently from 59c3484 to f4664db Compare January 23, 2020 12:53
@ioannisg
Copy link
Member

@benpicco can you address the checkpatch warnings?

@benpicco
Copy link
Contributor Author

@ioannisg I'm not sure how - I can't find documentation for the vendor strings in atsamd21_xpro.dts either - where should they go?

@ioannisg
Copy link
Member

@galak can you take a look?

@galak galak self-assigned this Jan 29, 2020
@benpicco benpicco requested a review from nashif as a code owner January 30, 2020 10:43
benpicco and others added 4 commits January 30, 2020 07:07
This adds support for the Atmel SAM E54 Xplained Pro Evaluation Kit.

Only basic functionality has been tested so far.

Signed-off-by: Benjamin Valentin <[email protected]>
The blocks were moved into the soc block in samd5x.dtsi,
so we also have to move them for the the actual SoC definitions
that inherit from that.

Signed-off-by: Benjamin Valentin <[email protected]>
`cortex_m/exc.h` is not needed anymore and ceased to exist.

Signed-off-by: Benjamin Valentin <[email protected]>
It's not needed anymore and causes build failures.

Signed-off-by: Benjamin Valentin <[email protected]>
@galak galak merged commit 6fd08da into zephyrproject-rtos:master Jan 30, 2020
@benpicco benpicco deleted the same54-xpro branch January 30, 2020 14:44
@benpicco
Copy link
Contributor Author

Thank you for the review & merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards area: Devicetree area: Tests Issues related to a particular existing or missing test platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants