boards: Add PAN1781 evaluation board
The PAN1781 evaluation board is a development tool for the nRF52820 from Nordic Semiconductor. Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
This commit is contained in:
parent
04cc9cb6c9
commit
a572b386d8
10
boards/arm/pan1781_evb/Kconfig
Normal file
10
boards/arm/pan1781_evb/Kconfig
Normal file
|
@ -0,0 +1,10 @@
|
|||
# PAN1781 EVB configuration
|
||||
|
||||
# Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_ENABLE_DCDC
|
||||
bool "DCDC mode"
|
||||
select SOC_DCDC_NRF52X
|
||||
default y
|
||||
depends on BOARD_PAN1781_EVB
|
8
boards/arm/pan1781_evb/Kconfig.board
Normal file
8
boards/arm/pan1781_evb/Kconfig.board
Normal file
|
@ -0,0 +1,8 @@
|
|||
# PAN1781 EVB configuration
|
||||
|
||||
# Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_PAN1781_EVB
|
||||
bool "pan1781-evb"
|
||||
depends on SOC_NRF52820_QDAA
|
14
boards/arm/pan1781_evb/Kconfig.defconfig
Normal file
14
boards/arm/pan1781_evb/Kconfig.defconfig
Normal file
|
@ -0,0 +1,14 @@
|
|||
# PAN1781 EVB configuration
|
||||
|
||||
# Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_PAN1781_EVB
|
||||
|
||||
config BOARD
|
||||
default "pan1781_evb"
|
||||
|
||||
config BT_CTLR
|
||||
default BT
|
||||
|
||||
endif # BOARD_PAN1781_EVB
|
11
boards/arm/pan1781_evb/board.cmake
Normal file
11
boards/arm/pan1781_evb/board.cmake
Normal file
|
@ -0,0 +1,11 @@
|
|||
# PAN1781 EVB configuration
|
||||
|
||||
# Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board_runner_args(jlink "--device=nrf52" "--speed=4000")
|
||||
board_runner_args(pyocd "--target=nrf52820" "--frequency=4000000")
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
58
boards/arm/pan1781_evb/doc/index.rst
Normal file
58
boards/arm/pan1781_evb/doc/index.rst
Normal file
|
@ -0,0 +1,58 @@
|
|||
.. _pan1781_evb:
|
||||
|
||||
PAN1781 Evaluation Board
|
||||
########################
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
The PAN1781 Evaluation Board is a development tool for the PAN1781 module
|
||||
which is based on the nRF52820 chipset from Nordic Semiconductor.
|
||||
|
||||
.. figure:: pan1781_evaluation_board.png
|
||||
:width: 400px
|
||||
:align: center
|
||||
:alt: PAN1781 Evaluation Board
|
||||
|
||||
You can find more information about the PAN1781 module and the PAN1781
|
||||
evaluation board on the `product website`_.
|
||||
|
||||
Please also refer to :ref:`nrf52833dk_nrf52820` for general information about
|
||||
development kits for the nRF52820 from Nordic Semiconductor.
|
||||
|
||||
The PAN1781 evaluation board is closely linked to these other evaluation
|
||||
boards:
|
||||
|
||||
* :ref:`pan1780_evb`
|
||||
* :ref:`pan1782_evb`
|
||||
|
||||
Usage
|
||||
*****
|
||||
|
||||
You can find the `user guide`_ for the PAN1781 Evaluation Board in the
|
||||
`Panasonic Wireless Connectivity Development Hub`_.
|
||||
|
||||
The user guide contains (amongst other things) detailed information about
|
||||
|
||||
* pin mapping
|
||||
* powering options
|
||||
* breakout pin header interface
|
||||
* current consumption measurement
|
||||
* software development
|
||||
|
||||
and other things.
|
||||
|
||||
The schematics for the PAN1781 Evaluation Board are available in the
|
||||
`download section`_ of the `Panasonic Wireless Connectivity Development Hub`_.
|
||||
|
||||
Programming and Debugging
|
||||
*************************
|
||||
|
||||
Please use the ``pan1781_evb`` board configuration when
|
||||
:ref:`build_an_application` and :ref:`application_run`.
|
||||
|
||||
.. target-notes::
|
||||
.. _product website: https://industry.panasonic.eu/products/devices/wireless-connectivity/bluetooth-low-energy-modules/pan1781-nrf52820
|
||||
.. _Panasonic Wireless Connectivity Development Hub: https://pideu.panasonic.de/development-hub/
|
||||
.. _user guide: https://pideu.panasonic.de/development-hub/pan1781/evaluation_board/user_guide/
|
||||
.. _download section: https://pideu.panasonic.de/development-hub/pan1781/downloads/
|
BIN
boards/arm/pan1781_evb/doc/pan1781_evaluation_board.png
Normal file
BIN
boards/arm/pan1781_evb/doc/pan1781_evaluation_board.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 206 KiB |
64
boards/arm/pan1781_evb/pan1781_evb-pinctrl.dtsi
Normal file
64
boards/arm/pan1781_evb/pan1781_evb-pinctrl.dtsi
Normal file
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* PAN1781 EVB configuration
|
||||
*
|
||||
* Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
&pinctrl {
|
||||
/* flow control cannot be used together with i2c0,
|
||||
* so not added to uart0_default by default
|
||||
*/
|
||||
uart0_default: uart0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 6)>;
|
||||
};
|
||||
group2 {
|
||||
psels = <NRF_PSEL(UART_RX, 0, 8)>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
/* flow control cannot be used together with i2c0,
|
||||
* so not added to uart0_sleep by default
|
||||
*/
|
||||
uart0_sleep: uart0_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 6)>,
|
||||
<NRF_PSEL(UART_RX, 0, 8)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_default: i2c0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIM_SDA, 0, 7)>,
|
||||
<NRF_PSEL(TWIM_SCL, 0, 30)>;
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_sleep: i2c0_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIM_SDA, 0, 7)>,
|
||||
<NRF_PSEL(TWIM_SCL, 0, 30)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
spi1_default: spi1_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 28)>,
|
||||
<NRF_PSEL(SPIM_MISO, 0, 29)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 20)>;
|
||||
};
|
||||
};
|
||||
|
||||
spi1_sleep: spi1_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 28)>,
|
||||
<NRF_PSEL(SPIM_MISO, 0, 29)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 20)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
157
boards/arm/pan1781_evb/pan1781_evb.dts
Normal file
157
boards/arm/pan1781_evb/pan1781_evb.dts
Normal file
|
@ -0,0 +1,157 @@
|
|||
/*
|
||||
* PAN1781 EVB configuration
|
||||
*
|
||||
* Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf52820_qdaa.dtsi>
|
||||
#include "pan1781_evb-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
model = "pan1781-evb";
|
||||
compatible = "panasonic-industrial-devices-europe-gmbh,pan1781-evb";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
zephyr,uart-mcumgr = &uart0;
|
||||
zephyr,bt-mon-uart = &uart0;
|
||||
zephyr,bt-c2h-uart = &uart0;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
evb_led1: evb_led_0 {
|
||||
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
||||
label = "LED1 on EVB";
|
||||
};
|
||||
evb_led2: evb_led_2 {
|
||||
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
||||
label = "LED2 on EVB";
|
||||
};
|
||||
};
|
||||
|
||||
pwmleds {
|
||||
compatible = "pwm-leds";
|
||||
pwm_evb_led1: pwm_evb_led_1 {
|
||||
pwms = <&sw_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
|
||||
};
|
||||
};
|
||||
|
||||
buttons {
|
||||
compatible = "gpio-keys";
|
||||
evb_sw1: evb_sw_1 {
|
||||
gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
label = "SW1 on EVB";
|
||||
};
|
||||
evb_sw2: evb_sw_2 {
|
||||
gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
label = "SW2 on EVB";
|
||||
};
|
||||
};
|
||||
|
||||
arduino_header: connector {
|
||||
compatible = "panasonic,reduced-arduino-header";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map = <0 0 &gpio0 2 0>, /* A0 */
|
||||
<1 0 &gpio0 3 0>, /* A1 */
|
||||
<2 0 &gpio0 4 0>, /* A2 */
|
||||
<3 0 &gpio0 5 0>, /* A3 */
|
||||
<6 0 &gpio0 6 0>, /* D0 */
|
||||
<7 0 &gpio0 8 0>, /* D1 */
|
||||
<8 0 &gpio0 14 0>, /* D2 */
|
||||
<9 0 &gpio0 15 0>, /* D3 */
|
||||
<10 0 &gpio0 4 0>, /* D4 */
|
||||
<11 0 &gpio0 5 0>, /* D5 */
|
||||
<16 0 &gpio0 3 0>, /* D10 */
|
||||
<17 0 &gpio0 20 0>, /* D11 */
|
||||
<18 0 &gpio0 29 0>, /* D12 */
|
||||
<19 0 &gpio0 28 0>, /* D13 */
|
||||
<20 0 &gpio0 7 0>, /* D14 */
|
||||
<21 0 &gpio0 30 0>; /* D15 */
|
||||
};
|
||||
|
||||
/* These aliases are provided for compatibility with samples */
|
||||
aliases {
|
||||
led0 = &evb_led1;
|
||||
led1 = &evb_led2;
|
||||
pwm-led0 = &pwm_evb_led1;
|
||||
sw0 = &evb_sw1;
|
||||
sw1 = &evb_sw2;
|
||||
};
|
||||
};
|
||||
|
||||
&sw_pwm {
|
||||
status ="okay";
|
||||
channel-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
|
||||
clock-prescaler = <8>;
|
||||
};
|
||||
|
||||
&gpiote {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
arduino_serial: &uart0 {
|
||||
compatible = "nordic,nrf-uarte";
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&uart0_default>;
|
||||
pinctrl-1 = <&uart0_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
};
|
||||
|
||||
arduino_i2c: &i2c0 {
|
||||
compatible = "nordic,nrf-twi";
|
||||
status = "okay";
|
||||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-1 = <&i2c0_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
};
|
||||
|
||||
arduino_spi: &spi1 {
|
||||
status = "okay";
|
||||
cs-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; /* D10 */
|
||||
pinctrl-0 = <&spi1_default>;
|
||||
pinctrl-1 = <&spi1_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x0 0xc000>;
|
||||
};
|
||||
slot0_partition: partition@c000 {
|
||||
label = "image-0";
|
||||
reg = <0xc000 0x12000>;
|
||||
};
|
||||
slot1_partition: partition@1e000 {
|
||||
label = "image-1";
|
||||
reg = <0x1e000 0x12000>;
|
||||
};
|
||||
scratch_partition: partition@30000 {
|
||||
label = "image-scratch";
|
||||
reg = <0x30000 0xa000>;
|
||||
};
|
||||
storage_partition: partition@3a000 {
|
||||
label = "storage";
|
||||
reg = <0x3a000 0x6000>;
|
||||
};
|
||||
};
|
||||
};
|
25
boards/arm/pan1781_evb/pan1781_evb.yaml
Normal file
25
boards/arm/pan1781_evb/pan1781_evb.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
# PAN1781 EVB configuration
|
||||
|
||||
# Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
identifier: pan1781_evb
|
||||
name: pan1781-evb
|
||||
type: mcu
|
||||
arch: arm
|
||||
ram: 32
|
||||
flash: 256
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- arduino_gpio
|
||||
- arduino_i2c
|
||||
- arduino_spi
|
||||
- ble
|
||||
- gpio
|
||||
- i2c
|
||||
- spi
|
||||
- watchdog
|
||||
- counter
|
33
boards/arm/pan1781_evb/pan1781_evb_defconfig
Normal file
33
boards/arm/pan1781_evb/pan1781_evb_defconfig
Normal file
|
@ -0,0 +1,33 @@
|
|||
# PAN1781 EVB configuration
|
||||
|
||||
# Copyright (c) 2022 Panasonic Industrial Devices Europe GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NRF52X=y
|
||||
CONFIG_SOC_NRF52820_QDAA=y
|
||||
CONFIG_BOARD_PAN1781_EVB=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
# Enable hardware stack protection
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
|
||||
# Enable RTT
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
|
||||
# enable GPIO
|
||||
CONFIG_GPIO=y
|
||||
|
||||
# enable uart driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# enable console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# additional board options
|
||||
CONFIG_GPIO_AS_PINRESET=y
|
||||
|
||||
# using pinctrl
|
||||
CONFIG_PINCTRL=y
|
Loading…
Reference in a new issue