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:
parent
35aedfa532
commit
7700322961
7 changed files with 49 additions and 2 deletions
|
@ -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>;
|
||||
|
|
27
dts/bindings/arm/nordic,nrf-dppic.yaml
Normal file
27
dts/bindings/arm/nordic,nrf-dppic.yaml
Normal 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
|
||||
...
|
|
@ -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)
|
||||
|
|
|
@ -19,6 +19,9 @@ config NRFX_ADC
|
|||
config NRFX_CLOCK
|
||||
bool
|
||||
|
||||
config NRFX_DPPI
|
||||
bool
|
||||
|
||||
config NRFX_GPIOTE
|
||||
bool
|
||||
|
||||
|
|
|
@ -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.
|
||||
//==========================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue