arm: dts: nrf: Add Device Tree Support for nRF52832 SoC based boards
Add device tree support for Nitrogen 96board, BLE Nano 2, and nRF52-PCA10040 DK boards. This is minimal support for memory, flash, and UART. For the nRF52832 we select between "nordic,nrf-uarte", "nordic,nrf-uart" support for each board. Change-Id: Ia247b9b710a72416e9ab0de3ca1429bfab8917f8 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
2e20577554
commit
54b800f31e
10 changed files with 99 additions and 0 deletions
|
@ -17,3 +17,6 @@ CONFIG_GPIO_AS_PINRESET=y
|
|||
# bluetooth
|
||||
CONFIG_BLUETOOTH=y
|
||||
CONFIG_BLUETOOTH_CONTROLLER=y
|
||||
|
||||
#enable DTS
|
||||
CONFIG_HAS_DTS=y
|
||||
|
|
|
@ -15,3 +15,6 @@ CONFIG_UART_CONSOLE=y
|
|||
# bluetooth
|
||||
CONFIG_BLUETOOTH=y
|
||||
CONFIG_BLUETOOTH_CONTROLLER=y
|
||||
|
||||
#enable DTS
|
||||
CONFIG_HAS_DTS=y
|
||||
|
|
|
@ -18,3 +18,6 @@ CONFIG_GPIO_AS_PINRESET=y
|
|||
# bluetooth
|
||||
CONFIG_BLUETOOTH=y
|
||||
CONFIG_BLUETOOTH_CONTROLLER=y
|
||||
|
||||
#enable DTS
|
||||
CONFIG_HAS_DTS=y
|
||||
|
|
26
dts/arm/96b_nitrogen.dts
Normal file
26
dts/arm/96b_nitrogen.dts
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf52832.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Seeed Studio Nitrogen 96board";
|
||||
compatible = "seeed,nitrogen", "nordic,nrf52832-qfaa",
|
||||
"nordic,nrf52832";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <115200>;
|
||||
status = "ok";
|
||||
};
|
3
dts/arm/96b_nitrogen.fixup
Normal file
3
dts/arm/96b_nitrogen.fixup
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
|
@ -18,6 +18,9 @@ dtb-$(CONFIG_BOARD_STM3210C_EVAL) = stm3210c_eval.dts_compiled
|
|||
dtb-$(CONFIG_BOARD_STM32_MINI_A15) = stm32_mini_a15.dts_compiled
|
||||
dtb-$(CONFIG_BOARD_NUCLEO_F334R8) = nucleo_f334r8.dts_compiled
|
||||
dtb-$(CONFIG_BOARD_STM32373C_EVAL) = stm32373c_eval.dts_compiled
|
||||
dtb-$(CONFIG_BOARD_96B_NITROGEN) = 96b_nitrogen.dts_compiled
|
||||
dtb-$(CONFIG_BOARD_NRF52_PCA10040) = nrf52_pca10040.dts_compiled
|
||||
dtb-$(CONFIG_BOARD_NRF52_BLENANO2) = nrf52_blenano2.dts_compiled
|
||||
|
||||
always := $(dtb-y)
|
||||
endif
|
||||
|
|
26
dts/arm/nrf52_blenano2.dts
Normal file
26
dts/arm/nrf52_blenano2.dts
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf52832.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Redbear BLE Nano 2";
|
||||
compatible = "redbear,blenano2", "nordic,nrf52832-qfaa",
|
||||
"nordic,nrf52832";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <115200>;
|
||||
status = "ok";
|
||||
};
|
3
dts/arm/nrf52_blenano2.fixup
Normal file
3
dts/arm/nrf52_blenano2.fixup
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
26
dts/arm/nrf52_pca10040.dts
Normal file
26
dts/arm/nrf52_pca10040.dts
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf52832.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Nordic PCA10040 Dev Kit";
|
||||
compatible = "nordic,pca10040-dk", "nordic,nrf52832-qfaa",
|
||||
"nordic,nrf52832";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "ok";
|
||||
compatible = "nordic,nrf-uart";
|
||||
current-speed = <115200>;
|
||||
};
|
3
dts/arm/nrf52_pca10040.fixup
Normal file
3
dts/arm/nrf52_pca10040.fixup
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
Loading…
Add table
Add a link
Reference in a new issue