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

Drivers for NXP SC18IS604 SPI to I2C/GPIO bridge #249

Merged
merged 7 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/bridle/releases/release-notes-3.7.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ These GitHub issues were addressed since project bootstrapping:

* :github:`254` - [FCR] Bump to Zephyr v3.7
* :github:`252` - [FCR] Upgrade to Zephyr SDK 0.16.8
* :github:`247` - [HW] NXP SC18IS604 SPI to I2C bridge
* :github:`244` - [HW] Spotpear Raspberry Pi Pico LCD Modules as Shields
* :github:`242` - [HW] 52Pi (GeeekPi) Pico Breadboard Kit -/Plus (EP-0164/0172)
* :github:`239` - [HW] PiMoroni Raspberry Pi Pico LCD Modules as Shields
Expand Down
1 change: 1 addition & 0 deletions drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

add_subdirectory_ifdef(CONFIG_DISPLAY display)
add_subdirectory_ifdef(CONFIG_GPIO gpio)
add_subdirectory_ifdef(CONFIG_I2C i2c)
add_subdirectory_ifdef(CONFIG_MFD mfd)
add_subdirectory_ifdef(CONFIG_RTC rtc)
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
1 change: 1 addition & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ menu "Device Drivers"

rsource "display/Kconfig"
rsource "gpio/Kconfig"
rsource "i2c/Kconfig"
rsource "mfd/Kconfig"
rsource "rtc/Kconfig"
rsource "sensor/Kconfig"
Expand Down
9 changes: 5 additions & 4 deletions drivers/gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright (c) 2021-2023 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

# Add to the existing gpio library from zephyr instead of defining our own.
# It is actually required to add GPIO drivers to that library, otherwise
# build errors can occur!
zephyr_library_amend()

zephyr_library_sources_ifdef(CONFIG_GPIO_PCA9554 gpio_pca9554.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA9555 gpio_pca9555.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SIPOMUX gpio_sipomux.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA9554 gpio_pca9554.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA9555 gpio_pca9555.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SC18IS604 gpio_sc18is604.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_SIPOMUX gpio_sipomux.c)
3 changes: 2 additions & 1 deletion drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright (c) 2021-2023 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

if GPIO

rsource "Kconfig.pca9554"
rsource "Kconfig.pca9555"
rsource "Kconfig.sc18is604"
rsource "Kconfig.sipomux"

endif # GPIO
17 changes: 17 additions & 0 deletions drivers/gpio/Kconfig.sc18is604
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

menuconfig GPIO_SC18IS604
bool "GPIO controller part of an SC18IM604 bridge"
default y
depends on DT_HAS_NXP_SC18IS604_GPIO_ENABLED
depends on MFD_SC18IS604
help
Enable driver for GPIO controller part of an SC18IM604 bridge.

config GPIO_SC18IS604_INIT_PRIORITY
int "Init priority"
default 85
depends on GPIO_SC18IS604
help
Device driver initialization priority.
Loading
Loading