Skip to content

Commit b7575e8

Browse files
iandmorriskartben
authored andcommitted
boards: mikroe: ra4m1_clicker: added mikrobus header
Added mikrobus_header to RA4M1 Clicker device tree board definition. Signed-off-by: Ian Morris <ian.d.morris@outlook.com>
1 parent 196fc5c commit b7575e8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

boards/mikroe/clicker_ra4m1/mikroe_clicker_ra4m1.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,29 @@
4242
};
4343
};
4444

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

98+
&ioport0 {
99+
status = "okay";
100+
};
101+
102+
&ioport1 {
103+
status = "okay";
104+
};
105+
106+
&ioport2 {
107+
status = "okay";
108+
};
109+
75110
&ioport3 {
76111
status = "okay";
77112
};

0 commit comments

Comments
 (0)