Skip to content

Commit

Permalink
boards: 96b_nitrogen: adapt to the board configuration guidelines
Browse files Browse the repository at this point in the history
As per default board configuration guidelines, this commit updates
96Boards Nitrogen board.

Following changes are done:

- Enable I2C0 and SPI0 in board dts
- Add exposed peripherals in board Kconfig
- Update board yaml
- Remove config option to select board
- Update documentation for UART, I2C and SPI

Signed-off-by: Manivannan Sadhasivam <[email protected]>
  • Loading branch information
Mani-Sadhasivam authored and nashif committed Oct 8, 2018
1 parent 5c2d2a8 commit 887c74a
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 1 deletion.
14 changes: 14 additions & 0 deletions boards/arm/96b_nitrogen/96b_nitrogen.dts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@
cts-pin = <14>;
};

&i2c0 {
status = "ok";
sda-pin = <20>;
scl-pin = <22>;
};

&spi0 {
status = "ok";
sck-pin = <26>;
mosi-pin = <23>;
miso-pin = <25>;
csn-pin = <24>;
};

&flash0 {
/*
* For more information, see:
Expand Down
3 changes: 3 additions & 0 deletions boards/arm/96b_nitrogen/96b_nitrogen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ toolchain:
- gnuarmemb
supported:
- ble
- gpio
- i2c
- spi
ram: 64
flash: 512
1 change: 0 additions & 1 deletion boards/arm/96b_nitrogen/96b_nitrogen_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF=y
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52832_QFAA=y
CONFIG_BOARD_96B_NITROGEN=y

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
28 changes: 28 additions & 0 deletions boards/arm/96b_nitrogen/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,32 @@ if BOARD_96B_NITROGEN
config BOARD
default "96b_nitrogen"

if I2C

config I2C_NRFX
def_bool y

if I2C_NRFX

config I2C_0
def_bool y

endif # I2C_NRFX

endif # I2C

if SPI

config SPI_NRFX
def_bool y

if SPI_NRFX

config SPI_0
def_bool y

endif # SPI_NRFX

endif # SPI

endif # BOARD_96B_NITROGEN
24 changes: 24 additions & 0 deletions boards/arm/96b_nitrogen/doc/96b_nitrogen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,30 @@ System Clock
nRF52 has two external oscillators. The frequency of the slow clock is
32.768 kHz. The frequency of the main clock is 32 MHz.

Serial Port
-----------

96Boards Nitrogen has one UART, which is used as Zephyr console.
Default settings is 115200 8N1.

I2C
---

96Boards Nitrogen has one I2C. The default I2C mapping for Zephyr is:

- I2C0_SCL : P0.22
- I2C0_SDA : P0.20

SPI
---

96Boards Nitrogen has one SPI. The default SPI mapping for Zephyr is:

- SPI0_NSS : P0.24
- SPI0_SCK : P0.26
- SPI0_MISO : P0.25
- SPI0_MOSI : P0.23

Flashing Zephyr onto 96Boards Nitrogen
**************************************

Expand Down

0 comments on commit 887c74a

Please sign in to comment.