Skip to content

Commit b429eb7

Browse files
cavonleepelwell
authored andcommitted
overlays: Add SunFounder Pironman 5 overlay
1 parent b654c77 commit b429eb7

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
272272
ssd1306-spi.dtbo \
273273
ssd1331-spi.dtbo \
274274
ssd1351-spi.dtbo \
275+
sunfounder-pironman5.dtbo \
275276
superaudioboard.dtbo \
276277
sx150x.dtbo \
277278
tc358743.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4649,6 +4649,13 @@ Params: speed SPI bus speed (default 4500000)
46494649
reset_pin GPIO pin for RESET (default 25)
46504650

46514651

4652+
Name: sunfounder-pironman5
4653+
Info: Overlay for SunFounder Pironman 5
4654+
Load: dtoverlay=sunfounder-pironman5,<param>=<val>
4655+
Params: ir Enable IR or not (on or off, default on)
4656+
ir_pins Change IR receiver pin (default 12)
4657+
4658+
46524659
Name: superaudioboard
46534660
Info: Configures the SuperAudioBoard sound card
46544661
Load: dtoverlay=superaudioboard,<param>=<val>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "brcm,bcm2835";
6+
7+
fragment@0 {
8+
target = <&i2c1>;
9+
__overlay__ {
10+
status = "okay";
11+
};
12+
};
13+
fragment@1 {
14+
target = <&spi0>;
15+
__overlay__ {
16+
status = "okay";
17+
};
18+
};
19+
fragment@2 {
20+
target-path = "/";
21+
__overlay__ {
22+
gpio_ir: ir-receiver@c {
23+
compatible = "gpio-ir-receiver";
24+
pinctrl-names = "default";
25+
pinctrl-0 = <&gpio_ir_pins>;
26+
27+
// pin number, high or low
28+
gpios = <&gpio 12 1>;
29+
30+
// parameter for keymap name
31+
linux,rc-map-name = "rc-rc6-mce";
32+
33+
status = "okay";
34+
};
35+
};
36+
};
37+
fragment@3 {
38+
target = <&gpio>;
39+
__overlay__ {
40+
gpio_ir_pins: gpio_ir_pins@c {
41+
brcm,pins = <12>;
42+
brcm,function = <0>;
43+
brcm,pull = <2>;
44+
};
45+
};
46+
};
47+
__overrides__ {
48+
ir = <&gpio_ir>,"status";
49+
ir_pins = <&gpio_ir>,"gpios:4", <&gpio_ir>,"reg:0", <&gpio_ir_pins>,"brcm,pins:0", <&gpio_ir_pins>,"reg:0";
50+
};
51+
};

0 commit comments

Comments
 (0)