b076916
[openwrt/staging/jow.git] /
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
5
6 ---
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
12
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) += \
16 ssd1306-spi.dtbo \
17 ssd1331-spi.dtbo \
18 ssd1351-spi.dtbo \
19 + sunfounder-pironman5.dtbo \
20 superaudioboard.dtbo \
21 sx150x.dtbo \
22 tc358743.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)
27
28
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)
34 +
35 +
36 Name: superaudioboard
37 Info: Configures the SuperAudioBoard sound card
38 Load: dtoverlay=superaudioboard,<param>=<val>
39 --- /dev/null
40 +++ b/arch/arm/boot/dts/overlays/sunfounder-pironman5-overlay.dts
41 @@ -0,0 +1,51 @@
42 +/dts-v1/;
43 +/plugin/;
44 +
45 +/ {
46 + compatible = "brcm,bcm2835";
47 +
48 + fragment@0 {
49 + target = <&i2c1>;
50 + __overlay__ {
51 + status = "okay";
52 + };
53 + };
54 + fragment@1 {
55 + target = <&spi0>;
56 + __overlay__ {
57 + status = "okay";
58 + };
59 + };
60 + fragment@2 {
61 + target-path = "/";
62 + __overlay__ {
63 + gpio_ir: ir-receiver@c {
64 + compatible = "gpio-ir-receiver";
65 + pinctrl-names = "default";
66 + pinctrl-0 = <&gpio_ir_pins>;
67 +
68 + // pin number, high or low
69 + gpios = <&gpio 12 1>;
70 +
71 + // parameter for keymap name
72 + linux,rc-map-name = "rc-rc6-mce";
73 +
74 + status = "okay";
75 + };
76 + };
77 + };
78 + fragment@3 {
79 + target = <&gpio>;
80 + __overlay__ {
81 + gpio_ir_pins: gpio_ir_pins@c {
82 + brcm,pins = <12>;
83 + brcm,function = <0>;
84 + brcm,pull = <2>;
85 + };
86 + };
87 + };
88 + __overrides__ {
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";
91 + };
92 +};