Skip to content
Permalink
Browse files

boards: arm: frdm_k64f: add Arduino header definition to DTS

Let's expose the Arduino R3-compatible pin definition as DTS
for the frdm_k64f board.

Signed-off-by: Michael Scott <mike@foundries.io>
  • Loading branch information...
mike-scott authored and nashif committed May 17, 2019
1 parent cf5b081 commit ce1e990c30f82be8a5c61a41dac1addf317c9538
Showing with 30 additions and 0 deletions.
  1. +30 −0 boards/arm/frdm_k64f/frdm_k64f.dts
@@ -74,6 +74,36 @@
gpios = <&gpioa 4 GPIO_INT_ACTIVE_LOW>;
};
};

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

arduino_serial: &uart3 {};

0 comments on commit ce1e990

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