Skip to content

Conversation

@dsch
Copy link
Contributor

@dsch dsch commented Jun 30, 2025

This board is available with 4MB and 16MB flash.

Comment on lines 6 to 8
- name: rp2040
variants:
- name: "16m"
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not a board variant, this is a board revision, switch to board revision

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this a revision, not a variant? https://docs.zephyrproject.org/latest/hardware/porting/board_porting.html#multiple-board-revisions seems very geared to what I think of as a revision, e.g "Revision A" "1.2.3" .

It feels very variant-y to me, what am I missing here?

Copy link
Contributor

Choose a reason for hiding this comment

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

As per https://docs.zephyrproject.org/latest/glossary.html#term-variant and https://docs.zephyrproject.org/latest/glossary.html#term-board-revision variant is for a different configuration of the same hardware so if you can run code from RAM or flash or external flash which are all on a dev board then they would be variants but if you need a different board entirely then it would be a revision

@soburi soburi added the platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) label Jun 30, 2025
@dsch dsch force-pushed the rp2040_plus_16m branch from b1b6946 to d0a1e18 Compare June 30, 2025 11:46
@sonarqubecloud
Copy link

nordicjm
nordicjm previously approved these changes Jul 2, 2025
@dsch
Copy link
Contributor Author

dsch commented Jul 23, 2025

@ajf58 you asked in #89527 (comment) to address the 4MB/16MB variants for the RP2040-Plus board. This PR implements this as two revisions.

Would you be so kind and have a look at this PR?

Copy link
Contributor

@ajf58 ajf58 left a comment

Choose a reason for hiding this comment

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

Sorry, I know it results in a lot of copy paste (feels a bit gross), but I feel like this might be a more Zephyr-like approach.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think I can do a multi-line suggestion, but I think the more Zephyr-y way of doing this would be to define multiple boards here. Like this:

boards:
  - name: rp2040_plus
    full_name: RP2040-Plus
    vendor: waveshare
    socs:
    - name: rp2040

  - name: rp2040_plus_16m
    full_name: RP2040-Plus-16MB
    vendor: waveshare
    socs:
    - name: rp2040

This would mean the full_name in Zephyr == Part Number at https://www.waveshare.com/rp2040-plus.htm?sku=23503 and https://www.waveshare.com/rp2040-plus.htm?sku=20290

@dsch dsch force-pushed the rp2040_plus_16m branch from d0a1e18 to e73a481 Compare August 4, 2025 08:08
@dsch dsch changed the title boards: waveshare: rp2040_plus: add 16M flash variant boards: waveshare: rp2040_plus: add 16M flash board Aug 4, 2025
The RP2040-Plus board with 16MB has a dedicated part number which
makes it a dedicated board.

Signed-off-by: David Schneider <[email protected]>
@dsch dsch force-pushed the rp2040_plus_16m branch from e73a481 to fcc0a29 Compare August 4, 2025 08:16
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2025

@dsch dsch requested a review from ajf58 August 11, 2025 15:11
@dsch dsch requested a review from nordicjm August 26, 2025 07:53
Comment on lines 4 to 10
config BOARD_RP2040_PLUS
bool
select RP2_FLASH_W25Q080

config BOARD_RP2040_PLUS_16MB
bool
select RP2_FLASH_W25Q080
Copy link
Contributor

Choose a reason for hiding this comment

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

can't be adding bool to these symbols, will have to do a workaround similar to:

config BOARD_HAS_W25Q080
	bool
	default y if BOARD_RP2040_PLUS || BOARD_RP2040_PLUS_16MB
	select RP2_FLASH_W25Q080

though this still doesn't make sense as the w25q080 is an 8Mbit part?

@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Oct 26, 2025
@github-actions github-actions bot closed this Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants