Skip to content

Commit e18cf0c

Browse files
iandmorrisjhedberg
authored andcommitted
boards: renesas: ek_ra8d1: added mikrobus node labels
Added mikrobus_serial, mikrobus_spi and mikrobus_header node labels to EK-RA8D1 device tree board definition, allowing compatible shield boards to be used. Signed-off-by: Ian Morris <[email protected]>
1 parent c9d50b6 commit e18cf0c

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

boards/renesas/ek_ra8d1/ek_ra8d1-pinctrl.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
};
2626
};
2727

28+
sci3_default: sci3_default {
29+
group1 {
30+
/* tx */
31+
psels = <RA_PSEL(RA_PSEL_SCI_3, 4, 9)>;
32+
drive-strength = "medium";
33+
};
34+
group2 {
35+
/* rx */
36+
psels = <RA_PSEL(RA_PSEL_SCI_3, 4, 8)>;
37+
};
38+
};
39+
2840
spi1_default: spi1_default {
2941
group1 {
3042
/* MISO MOSI RSPCK SSL */

boards/renesas/ek_ra8d1/ek_ra8d1.dts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@
4444
};
4545
};
4646

47+
mikrobus_header: mikrobus-connector {
48+
compatible = "mikro-bus";
49+
#gpio-cells = <2>;
50+
gpio-map-mask = <0xffffffff 0xffffffc0>;
51+
gpio-map-pass-thru = <0 0x3f>;
52+
gpio-map = <0 0 &ioport0 4 0>, /* AN */
53+
<1 0 &ioport5 7 0>, /* RST */
54+
<2 0 &ioport4 13 0>, /* CS */
55+
<3 0 &ioport4 12 0>, /* SCK */
56+
<4 0 &ioport4 10 0>, /* MISO */
57+
<5 0 &ioport4 11 0>, /* MOSI */
58+
/* +3.3V */
59+
/* GND */
60+
<6 0 &ioport9 7 0>, /* PWM */
61+
<7 0 &ioport0 10 0>, /* INT */
62+
<8 0 &ioport4 8 0>, /* RX */
63+
<9 0 &ioport4 9 0>, /* TX */
64+
<10 0 &ioport4 0 0>, /* SCL */
65+
<11 0 &ioport4 1 0>; /* SDA */
66+
/* +5V */
67+
/* GND */
68+
};
69+
4770
buttons {
4871
compatible = "gpio-keys";
4972
button0: s1 {
@@ -205,6 +228,10 @@
205228
status = "okay";
206229
};
207230

231+
&ioport9 {
232+
status = "okay";
233+
};
234+
208235
&ioporta {
209236
status = "okay";
210237
};
@@ -234,6 +261,17 @@
234261
};
235262
};
236263

264+
&sci3 {
265+
pinctrl-0 = <&sci3_default>;
266+
pinctrl-names = "default";
267+
status = "okay";
268+
269+
uart3: uart {
270+
current-speed = <115200>;
271+
status = "okay";
272+
};
273+
};
274+
237275
&trng {
238276
status = "okay";
239277
};
@@ -448,3 +486,6 @@ pmod_sd_shield: &sdhc1 {};
448486
};
449487
};
450488
};
489+
490+
mikrobus_serial: &uart3 {};
491+
mikrobus_spi: &spi1 {};

0 commit comments

Comments
 (0)