mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
93 lines
2.7 KiB
Diff
93 lines
2.7 KiB
Diff
From b429eb7632828f64e5399952da5db10c14f598f8 Mon Sep 17 00:00:00 2001
|
|
From: Cavon Lee <cavonxx@gmail.com>
|
|
Date: Mon, 8 Apr 2024 22:49:10 +0800
|
|
Subject: [PATCH 1022/1085] overlays: Add SunFounder Pironman 5 overlay
|
|
|
|
---
|
|
arch/arm/boot/dts/overlays/Makefile | 1 +
|
|
arch/arm/boot/dts/overlays/README | 7 +++
|
|
.../overlays/sunfounder-pironman5-overlay.dts | 51 +++++++++++++++++++
|
|
3 files changed, 59 insertions(+)
|
|
create mode 100644 arch/arm/boot/dts/overlays/sunfounder-pironman5-overlay.dts
|
|
|
|
--- a/arch/arm/boot/dts/overlays/Makefile
|
|
+++ b/arch/arm/boot/dts/overlays/Makefile
|
|
@@ -272,6 +272,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
|
|
ssd1306-spi.dtbo \
|
|
ssd1331-spi.dtbo \
|
|
ssd1351-spi.dtbo \
|
|
+ sunfounder-pironman5.dtbo \
|
|
superaudioboard.dtbo \
|
|
sx150x.dtbo \
|
|
tc358743.dtbo \
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -4649,6 +4649,13 @@ Params: speed SPI bus
|
|
reset_pin GPIO pin for RESET (default 25)
|
|
|
|
|
|
+Name: sunfounder-pironman5
|
|
+Info: Overlay for SunFounder Pironman 5
|
|
+Load: dtoverlay=sunfounder-pironman5,<param>=<val>
|
|
+Params: ir Enable IR or not (on or off, default on)
|
|
+ ir_pins Change IR receiver pin (default 12)
|
|
+
|
|
+
|
|
Name: superaudioboard
|
|
Info: Configures the SuperAudioBoard sound card
|
|
Load: dtoverlay=superaudioboard,<param>=<val>
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/overlays/sunfounder-pironman5-overlay.dts
|
|
@@ -0,0 +1,51 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+/ {
|
|
+ compatible = "brcm,bcm2835";
|
|
+
|
|
+ fragment@0 {
|
|
+ target = <&i2c1>;
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+ fragment@1 {
|
|
+ target = <&spi0>;
|
|
+ __overlay__ {
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+ fragment@2 {
|
|
+ target-path = "/";
|
|
+ __overlay__ {
|
|
+ gpio_ir: ir-receiver@c {
|
|
+ compatible = "gpio-ir-receiver";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&gpio_ir_pins>;
|
|
+
|
|
+ // pin number, high or low
|
|
+ gpios = <&gpio 12 1>;
|
|
+
|
|
+ // parameter for keymap name
|
|
+ linux,rc-map-name = "rc-rc6-mce";
|
|
+
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ fragment@3 {
|
|
+ target = <&gpio>;
|
|
+ __overlay__ {
|
|
+ gpio_ir_pins: gpio_ir_pins@c {
|
|
+ brcm,pins = <12>;
|
|
+ brcm,function = <0>;
|
|
+ brcm,pull = <2>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ __overrides__ {
|
|
+ ir = <&gpio_ir>,"status";
|
|
+ ir_pins = <&gpio_ir>,"gpios:4", <&gpio_ir>,"reg:0", <&gpio_ir_pins>,"brcm,pins:0", <&gpio_ir_pins>,"reg:0";
|
|
+ };
|
|
+};
|