Skip to content

Commit 215cdc7

Browse files
Yuriy Vynnychekcfriedt
authored andcommitted
drivers: gpio: introduce new Telink B91 GPIO driver
GPIO driver basic support for new Telink B91 platform. Signed-off-by: Yuriy Vynnychek <[email protected]>
1 parent 64a3083 commit 215cdc7

File tree

6 files changed

+595
-0
lines changed

6 files changed

+595
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
/drivers/flash/ @nashif @nvlsianpu
222222
/drivers/flash/*nrf* @nvlsianpu
223223
/drivers/gpio/ @mnkp
224+
/drivers/gpio/*b91* @yurvyn
224225
/drivers/gpio/*lmp90xxx* @henrikbrixandersen
225226
/drivers/gpio/*stm32* @erwango
226227
/drivers/gpio/*eos_s3* @wtatarski @kowalewskijan @kgugala

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
zephyr_library()
44

5+
zephyr_library_sources_ifdef(CONFIG_GPIO_TELINK_B91 gpio_b91.c)
56
zephyr_library_sources_ifdef(CONFIG_GPIO_CC13XX_CC26XX gpio_cc13xx_cc26xx.c)
67
zephyr_library_sources_ifdef(CONFIG_GPIO_CC32XX gpio_cc32xx.c)
78
zephyr_library_sources_ifdef(CONFIG_GPIO_CMSDK_AHB gpio_cmsdk_ahb.c)

drivers/gpio/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ config GPIO_SHELL
2121
help
2222
Enable GPIO Shell for testing.
2323

24+
source "drivers/gpio/Kconfig.b91"
25+
2426
source "drivers/gpio/Kconfig.dw"
2527

2628
source "drivers/gpio/Kconfig.pca95xx"

drivers/gpio/Kconfig.b91

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2021 Telink Semiconductor
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Telink B91 GPIO configuration options
5+
6+
config GPIO_TELINK_B91
7+
bool "Telink B91 GPIO driver"
8+
depends on SOC_RISCV_TELINK_B91
9+
help
10+
Enable the B91 GPIO driver.

0 commit comments

Comments
 (0)