Skip to content

Commit e5dfad4

Browse files
mickepragpelwell
authored andcommitted
overlays: Add OpenHydroponics RootMaster overlay
Signed-off-by: Micke Prag <micke.prag@gmail.com>
1 parent 875a47e commit e5dfad4

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
230230
qca7000-uart0.dtbo \
231231
ramoops.dtbo \
232232
ramoops-pi4.dtbo \
233+
rootmaster.dtbo \
233234
rotary-encoder.dtbo \
234235
rpi-backlight.dtbo \
235236
rpi-codeczero.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4124,6 +4124,13 @@ Params: base-addr Where to place the capture buffer (default
41244124
console-size Size of non-panic dmesg captures (default 0)
41254125

41264126

4127+
Name: rootmaster
4128+
Info: Overlay for OpenHydroponics RootMaster board.
4129+
https://openhydroponics.com/hw/rootmaster
4130+
Load: dtoverlay=rootmaster
4131+
Params: <None>
4132+
4133+
41274134
Name: rotary-encoder
41284135
Info: Overlay for GPIO connected rotary encoder.
41294136
Load: dtoverlay=rotary-encoder,<param>=<val>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// redo: ovmerge -c mcp251xfd-overlay.dts,spi0-0,interrupt=25 w1-gpio-overlay.dts,gpiopin=4
2+
3+
/dts-v1/;
4+
/plugin/;
5+
6+
#include <dt-bindings/gpio/gpio.h>
7+
#include <dt-bindings/interrupt-controller/irq.h>
8+
#include <dt-bindings/pinctrl/bcm2835.h>
9+
10+
/ {
11+
compatible = "brcm,bcm2835";
12+
fragment@0 {
13+
target = <&spidev0>;
14+
__overlay__ {
15+
status = "disabled";
16+
};
17+
};
18+
fragment@1 {
19+
target = <&gpio>;
20+
__overlay__ {
21+
mcp251xfd_pins: mcp251xfd_spi0_0_pins {
22+
brcm,pins = <25>;
23+
brcm,function = <BCM2835_FSEL_GPIO_IN>;
24+
};
25+
};
26+
};
27+
fragment@2 {
28+
target-path = "/clocks";
29+
__overlay__ {
30+
clk_mcp251xfd_osc: mcp251xfd-spi0-0-osc {
31+
#clock-cells = <0>;
32+
compatible = "fixed-clock";
33+
clock-frequency = <40000000>;
34+
};
35+
};
36+
};
37+
fragment@3 {
38+
target = <&spi0>;
39+
__overlay__ {
40+
status = "okay";
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
mcp251xfd@0 {
44+
compatible = "microchip,mcp251xfd";
45+
reg = <0>;
46+
pinctrl-names = "default";
47+
pinctrl-0 = <&mcp251xfd_pins>;
48+
spi-max-frequency = <20000000>;
49+
interrupt-parent = <&gpio>;
50+
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
51+
clocks = <&clk_mcp251xfd_osc>;
52+
};
53+
};
54+
};
55+
fragment@4 {
56+
target-path = "/";
57+
__overlay__ {
58+
onewire@4 {
59+
compatible = "w1-gpio";
60+
pinctrl-names = "default";
61+
pinctrl-0 = <&w1_pins>;
62+
gpios = <&gpio 4 0>;
63+
status = "okay";
64+
};
65+
};
66+
};
67+
fragment@5 {
68+
target = <&gpio>;
69+
__overlay__ {
70+
w1_pins: w1_pins@4 {
71+
brcm,pins = <4>;
72+
brcm,function = <0>;
73+
brcm,pull = <0>;
74+
};
75+
};
76+
};
77+
};

0 commit comments

Comments
 (0)