boards: nxp: rd_rw612_bga: add support for arduino header

Add arduino header support for rd_rw612_bga, so this board can be used
with arduino shields

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2024-03-13 17:40:51 -05:00 committed by Johan Hedberg
commit 049b2d8620

View file

@ -5,6 +5,8 @@
*/ */
#include "rd_rw612_bga-pinctrl.dtsi" #include "rd_rw612_bga-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ { / {
aliases { aliases {
@ -38,8 +40,38 @@
sw_4: sw_4 { sw_4: sw_4 {
label = "User SW4"; label = "User SW4";
gpios = <&hsgpio0 25 0>; gpios = <&hsgpio0 25 0>;
zephyr,code = <INPUT_KEY_0>;
}; };
}; };
arduino_header: arduino-connector {
compatible = "arduino-header-r3";
#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
gpio-map = <0 0 &hsgpio1 14 0>, /* A0 */
<1 0 &hsgpio1 15 0>, /* A1 */
<2 0 &hsgpio1 16 0>, /* A2 */
<3 0 &hsgpio1 17 0>, /* A3 */
<4 0 &hsgpio0 16 0>, /* A4 */
<5 0 &hsgpio0 17 0>, /* A5 */
<6 0 &hsgpio0 24 0>, /* D0 */
<7 0 &hsgpio0 26 0>, /* D1 */
<8 0 &hsgpio0 11 0>, /* D2 */
<9 0 &hsgpio0 15 0>, /* D3 */
<10 0 &hsgpio0 18 0>, /* D4 */
<11 0 &hsgpio0 27 0>, /* D5 */
<12 0 &hsgpio0 6 0>, /* D6 */
<13 0 &hsgpio0 10 0>, /* D7 */
<14 0 &hsgpio1 18 0>, /* D8 */
<15 0 &hsgpio1 13 0>, /* D9 */
<16 0 &hsgpio0 0 0>, /* D10 */
<17 0 &hsgpio0 2 0>, /* D11 */
<18 0 &hsgpio0 3 0>, /* D12 */
<19 0 &hsgpio0 4 0>, /* D13 */
<20 0 &hsgpio0 16 0>, /* D14 */
<21 0 &hsgpio0 17 0>; /* D15 */
};
}; };
&wwdt { &wwdt {