-
Notifications
You must be signed in to change notification settings - Fork 7.3k
boards: arm: Add adafruit_kb2040 board #51098
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
boards: arm: Add adafruit_kb2040 board #51098
Conversation
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.
A few nitpicks. Also, if the board.cmake
file is not used (since there's currently no west configuration for it as west does not support MSC), I think it can be omitted. Regarding the sparkfun_pro_micro
- I see there's a board of that name. Is it also a name of a standard pinout? Or does this port support both boards? Maybe the file should be renamed to sparkfun_pro_micro_connector.dtsi
?
5f6a6fc
to
1bf4efd
Compare
It's a board, but one that's AVR, so won't ever run Zephyr. Renamed the include for completeness. We use the generic header/interconnect extensively in ZMK since there are so many keyboards that use the pro micro footprint. Thanks for the thorough review! |
LGTM, will approve when CI passes |
1bf4efd
to
0366b9d
Compare
8ffe65d
to
15e4be9
Compare
@yonsch Found and fixed the remaining CI issues. |
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.
Looks good. However, please split out the commits. The new DTS binding, which is not specific to the board, should go into its own commit. Same goes for the change to the ADC test.
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000 | ||
|
||
# Enable GPIO | ||
CONFIG_GPIO=y |
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.
Is GPIO needed for basic operation of this board? If not, GPIO should not be enabled by default.
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.
Done, but I'm curious, is this really applied consistently across Zephyr? I see tons of boards with this enabled by default. What triggers this being enabled or not by default? Onboard GPIO keys/buttons? Something else?
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.
If the board requires GPIO in order to boot and use the console (e.g. if it has a GPIO controlled regulator, which needs to be turned on), GPIO should be enabled by default. Otherwise not. And yet, we do have a lot of boards enabling GPIO by default where it is not needed.
Add SparkFun (https://www.sparkfun.com/) vendor prefix. Signed-off-by: Peter Johanson <[email protected]>
Add SparkFun Pro Micro header connector that is implemented by many other controllers. This allows hardware with compatible headers to define the related GPIOs and peripherals. Signed-off-by: Peter Johanson <[email protected]>
Add `adafruit_kb2040` board with `sparkfun,pro-micro` header. Signed-off-by: Peter Johanson <[email protected]>
Fix ADC tests now that we have more than one RP2040 board. Signed-off-by: Peter Johanson <[email protected]>
15e4be9
to
de7223a
Compare
@henrikbrixandersen Split the commits, including an extra one just for the new vendor prefix for SparkFun as well. |
Add
adafruit_kb2040
board withsparkfun,pro-micro
header.Signed-off-by: Peter Johanson [email protected]