Skip to content

Commit 9946498

Browse files
committed
boards: add Feather header gpio-map for nRF9151
Add an adafruit-feather-header connector node to and map the Feather header pins to nRF GPIOs. This enables using &feather_header references in DTS/overlays for I2C and SPI (COPI/CIPO/SCK) and keeps pin selection board-agnostic for shields and expansions. Signed-off-by: Marko Puric <marko@golioth.io>
1 parent 6fd8991 commit 9946498

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_common.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,35 @@
3838
ext-flash = &w25q128jv;
3939
};
4040

41+
/* Used for accessing other pins */
42+
feather_header: feather_connector {
43+
compatible = "adafruit-feather-header";
44+
#gpio-cells = <2>;
45+
gpio-map-mask = <0xffffffff 0xffffffc0>;
46+
gpio-map-pass-thru = <0 0x3f>;
47+
gpio-map = <12 0 &gpio0 2 0>, /* SDA */
48+
<13 0 &gpio0 1 0>, /* SCL */
49+
<14 0 &gpio0 26 0>, /* D2 */
50+
<15 0 &gpio0 27 0>, /* D3 */
51+
<16 0 &gpio0 28 0>, /* D4 */
52+
<17 0 &gpio0 29 0>, /* D5 */
53+
<18 0 &gpio0 30 0>, /* D6 */
54+
<19 0 &gpio0 31 0>, /* D7 */
55+
<20 0 &gpio0 0 0>, /* D8 */
56+
<11 0 &gpio0 25 0>, /* EXTRA */
57+
<10 0 &gpio0 24 0>, /* TX */
58+
<9 0 &gpio0 23 0>, /* RX */
59+
<8 0 &gpio0 22 0>, /* CIPO */
60+
<7 0 &gpio0 21 0>, /* COPI */
61+
<6 0 &gpio0 20 0>, /* SCK */
62+
<5 0 &gpio0 18 0>, /* A5 */
63+
<4 0 &gpio0 17 0>, /* A4 */
64+
<3 0 &gpio0 16 0>, /* A3 */
65+
<2 0 &gpio0 15 0>, /* A2 */
66+
<1 0 &gpio0 14 0>, /* A1 */
67+
<0 0 &gpio0 13 0>; /* A0 */
68+
};
69+
4170
fstab {
4271
compatible = "zephyr,fstab";
4372
lfs: lfs {

0 commit comments

Comments
 (0)