zephyr/drivers/i2c/Kconfig.nrf5
Aapo Vienamo 422bc240b4 soc: nrf5: Use i2c configure options generated from dts
SoC dts fixups are added and the i2c_nrf5 driver is modified to use
the values generated from the device tree.

The I2C_*_DEFAULT_CFG and I2C_*_IRQ_PRI options are removed from board
defconfigs. Bitrate and IRQ priority are configured using using the
device tree instead.

HAS_DTS_I2C is selected on all nrf5 boards to prevent generation of
conflicting defines from Kconfig.

Signed-off-by: Aapo Vienamo <aapo.vienamo@iki.fi>
2018-03-13 14:14:13 +01:00

59 lines
947 B
Plaintext

# Kconfig.nrf5 - NRF5 I2C configuration options
#
#
# Copyright (c) 2018 Aapo Vienamo
#
# SPDX-License-Identifier: Apache-2.0
#
config I2C_NRF5
bool "NRF5 I2C driver"
depends on SOC_FAMILY_NRF5
select GPIO
select HAS_DTS_I2C
default n
help
This option enables the I2C driver for Nordic Semiconductor nRF5
family processors.
if I2C_NRF5
if I2C_0
config I2C_NRF5_0_GPIO_SDA_PIN
int "Port 0 SDA Pin Number"
range 0 31
depends on I2C_NRF5
help
The GPIO pin to use for SDA.
config I2C_NRF5_0_GPIO_SCL_PIN
int "Port 0 SCL Pin Number"
range 0 31
depends on I2C_NRF5
help
The GPIO pin to use for SCL.
endif # I2C_0
if I2C_1
config I2C_NRF5_1_GPIO_SDA_PIN
int "Port 1 SDA Pin Number"
range 0 31
depends on I2C_NRF5
help
The GPIO pin to use for SDA.
config I2C_NRF5_1_GPIO_SCL_PIN
int "Port 1 SCL Pin Number"
range 0 31
depends on I2C_NRF5
help
The GPIO pin to use for SCL.
endif # I2C_1
endif # I2C_NRF5