Skip to content

Commit fd96edc

Browse files
iandmorrisnashif
authored andcommitted
boards: renesas: ek_ra8m1: added pmod node labels
Added pmod_serial and pmod_header node labels to EK-RA8M1 device tree board definition, allowing compatible shield boards to be used. Signed-off-by: Ian Morris <[email protected]>
1 parent e19838d commit fd96edc

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

boards/renesas/ek_ra8m1/ek_ra8m1-pinctrl.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@
44
*/
55

66
&pinctrl {
7+
sci0_default: sci0_default {
8+
group1 {
9+
/* tx */
10+
psels = <RA_PSEL(RA_PSEL_SCI_0, 6, 9)>;
11+
drive-strength = "medium";
12+
};
13+
group2 {
14+
/* rx */
15+
psels = <RA_PSEL(RA_PSEL_SCI_0, 6, 10)>;
16+
};
17+
};
18+
19+
sci2_default: sci2_default {
20+
group1 {
21+
/* tx */
22+
psels = <RA_PSEL(RA_PSEL_SCI_2, 10, 3)>;
23+
drive-strength = "medium";
24+
};
25+
group2 {
26+
/* rx */
27+
psels = <RA_PSEL(RA_PSEL_SCI_2, 10, 2)>;
28+
};
29+
};
30+
731
sci3_default: sci3_default {
832
group1 {
933
/* tx */

boards/renesas/ek_ra8m1/ek_ra8m1.dts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,36 @@
6363
/* GND */
6464
};
6565

66+
pmod1_header: pmod-connector-1 {
67+
compatible = "digilent,pmod";
68+
#gpio-cells = <2>;
69+
gpio-map-mask = <0xffffffff 0xffffffc0>;
70+
gpio-map-pass-thru = <0 0x3f>;
71+
gpio-map = <0 0 &ioport6 12 0>, /* IO1 */
72+
<1 0 &ioport6 9 0>, /* IO2 */
73+
<2 0 &ioport6 10 0>, /* IO3 */
74+
<3 0 &ioport6 11 0>, /* IO4 */
75+
<4 0 &ioport0 6 0>, /* IO5 */
76+
<5 0 &ioporta 8 0>, /* IO6 */
77+
<6 0 &ioport6 14 0>, /* IO7 */
78+
<7 0 &ioport6 15 0>; /* IO8 */
79+
};
80+
81+
pmod2_header: pmod-connector-2 {
82+
compatible = "digilent,pmod";
83+
#gpio-cells = <2>;
84+
gpio-map-mask = <0xffffffff 0xffffffc0>;
85+
gpio-map-pass-thru = <0 0x3f>;
86+
gpio-map = <0 0 &ioporta 5 0>, /* IO1 */
87+
<1 0 &ioporta 3 0>, /* IO2 */
88+
<2 0 &ioporta 2 0>, /* IO3 */
89+
<3 0 &ioporta 4 0>, /* IO4 */
90+
<4 0 &ioport5 8 0>, /* IO5 */
91+
<5 0 &ioport8 9 0>, /* IO6 */
92+
<6 0 &ioport8 10 0>, /* IO7 */
93+
<7 0 &ioport8 11 0>; /* IO8 */
94+
};
95+
6696
aliases {
6797
led0 = &led1;
6898
};
@@ -142,10 +172,38 @@
142172
status = "okay";
143173
};
144174

175+
&ioport8 {
176+
status = "okay";
177+
};
178+
145179
&ioport9 {
146180
status = "okay";
147181
};
148182

183+
&ioporta {
184+
status = "okay";
185+
};
186+
187+
&sci0 {
188+
pinctrl-0 = <&sci0_default>;
189+
pinctrl-names = "default";
190+
status = "okay";
191+
uart0: uart {
192+
current-speed = <115200>;
193+
status = "okay";
194+
};
195+
};
196+
197+
&sci2 {
198+
pinctrl-0 = <&sci2_default>;
199+
pinctrl-names = "default";
200+
status = "okay";
201+
uart2: uart {
202+
current-speed = <115200>;
203+
status = "okay";
204+
};
205+
};
206+
149207
&sci3 {
150208
pinctrl-0 = <&sci3_default>;
151209
pinctrl-names = "default";
@@ -221,3 +279,9 @@ mikrobus_serial: &uart3 {};
221279
status = "okay";
222280
};
223281
};
282+
283+
pmod1_serial: &uart0 {};
284+
pmod2_serial: &uart2 {};
285+
286+
pmod_serial: &pmod1_serial {};
287+
pmod_header: &pmod1_header {};

0 commit comments

Comments
 (0)