boards: arm: Add arduino header to all frdm boards

Adds a device tree nexus node to define which gpio pins are mapped from
the soc to the arduino header.

The frdm_kw41z board excludes the arduino A0 pin because it cannot be
muxed as a gpio on the soc.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2019-12-06 07:34:15 -06:00 committed by Kumar Gala
commit 851e397d19
7 changed files with 90 additions and 0 deletions

View file

@ -59,6 +59,35 @@
gpios = <&gpioa 17 GPIO_INT_ACTIVE_LOW>;
};
};
arduino_header: connector {
compatible = "arduino-header-r3";
#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
gpio-map = <0 0 &gpiob 0 0>, /* A0 */
<1 0 &gpiob 1 0>, /* A1 */
<2 0 &gpiob 2 0>, /* A2 */
<3 0 &gpiob 3 0>, /* A3 */
<4 0 &gpioc 2 0>, /* A4 */
<5 0 &gpioc 1 0>, /* A5 */
<6 0 &gpioa 1 0>, /* D0 */
<7 0 &gpioa 2 0>, /* D1 */
<8 0 &gpiod 4 0>, /* D2 */
<9 0 &gpioa 12 0>, /* D3 */
<10 0 &gpioa 4 0>, /* D4 */
<11 0 &gpioa 5 0>, /* D5 */
<12 0 &gpioc 8 0>, /* D6 */
<13 0 &gpioc 9 0>, /* D7 */
<14 0 &gpioa 13 0>, /* D8 */
<15 0 &gpiod 5 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 0 0>, /* D14 */
<21 0 &gpioe 1 0>; /* D15 */
};
};
&cpu0 {