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

FE310-based boards: transition from pinmux to pinctrl #44068

Merged

Conversation

fkokosinski
Copy link
Member

This pull request contains the following changes as part of the effort in #39740:

  • introduction of the new pinctrl driver for FE310-based boards
  • modifications of the existing drivers used in FE310-based boards so that they use the pinctrl API
  • binding changes
  • removal of the obsolete pinmux counterpart

Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, I have a few comments (some non-blocking)

drivers/pinctrl/Kconfig.sifive Show resolved Hide resolved
boards/riscv/hifive1/hifive1-pinctrl.dtsi Show resolved Hide resolved
boards/riscv/hifive1/hifive1_defconfig Outdated Show resolved Hide resolved
dts/bindings/spi/sifive,spi0.yaml Outdated Show resolved Hide resolved
boards/riscv/hifive1/hifive1_defconfig Outdated Show resolved Hide resolved
@gmarull gmarull mentioned this pull request Mar 22, 2022
29 tasks
@fkokosinski fkokosinski force-pushed the 32799-pinmux-pinctrl-sifive branch 2 times, most recently from 395c6a8 to 555cf7d Compare March 22, 2022 13:36
@zephyrbot zephyrbot added area: Pinctrl area: UART Universal Asynchronous Receiver-Transmitter area: Pinmux area: RISCV RISCV Architecture (32-bit & 64-bit) labels Mar 22, 2022
@fkokosinski fkokosinski force-pushed the 32799-pinmux-pinctrl-sifive branch 2 times, most recently from 9cf1682 to a0de5bf Compare March 23, 2022 09:51
@fkokosinski fkokosinski force-pushed the 32799-pinmux-pinctrl-sifive branch 3 times, most recently from 61109a4 to 75df85d Compare March 23, 2022 13:45
drivers/pinctrl/pinctrl_sifive.c Outdated Show resolved Hide resolved
drivers/serial/uart_sifive.c Show resolved Hide resolved
Add a pinctrl driver used in FE310-based boards.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
Add pinctrl configuration for future use with the new pinctrl driver.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
Add pinctrl configuration for future use with the new pinctrl driver.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
Add pinctrl configuration for future use with the new pinctrl driver.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit makes the transition from the pinmux driver to the pinctrl
driver. It also modifies UART, SPI and I2C drivers used in FE310-based
boards to use the new pinctrl API.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
After transitioning to the new pinctrl driver, it is now obsolete.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit fixes the default value of SYS_CLOCK_HW_CYCLES_PER_SEC
option. The previous value of 32768 is not consistent with the
documentation of FE310 SoC. Only FE310-based boards rely on the default
value of this option; other boards from the Freedom series define it
themselves.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
@carlescufi carlescufi merged commit 8388bb7 into zephyrproject-rtos:main Mar 24, 2022
@tgorochowik tgorochowik deleted the 32799-pinmux-pinctrl-sifive branch March 24, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Boards area: Devicetree Binding PR modifies or adds a Device Tree binding area: Devicetree area: Pinctrl area: Pinmux area: PWM Pulse Width Modulation area: RISCV RISCV Architecture (32-bit & 64-bit) area: SPI SPI bus area: UART Universal Asynchronous Receiver-Transmitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants