Skip to content

Commit

Permalink
drivers: spi: Initial version of the Infineon CAT1 SPI driver
Browse files Browse the repository at this point in the history
Initial version of Infineon CAT1 SPI Driver supporting synchronous
and asynchronous data transfer API

Signed-off-by: Sreeram Tatapudi <[email protected]>
  • Loading branch information
sreeramIfx authored and carlescufi committed Sep 12, 2023
1 parent 5b12b6a commit fd04f8c
Show file tree
Hide file tree
Showing 9 changed files with 482 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/cy8cproto_063_ble/cy8cproto_063_ble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ supported:
- uart
- i2c
- watchdog
- spi
3 changes: 3 additions & 0 deletions boards/arm/cy8cproto_063_ble/cy8cproto_063_ble_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ CONFIG_SERIAL=y
# Enable pin controller
CONFIG_PINCTRL=y

# Enable GPIO
CONFIG_GPIO=y

# Enable clock controller
CONFIG_CLOCK_CONTROL=y

Expand Down
1 change: 1 addition & 0 deletions drivers/spi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ zephyr_library_sources_ifdef(CONFIG_MSPI_AMBIQ mspi_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RTIO spi_rtio.c)
zephyr_library_sources_ifdef(CONFIG_SPI_ASYNC spi_signal.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE spi_handlers.c)
zephyr_library_sources_ifdef(CONFIG_SPI_INFINEON_CAT1 spi_ifx_cat1.c)
2 changes: 2 additions & 0 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,6 @@ source "drivers/spi/Kconfig.ambiq"

source "drivers/spi/Kconfig.rpi_pico"

source "drivers/spi/Kconfig.ifx_cat1"

endif # SPI
12 changes: 12 additions & 0 deletions drivers/spi/Kconfig.ifx_cat1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Infineon CAT1 SPI configuration options

# Copyright (c) 2022 Cypress Semiconductor Corporation.
# SPDX-License-Identifier: Apache-2.0

config SPI_INFINEON_CAT1
bool "Infineon CAT1 SPI driver"
default y
depends on DT_HAS_INFINEON_CAT1_SPI_ENABLED
select USE_INFINEON_SPI
help
This option enables the SPI driver for Infineon CAT1 family.
Loading

0 comments on commit fd04f8c

Please sign in to comment.