Skip to content

include: dt-bindings: fix and extend the ch32v00x pinctrl definitions #90814

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

nzmichaelh
Copy link
Collaborator

These were wrong and incomplete. Rebuild based on section 7.2.11 of the CH32V00XRM.

@nzmichaelh
Copy link
Collaborator Author

I'll wait on #90243 which has a similar update for SPI.

@nzmichaelh nzmichaelh marked this pull request as ready for review May 29, 2025 18:18
@github-actions github-actions bot requested a review from gmarull May 29, 2025 18:18
@nzmichaelh nzmichaelh requested a review from VynDragon May 29, 2025 18:30
VynDragon
VynDragon previously approved these changes May 29, 2025
@nzmichaelh
Copy link
Collaborator Author

I noticed a few issues with the PR - there were duplicate blocks due to the CH32V007 vs all other CH32V00x, and bugs in the I2C and SPI references.

I'll patch in #90690 and manually run Twister.

@nzmichaelh
Copy link
Collaborator Author

./scripts/twister -j3 -b --vendor wch --platform ch32v006evt/ch32v006 is clean.

VynDragon
VynDragon previously approved these changes May 30, 2025
#define I2C1_SDA_PC1_0 CH32V00X_PINMUX_DEFINE(PC, 1, I2C1, 0)
#define I2C1_SDA_PD0_1 CH32V00X_PINMUX_DEFINE(PD, 0, I2C1, 1)
#define I2C1_SDA_PC6_2 CH32V00X_PINMUX_DEFINE(PC, 6, I2C1, 2)
/* CH32V007 specific remap */
#define I2C1_SDA_PC4_2 CH32V00X_PINMUX_DEFINE(PC, 4, I2C, 2)
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
#define I2C1_SDA_PC4_2 CH32V00X_PINMUX_DEFINE(PC, 4, I2C, 2)
#define I2C1_SDA_PC4_2 CH32V00X_PINMUX_DEFINE(PC, 4, I2C1, 2)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, done.

@nzmichaelh nzmichaelh force-pushed the fix-pinctrl branch 2 times, most recently from 342e22f to cbef71c Compare June 25, 2025 17:26
@nzmichaelh nzmichaelh requested a review from kartben June 25, 2025 17:26
These were wrong and incomplete. Rebuild based on section 7.2.11 of
the CH32V00XRM and added the CH32V007-only remaps.

Signed-off-by: Michael Hope <[email protected]>
@kartben kartben requested a review from VynDragon June 25, 2025 17:31
Copy link

@dkalowsk dkalowsk merged commit a8375c9 into zephyrproject-rtos:main Jun 26, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants