1 From b429eb7632828f64e5399952da5db10c14f598f8 Mon Sep 17 00:00:00 2001
2 From: Cavon Lee <cavonxx@gmail.com>
3 Date: Mon, 8 Apr 2024 22:49:10 +0800
4 Subject: [PATCH 1022/1085] overlays: Add SunFounder Pironman 5 overlay
7 arch/arm/boot/dts/overlays/Makefile | 1 +
8 arch/arm/boot/dts/overlays/README | 7 +++
9 .../overlays/sunfounder-pironman5-overlay.dts | 51 +++++++++++++++++++
10 3 files changed, 59 insertions(+)
11 create mode 100644 arch/arm/boot/dts/overlays/sunfounder-pironman5-overlay.dts
13 --- a/arch/arm/boot/dts/overlays/Makefile
14 +++ b/arch/arm/boot/dts/overlays/Makefile
15 @@ -272,6 +272,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
19 + sunfounder-pironman5.dtbo \
20 superaudioboard.dtbo \
23 --- a/arch/arm/boot/dts/overlays/README
24 +++ b/arch/arm/boot/dts/overlays/README
25 @@ -4649,6 +4649,13 @@ Params: speed SPI bus
26 reset_pin GPIO pin for RESET (default 25)
29 +Name: sunfounder-pironman5
30 +Info: Overlay for SunFounder Pironman 5
31 +Load: dtoverlay=sunfounder-pironman5,<param>=<val>
32 +Params: ir Enable IR or not (on or off, default on)
33 + ir_pins Change IR receiver pin (default 12)
37 Info: Configures the SuperAudioBoard sound card
38 Load: dtoverlay=superaudioboard,<param>=<val>
40 +++ b/arch/arm/boot/dts/overlays/sunfounder-pironman5-overlay.dts
46 + compatible = "brcm,bcm2835";
63 + gpio_ir: ir-receiver@c {
64 + compatible = "gpio-ir-receiver";
65 + pinctrl-names = "default";
66 + pinctrl-0 = <&gpio_ir_pins>;
68 + // pin number, high or low
69 + gpios = <&gpio 12 1>;
71 + // parameter for keymap name
72 + linux,rc-map-name = "rc-rc6-mce";
81 + gpio_ir_pins: gpio_ir_pins@c {
83 + brcm,function = <0>;
89 + ir = <&gpio_ir>,"status";
90 + ir_pins = <&gpio_ir>,"gpios:4", <&gpio_ir>,"reg:0", <&gpio_ir_pins>,"brcm,pins:0", <&gpio_ir_pins>,"reg:0";