dts: nrf: Add DPPIC to device tree.

Add DPPIC to dts. Add HAS_HW_NRF_DPPIC to nrf91 soc.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
This commit is contained in:
Mieszko Mierunski 2019-02-07 11:04:08 +01:00 committed by Anas Nashif
commit 7700322961
7 changed files with 49 additions and 2 deletions

View file

@ -29,6 +29,13 @@ adc: adc@e000 {
label = "ADC_0";
};
dppic: dppic@17000 {
compatible = "nordic,nrf-dppic";
reg = <0x17000 0x1000>;
status = "ok";
label = "DPPIC";
};
uart0: uart@8000 {
compatible = "nordic,nrf-uarte";
reg = <0x8000 0x1000>;

View file

@ -0,0 +1,27 @@
#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: Nordic DPPIC
version: 0.1
description: >
Binding for the Nordic DPPIC
Distributed Programmable Peripheral Interconnect Controller
properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nordic,nrf-dppic"
generation: define
reg:
type: array
category: required
description: mmio register space
generation: define
...

View file

@ -31,6 +31,7 @@ if(CONFIG_HAS_NRFX)
zephyr_sources_ifdef(CONFIG_NRFX_ADC nrfx/drivers/src/nrfx_adc.c)
zephyr_sources_ifdef(CONFIG_NRFX_CLOCK nrfx/drivers/src/nrfx_clock.c)
zephyr_sources_ifdef(CONFIG_NRFX_DPPI nrfx/drivers/src/nrfx_dppi.c)
zephyr_sources_ifdef(CONFIG_NRFX_GPIOTE nrfx/drivers/src/nrfx_gpiote.c)
zephyr_sources_ifdef(CONFIG_NRFX_NFCT nrfx/drivers/src/nrfx_nfct.c)
zephyr_sources_ifdef(CONFIG_NRFX_PPI nrfx/drivers/src/nrfx_ppi.c)

View file

@ -19,6 +19,9 @@ config NRFX_ADC
config NRFX_CLOCK
bool
config NRFX_DPPI
bool
config NRFX_GPIOTE
bool

View file

@ -46,6 +46,11 @@
((NRF_CLOCK_Type *)DT_NORDIC_NRF_CLOCK_CLOCK_BASE_ADDRESS)
#endif
#ifdef DT_NORDIC_NRF_DPPIC_0_BASE_ADDRESS
#define NRF_DPPIC \
((NRF_DPPIC_Type *)DT_NORDIC_NRF_DPPIC_0_BASE_ADDRESS)
#endif
#ifdef DT_NORDIC_NRF_FICR_FICR_BASE_ADDRESS
#define NRF_FICR \
((FICR_INFO_Type *)DT_NORDIC_NRF_FICR_FICR_BASE_ADDRESS)
@ -284,8 +289,8 @@
// <e> NRFX_DPPI_ENABLED - nrfx_dppi - DPPI allocator.
//==========================================================
#ifndef NRFX_DPPI_ENABLED
#define NRFX_DPPI_ENABLED 0
#ifdef CONFIG_NRFX_DPPI
#define NRFX_DPPI_ENABLED 1
#endif
// <e> NRFX_DPPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================

View file

@ -26,6 +26,9 @@ config HAS_HW_NRF_CLOCK
config HAS_HW_NRF_COMP
bool
config HAS_HW_NRF_DPPIC
bool
config HAS_HW_NRF_ECB
bool

View file

@ -10,6 +10,7 @@ config SOC_NRF9160
bool
select HAS_HW_NRF_CC310
select HAS_HW_NRF_CLOCK
select HAS_HW_NRF_DPPIC
select HAS_HW_NRF_EGU0
select HAS_HW_NRF_EGU1
select HAS_HW_NRF_EGU2