Skip to content

Commit 7c698d4

Browse files
P-D-Gfabiobaltieri
authored andcommitted
boards: adafruit: feather_m0_basic_proto: add GPIO references
Add a description of the feather connector GPIOs. This enables a featherwing shield to reference the GPIO by its label. Signed-off-by: Philip-Dylan Gleonec <philip-dylan@gleonec.bzh>
1 parent 62fab31 commit 7c698d4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

boards/adafruit/feather_m0_basic_proto/feather_connector.dtsi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,35 @@
55
* SPDX-License-Identifier: Apache-2.0
66
*/
77

8+
/ {
9+
feather_header: connector {
10+
compatible = "adafruit-feather-header";
11+
#gpio-cells = <2>;
12+
gpio-map-mask = <0xffffffff 0xffffffc0>;
13+
gpio-map-pass-thru = <0 0x3f>;
14+
gpio-map = <0 0 &porta 2 0>, /* A0 */
15+
<1 0 &portb 8 0>, /* A1 */
16+
<2 0 &portb 9 0>, /* A2 */
17+
<3 0 &porta 4 0>, /* A3 */
18+
<4 0 &porta 5 0>, /* A4 */
19+
<5 0 &portb 2 0>, /* A5 */
20+
<6 0 &portb 11 0>, /* SCK */
21+
<7 0 &portb 10 0>, /* MOSI */
22+
<8 0 &porta 12 0>, /* MISO */
23+
<9 0 &porta 11 0>, /* RX / D0 */
24+
<10 0 &porta 10 0>, /* TX / D1 */
25+
<11 0 &porta 13 0>, /* GND (NC) */
26+
<12 0 &porta 22 0>, /* SDA */
27+
<13 0 &porta 23 0>, /* SCL */
28+
<14 0 &porta 15 0>, /* D5 */
29+
<15 0 &porta 20 0>, /* D6 */
30+
<16 0 &porta 7 0>, /* D9 */
31+
<17 0 &porta 18 0>, /* D10 */
32+
<18 0 &porta 16 0>, /* D11 */
33+
<19 0 &porta 19 0>, /* D12 */
34+
<20 0 &porta 17 0>; /* D13 */
35+
};
36+
};
37+
838
feather_i2c: &sercom3 {};
939
feather_spi: &sercom4 {};

0 commit comments

Comments
 (0)