Skip to content

Commit 22d4161

Browse files
iandmorriskartben
authored andcommitted
boards: renesas: ek_ra6m4: added mikrobus node labels
Added mikrobus_serial, mikrobus_i2c, mikrobus_spi and mikrobus_header node labels to EK-RA6M4 device tree board definition, allowing compatible shield boards to be used. Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
1 parent 962a53e commit 22d4161

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

boards/renesas/ek_ra6m4/ek_ra6m4-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
};
1313
};
1414

15+
sci7_default: sci7_default {
16+
group1 {
17+
/* tx rx */
18+
psels = <RA_PSEL(RA_PSEL_SCI_7, 6, 13)>,
19+
<RA_PSEL(RA_PSEL_SCI_7, 6, 14)>;
20+
};
21+
};
22+
1523
iic1_default: iic1_default {
1624
group1 {
1725
/* SCL1 SDA1 */

boards/renesas/ek_ra6m4/ek_ra6m4.dts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,29 @@
4141
};
4242
};
4343

44+
mikrobus_header: mikrobus-connector {
45+
compatible = "mikro-bus";
46+
#gpio-cells = <2>;
47+
gpio-map-mask = <0xffffffff 0xffffffc0>;
48+
gpio-map-pass-thru = <0 0x3f>;
49+
gpio-map = <0 0 &ioport0 0 0>, /* AN */
50+
<1 0 &ioport1 15 0>, /* RST */
51+
<2 0 &ioport2 5 0>, /* CS */
52+
<3 0 &ioport2 4 0>, /* SCK */
53+
<4 0 &ioport2 2 0>, /* MISO */
54+
<5 0 &ioport2 3 0>, /* MOSI */
55+
/* +3.3V */
56+
/* GND */
57+
<6 0 &ioport4 8 0>, /* PWM */
58+
<7 0 &ioport4 9 0>, /* INT */
59+
<8 0 &ioport6 14 0>, /* RX */
60+
<9 0 &ioport6 13 0>, /* TX */
61+
<10 0 &ioport5 12 0>, /* SCL */
62+
<11 0 &ioport5 11 0>; /* SDA */
63+
/* +5V */
64+
/* GND */
65+
};
66+
4467
buttons {
4568
compatible = "gpio-keys";
4669
button0: s1 {
@@ -72,6 +95,16 @@
7295
};
7396
};
7497

98+
&sci7 {
99+
pinctrl-0 = <&sci7_default>;
100+
pinctrl-names = "default";
101+
status = "okay";
102+
uart7: uart {
103+
current-speed = <115200>;
104+
status = "okay";
105+
};
106+
};
107+
75108
&iic1 {
76109
status = "okay";
77110
#address-cells = <1>;
@@ -93,10 +126,26 @@
93126
status = "okay";
94127
};
95128

129+
&ioport1 {
130+
status = "okay";
131+
};
132+
133+
&ioport2 {
134+
status = "okay";
135+
};
136+
96137
&ioport4 {
97138
status = "okay";
98139
};
99140

141+
&ioport5 {
142+
status = "okay";
143+
};
144+
145+
&ioport6 {
146+
status = "okay";
147+
};
148+
100149
&xtal {
101150
clock-frequency = <DT_FREQ_M(24)>;
102151
mosel = <0>;
@@ -190,3 +239,7 @@
190239
status = "okay";
191240
};
192241
};
242+
243+
mikrobus_serial: &uart7 {};
244+
mikrobus_i2c: &iic1 {};
245+
mikrobus_spi: &spi0 {};

0 commit comments

Comments
 (0)