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

@ -8,6 +8,7 @@ toolchain:
- gnuarmemb
supported:
- adc
- arduino_gpio
- gpio
- i2c
- nvs

View file

@ -74,6 +74,35 @@
gpios = <&gpioc 6 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 &gpioc 1 0>, /* A2 */
<3 0 &gpioc 2 0>, /* A3 */
<4 0 &gpiob 3 0>, /* A4 */
<5 0 &gpiob 2 0>, /* A5 */
<6 0 &gpiob 16 0>, /* D0 */
<7 0 &gpiob 17 0>, /* D1 */
<8 0 &gpioc 12 0>, /* D2 */
<9 0 &gpiod 0 0>, /* D3 */
<10 0 &gpioc 11 0>, /* D4 */
<11 0 &gpioc 10 0>, /* D5 */
<12 0 &gpioc 8 0>, /* D6 */
<13 0 &gpioc 9 0>, /* D7 */
<14 0 &gpioc 3 0>, /* D8 */
<15 0 &gpioc 5 0>, /* D9 */
<16 0 &gpiod 4 0>, /* D10 */
<17 0 &gpiod 2 0>, /* D11 */
<18 0 &gpiod 3 0>, /* D12 */
<19 0 &gpiod 1 0>, /* D13 */
<20 0 &gpioa 1 0>, /* D14 */
<21 0 &gpioa 2 0>; /* D15 */
};
};
&flash0 {

View file

@ -9,6 +9,7 @@ toolchain:
ram: 192
flash: 256
supported:
- arduino_gpio
- gpio
- hwinfo
- i2c

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 {

View file

@ -14,6 +14,7 @@ testing:
- bluetooth
supported:
- adc
- arduino_gpio
- gpio
- hwinfo
- i2c

View file

@ -61,6 +61,34 @@
gpios = <&gpioc 5 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 = /* A0 cannot be muxed as gpio */
<1 0 &gpiob 18 0>, /* A1 */
<2 0 &gpiob 2 0>, /* A2 */
<3 0 &gpiob 3 0>, /* A3 */
<4 0 &gpiob 1 0>, /* A4 */
<6 0 &gpioc 6 0>, /* D0 */
<7 0 &gpioc 7 0>, /* D1 */
<8 0 &gpioc 19 0>, /* D2 */
<9 0 &gpioc 16 0>, /* D3 */
<10 0 &gpioc 4 0>, /* D4 */
<11 0 &gpioc 17 0>, /* D5 */
<12 0 &gpioc 18 0>, /* D6 */
<13 0 &gpioa 1 0>, /* D7 */
<14 0 &gpioa 0 0>, /* D8 */
<15 0 &gpioc 1 0>, /* D9 */
<16 0 &gpioa 19 0>, /* D10 */
<17 0 &gpioa 16 0>, /* D11 */
<18 0 &gpioa 17 0>, /* D12 */
<19 0 &gpioa 18 0>, /* D13 */
<20 0 &gpioc 3 0>, /* D14 */
<21 0 &gpioc 2 0>; /* D15 */
};
};
&adc0 {

View file

@ -8,6 +8,7 @@ toolchain:
- xtools
supported:
- adc
- arduino_gpio
- counter
- gpio
- hwinfo