Skip to content
Permalink
Browse files

boards: rv32m1_vega: add Arduino header information

OpenISA Vega board has Arduino headers which can be configured for
use with Arduino-compatible shields.  To enable this in Zephyr,
let's define the gpio-map for Vega and set the appropriate
arduino_serial linkage.

Signed-off-by: Michael Scott <mike@foundries.io>
  • Loading branch information...
mike-scott authored and nashif committed May 22, 2019
1 parent 274db4f commit b925e4c09bc764c77faba23dca26499d479dad59
Showing with 29 additions and 0 deletions.
  1. +29 −0 boards/riscv32/rv32m1_vega/rv32m1_vega.dtsi
@@ -54,8 +54,37 @@
gpios = <&gpioe 12 GPIO_INT_ACTIVE_LOW>;
};
};

arduino_header: connector {
compatible = "arduino-header-r3";
#gpio-cells = <2>;
gpio-map = <0 0 &gpioc 11 0>, /* A0 */
<1 0 &gpioc 12 0>, /* A1 */
<2 0 &gpiob 9 0>, /* A2 */
<3 0 &gpioe 4 0>, /* A3 */
<4 0 &gpioe 10 0>, /* A4 */
<5 0 &gpioe 11 0>, /* A5 */
<6 0 &gpioa 25 0>, /* D0 */
<7 0 &gpioa 26 0>, /* D1 */
<8 0 &gpioa 27 0>, /* D2 */
<9 0 &gpiob 13 0>, /* D3 */
<10 0 &gpiob 14 0>, /* D4 */
<11 0 &gpioa 30 0>, /* D5 */
<12 0 &gpioa 31 0>, /* D6 */
<13 0 &gpiob 1 0>, /* D7 */
<14 0 &gpiob 2 0>, /* D8 */
<15 0 &gpiob 3 0>, /* D9 */
<16 0 &gpiob 6 0>, /* D10 */
<17 0 &gpiob 5 0>, /* D11 */
<18 0 &gpiob 7 0>, /* D12 */
<19 0 &gpiob 4 0>, /* D13 */
<20 0 &gpioc 9 0>, /* D14 */
<21 0 &gpioc 10 0>; /* D15 */
};
};

arduino_serial: &uart1 {};

&uart0 {
current-speed = <115200>;
status = "ok";

0 comments on commit b925e4c

Please sign in to comment.
You can’t perform that action at this time.