WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 48ace49

Browse files
committed
Overlays: add overlay for rak-6421 WisBlock hat
The RAK 6421 is a new HAT+ device for Meshtastic, that adds support for the WisBlock ecosystem on the Raspberry Pi. This overlay will usually be loaded via the HAT+ eeprom. Signed-off-by: Jonathan Bennett <[email protected]>
1 parent 954129f commit 48ace49

File tree

4 files changed

+106
-0
lines changed

4 files changed

+106
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
234234
pwm1.dtbo \
235235
qca7000.dtbo \
236236
qca7000-uart0.dtbo \
237+
rak-6421.dtbo \
237238
ramoops.dtbo \
238239
ramoops-pi4.dtbo \
239240
rootmaster.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4273,6 +4273,15 @@ Params: baudrate Set the baudrate for the UART (default
42734273
"115200")
42744274

42754275

4276+
Name: rak-6421
4277+
Info: RAK6421 Meshtastic WisHat
4278+
This board allows connecting RAK WisBlock radios and sensors to
4279+
the Raspberry Pi. Consists of two SPI radio ports and 4 i2c
4280+
sensor slots.
4281+
Load: dtoverlay=rak-6421
4282+
Params: <None>
4283+
4284+
42764285
Name: ramoops
42774286
Info: Enable the preservation of crash logs across a reboot. With
42784287
systemd-pstore enabled (as it is on Raspberry Pi OS) the crash logs
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Device Tree overlay for RAK 6421 Meshtastic HAT+
3+
*
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
compatible = "brcm,bcm2835";
11+
12+
13+
i2c_frag: fragment@0 {
14+
target = <&i2c_arm>;
15+
__overlay__ {
16+
status = "okay";
17+
};
18+
};
19+
fragment@1 {
20+
target = <&spi0_cs_pins>;
21+
frag0: __overlay__ {
22+
brcm,pins = <8 7>;
23+
};
24+
};
25+
26+
fragment@2 {
27+
target = <&spi0>;
28+
frag1: __overlay__ {
29+
cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
30+
status = "okay";
31+
};
32+
};
33+
34+
fragment@3 {
35+
target = <&spi0_pins>;
36+
__dormant__ {
37+
brcm,pins = <10 11>;
38+
};
39+
};
40+
41+
__overrides__ {
42+
cs0_pin = <&frag0>,"brcm,pins:0",
43+
<&frag1>,"cs-gpios:4";
44+
cs1_pin = <&frag0>,"brcm,pins:4",
45+
<&frag1>,"cs-gpios:16";
46+
no_miso = <0>,"=3";
47+
};
48+
};
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Device Tree overlay for RAK 6421 Meshtastic HAT+
3+
*
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
compatible = "brcm,bcm2835";
11+
12+
13+
i2c_frag: fragment@0 {
14+
target = <&i2c_arm>;
15+
__overlay__ {
16+
status = "okay";
17+
};
18+
};
19+
fragment@1 {
20+
target = <&spi0_cs_pins>;
21+
frag0: __overlay__ {
22+
brcm,pins = <8 7>;
23+
};
24+
};
25+
26+
fragment@2 {
27+
target = <&spi0>;
28+
frag1: __overlay__ {
29+
cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
30+
status = "okay";
31+
};
32+
};
33+
34+
fragment@3 {
35+
target = <&spi0_pins>;
36+
__dormant__ {
37+
brcm,pins = <10 11>;
38+
};
39+
};
40+
41+
__overrides__ {
42+
cs0_pin = <&frag0>,"brcm,pins:0",
43+
<&frag1>,"cs-gpios:4";
44+
cs1_pin = <&frag0>,"brcm,pins:4",
45+
<&frag1>,"cs-gpios:16";
46+
no_miso = <0>,"=2";
47+
};
48+
};

0 commit comments

Comments
 (0)