Skip to content

Commit 772ff65

Browse files
gmarullfabiobaltieri
authored andcommitted
boards: nucleo_f302r8: add ST Morpho connector nexus node
Add a new GPIO nexus node for the ST Morpho connector in the board. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent ecb5911 commit 772ff65

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

boards/arm/nucleo_f302r8/nucleo_f302r8.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <st/f3/stm32f302X8.dtsi>
99
#include <st/f3/stm32f302r(6-8)tx-pinctrl.dtsi>
1010
#include "arduino_r3_connector.dtsi"
11+
#include "st_morpho_connector.dtsi"
1112

1213
/ {
1314
model = "STMicroelectronics STM32F302R8-NUCLEO board";
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright (c) 2023 Teslabs Engineering S.L.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/dt-bindings/gpio/gpio.h>
7+
#include <zephyr/dt-bindings/gpio/st-morpho-header.h>
8+
9+
/ {
10+
st_morpho_header: st-morpho-header {
11+
compatible = "st-morpho-header";
12+
#gpio-cells = <2>;
13+
gpio-map-mask = <ST_MORPHO_PIN_MASK 0x0>;
14+
gpio-map-pass-thru = <0x0 GPIO_DT_FLAGS_MASK>;
15+
gpio-map = <ST_MORPHO_CN7_1 0 &gpioc 10 0>,
16+
<ST_MORPHO_CN7_2 0 &gpioc 11 0>,
17+
<ST_MORPHO_CN7_3 0 &gpioc 12 0>,
18+
<ST_MORPHO_CN7_4 0 &gpiod 2 0>,
19+
<ST_MORPHO_CN7_13 0 &gpioa 13 0>,
20+
<ST_MORPHO_CN7_15 0 &gpioa 14 0>,
21+
<ST_MORPHO_CN7_17 0 &gpioa 15 0>,
22+
<ST_MORPHO_CN7_21 0 &gpiob 7 0>,
23+
<ST_MORPHO_CN7_23 0 &gpioc 13 0>,
24+
<ST_MORPHO_CN7_25 0 &gpioc 14 0>,
25+
<ST_MORPHO_CN7_27 0 &gpioc 15 0>,
26+
<ST_MORPHO_CN7_28 0 &gpioa 0 0>,
27+
<ST_MORPHO_CN7_29 0 &gpiof 0 0>,
28+
<ST_MORPHO_CN7_30 0 &gpioa 1 0>,
29+
<ST_MORPHO_CN7_31 0 &gpiof 1 0>,
30+
<ST_MORPHO_CN7_32 0 &gpioa 4 0>,
31+
<ST_MORPHO_CN7_34 0 &gpiob 0 0>,
32+
<ST_MORPHO_CN7_35 0 &gpioc 2 0>,
33+
<ST_MORPHO_CN7_36 0 &gpioc 1 0>, /* SB56=ON, SB46=OFF */
34+
<ST_MORPHO_CN7_37 0 &gpioc 3 0>,
35+
<ST_MORPHO_CN7_38 0 &gpioc 0 0>, /* SB51=ON, SB52=OFF */
36+
<ST_MORPHO_CN10_1 0 &gpioc 9 0>,
37+
<ST_MORPHO_CN10_2 0 &gpioc 8 0>,
38+
<ST_MORPHO_CN10_3 0 &gpiob 8 0>,
39+
<ST_MORPHO_CN10_4 0 &gpioc 6 0>,
40+
<ST_MORPHO_CN10_5 0 &gpiob 9 0>,
41+
<ST_MORPHO_CN10_6 0 &gpioc 5 0>,
42+
<ST_MORPHO_CN10_11 0 &gpiob 13 0>,
43+
<ST_MORPHO_CN10_12 0 &gpioa 12 0>,
44+
<ST_MORPHO_CN10_13 0 &gpiob 14 0>,
45+
<ST_MORPHO_CN10_14 0 &gpioa 11 0>,
46+
<ST_MORPHO_CN10_15 0 &gpiob 15 0>,
47+
<ST_MORPHO_CN10_16 0 &gpiob 12 0>,
48+
<ST_MORPHO_CN10_17 0 &gpiob 6 0>,
49+
<ST_MORPHO_CN10_18 0 &gpiob 11 0>,
50+
<ST_MORPHO_CN10_19 0 &gpioc 7 0>,
51+
<ST_MORPHO_CN10_21 0 &gpioa 9 0>,
52+
<ST_MORPHO_CN10_22 0 &gpiob 2 0>,
53+
<ST_MORPHO_CN10_23 0 &gpioa 8 0>,
54+
<ST_MORPHO_CN10_24 0 &gpiob 1 0>,
55+
<ST_MORPHO_CN10_25 0 &gpiob 10 0>,
56+
<ST_MORPHO_CN10_26 0 &gpioa 7 0>,
57+
<ST_MORPHO_CN10_27 0 &gpiob 4 0>,
58+
<ST_MORPHO_CN10_28 0 &gpioa 6 0>,
59+
<ST_MORPHO_CN10_29 0 &gpiob 5 0>,
60+
<ST_MORPHO_CN10_30 0 &gpioa 5 0>,
61+
<ST_MORPHO_CN10_31 0 &gpiob 3 0>,
62+
<ST_MORPHO_CN10_33 0 &gpioa 10 0>,
63+
<ST_MORPHO_CN10_34 0 &gpioc 4 0>,
64+
<ST_MORPHO_CN10_35 0 &gpioa 2 0>,
65+
<ST_MORPHO_CN10_37 0 &gpioa 3 0>;
66+
};
67+
};

0 commit comments

Comments
 (0)