Skip to content

Commit e362f14

Browse files
iandmorriskartben
authored andcommitted
boards: renesas: ek_ra6m4: added arduino labels
Added arduino_header, arduino_serial, arduino_i2c and arduino_spi node labels to device tree board definition, allowing compatible shield boards to be used. Signed-off-by: Ian Morris <[email protected]>
1 parent 67435e3 commit e362f14

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

boards/renesas/ek_ra6m4/ek_ra6m4.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <dt-bindings/gpio/gpio.h>
1010
#include <dt-bindings/input/input-event-codes.h>
1111
#include <zephyr/dt-bindings/adc/adc.h>
12+
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
1213

1314
#include "ek_ra6m4-pinctrl.dtsi"
1415

@@ -64,6 +65,35 @@
6465
/* GND */
6566
};
6667

68+
arduino_header: arduino-connector {
69+
compatible = "arduino-header-r3";
70+
#gpio-cells = <2>;
71+
gpio-map-mask = <0xffffffff 0xffffffc0>;
72+
gpio-map-pass-thru = <0 0x3f>;
73+
gpio-map = <ARDUINO_HEADER_R3_A0 0 &ioport0 0 0>,
74+
<ARDUINO_HEADER_R3_A1 0 &ioport0 1 0>,
75+
<ARDUINO_HEADER_R3_A2 0 &ioport0 3 0>,
76+
<ARDUINO_HEADER_R3_A3 0 &ioport0 7 0>,
77+
<ARDUINO_HEADER_R3_A4 0 &ioport0 14 0>,
78+
<ARDUINO_HEADER_R3_A5 0 &ioport0 15 0>,
79+
<ARDUINO_HEADER_R3_D0 0 &ioport6 14 0>,
80+
<ARDUINO_HEADER_R3_D1 0 &ioport6 13 0>,
81+
<ARDUINO_HEADER_R3_D2 0 &ioport0 9 0>,
82+
<ARDUINO_HEADER_R3_D3 0 &ioport1 11 0>,
83+
<ARDUINO_HEADER_R3_D4 0 &ioport7 13 0>,
84+
<ARDUINO_HEADER_R3_D5 0 &ioport7 12 0>,
85+
<ARDUINO_HEADER_R3_D6 0 &ioport4 8 0>,
86+
<ARDUINO_HEADER_R3_D7 0 &ioport3 4 0>,
87+
<ARDUINO_HEADER_R3_D8 0 &ioport6 11 0>,
88+
<ARDUINO_HEADER_R3_D9 0 &ioport3 3 0>,
89+
<ARDUINO_HEADER_R3_D10 0 &ioport2 5 0>,
90+
<ARDUINO_HEADER_R3_D11 0 &ioport2 3 0>,
91+
<ARDUINO_HEADER_R3_D12 0 &ioport2 2 0>,
92+
<ARDUINO_HEADER_R3_D13 0 &ioport2 4 0>,
93+
<ARDUINO_HEADER_R3_D14 0 &ioport5 11 0>,
94+
<ARDUINO_HEADER_R3_D15 0 &ioport5 12 0>;
95+
};
96+
6797
buttons {
6898
compatible = "gpio-keys";
6999
button0: s1 {
@@ -135,6 +165,10 @@
135165
status = "okay";
136166
};
137167

168+
&ioport3 {
169+
status = "okay";
170+
};
171+
138172
&ioport4 {
139173
status = "okay";
140174
};
@@ -147,6 +181,10 @@
147181
status = "okay";
148182
};
149183

184+
&ioport7 {
185+
status = "okay";
186+
};
187+
150188
&xtal {
151189
clock-frequency = <DT_FREQ_M(24)>;
152190
mosel = <0>;
@@ -245,6 +283,10 @@ mikrobus_serial: &uart7 {};
245283
mikrobus_i2c: &iic1 {};
246284
mikrobus_spi: &spi0 {};
247285

286+
arduino_serial: &uart7 {};
287+
arduino_i2c: &iic1 {};
288+
arduino_spi: &spi0 {};
289+
248290
&wdt {
249291
status = "okay";
250292
};

0 commit comments

Comments
 (0)