Skip to content

Commit

Permalink
boards: arm: frdm_k64f: add Arduino header definition to DTS
Browse files Browse the repository at this point in the history
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 21, 2019
1 parent cf5b081 commit ce1e990
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions boards/arm/frdm_k64f/frdm_k64f.dts
Expand Up @@ -74,6 +74,36 @@
gpios = <&gpioa 4 GPIO_INT_ACTIVE_LOW>; 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 {}; arduino_serial: &uart3 {};
Expand Down

0 comments on commit ce1e990

Please sign in to comment.