soc: nrf52810: Allow the use of SPI0, TWI0, and UART0

In the recent MDK brought by nrfx 1.6.2, these legacy peripherals have
been revealed as available also in nRF52810. This patch allows their
use in Zephyr drivers.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2019-02-26 12:26:50 +01:00 committed by Kumar Gala
commit e2dd85472a
3 changed files with 6 additions and 1 deletions

View file

@ -89,6 +89,7 @@
};
&uart0 {
compatible = "nordic,nrf-uarte";
status = "ok";
current-speed = <115200>;
tx-pin = <6>;

View file

@ -65,7 +65,8 @@
};
uart0: uart@40002000 {
compatible = "nordic,nrf-uarte";
/* uart can be either UART or UARTE, for the user to pick */
/* compatible = "nordic,nrf-uarte" or "nordic,nrf-uart"; */
reg = <0x40002000 0x1000>;
interrupts = <2 1>;
status = "disabled";

View file

@ -26,6 +26,7 @@ config SOC_NRF52810
select HAS_HW_NRF_RTC0
select HAS_HW_NRF_RTC1
select HAS_HW_NRF_SAADC
select HAS_HW_NRF_SPI0
select HAS_HW_NRF_SPIM0
select HAS_HW_NRF_SPIS0
select HAS_HW_NRF_SWI0
@ -38,8 +39,10 @@ config SOC_NRF52810
select HAS_HW_NRF_TIMER0
select HAS_HW_NRF_TIMER1
select HAS_HW_NRF_TIMER2
select HAS_HW_NRF_TWI0
select HAS_HW_NRF_TWIM0
select HAS_HW_NRF_TWIS0
select HAS_HW_NRF_UART0
select HAS_HW_NRF_UARTE0
select HAS_HW_NRF_WDT