Skip to content

Commit 33ce684

Browse files
iandmorrisnashif
authored andcommitted
boards: renesas: ek_ra8m1: added mikrobus node labels
Added mikrobus_serial and mikrobus_header node labels to EK-RA8M1 device tree board definition, allowing compatible shield boards to be used. Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
1 parent a2e0b1d commit 33ce684

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

boards/renesas/ek_ra8m1/ek_ra8m1-pinctrl.dtsi

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
*/
55

66
&pinctrl {
7+
sci3_default: sci3_default {
8+
group1 {
9+
/* tx */
10+
psels = <RA_PSEL(RA_PSEL_SCI_3, 3, 10)>;
11+
drive-strength = "medium";
12+
};
13+
group2 {
14+
/* rx */
15+
psels = <RA_PSEL(RA_PSEL_SCI_3, 3, 9)>;
16+
};
17+
};
18+
719
sci9_default: sci9_default {
820
group1 {
921
/* tx */

boards/renesas/ek_ra8m1/ek_ra8m1.dts

+51
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@
3737
};
3838
};
3939

40+
mikrobus_header: mikrobus-connector {
41+
compatible = "mikro-bus";
42+
#gpio-cells = <2>;
43+
gpio-map-mask = <0xffffffff 0xffffffc0>;
44+
gpio-map-pass-thru = <0 0x3f>;
45+
gpio-map = <0 0 &ioport0 4 0>, /* AN */
46+
<1 0 &ioport5 2 0>, /* RST */
47+
<2 0 &ioport4 13 0>, /* CS */
48+
<3 0 &ioport4 12 0>, /* SCK */
49+
<4 0 &ioport4 10 0>, /* MISO */
50+
<5 0 &ioport4 11 0>, /* MOSI */
51+
/* +3.3V */
52+
/* GND */
53+
<6 0 &ioport9 7 0>, /* PWM */
54+
<7 0 &ioport0 10 0>, /* INT */
55+
<8 0 &ioport3 9 0>, /* RX */
56+
<9 0 &ioport3 10 0>, /* TX */
57+
<10 0 &ioport4 0 0>, /* SCL */
58+
<11 0 &ioport4 1 0>; /* SDA */
59+
/* +5V */
60+
/* GND */
61+
};
62+
4063
aliases {
4164
led0 = &led1;
4265
};
@@ -72,18 +95,44 @@
7295
status = "okay";
7396
};
7497

98+
&ioport0 {
99+
status = "okay";
100+
};
101+
75102
&ioport1 {
76103
status = "okay";
77104
};
78105

106+
&ioport3 {
107+
status = "okay";
108+
};
109+
79110
&ioport4 {
80111
status = "okay";
81112
};
82113

114+
&ioport5 {
115+
status = "okay";
116+
};
117+
83118
&ioport6 {
84119
status = "okay";
85120
};
86121

122+
&ioport9 {
123+
status = "okay";
124+
};
125+
126+
&sci3 {
127+
pinctrl-0 = <&sci3_default>;
128+
pinctrl-names = "default";
129+
status = "okay";
130+
uart3: uart {
131+
current-speed = <115200>;
132+
status = "okay";
133+
};
134+
};
135+
87136
&sci9 {
88137
pinctrl-0 = <&sci9_default>;
89138
pinctrl-names = "default";
@@ -93,3 +142,5 @@
93142
status = "okay";
94143
};
95144
};
145+
146+
mikrobus_serial: &uart3 {};

0 commit comments

Comments
 (0)