Skip to content

Instantly share code, notes, and snippets.

View lategoodbye's full-sized avatar

Stefan Wahren lategoodbye

  • chargebyte GmbH
  • Germany
View GitHub Profile
@lategoodbye
lategoodbye / 0001-HACK-firmware-raspberrypi-Prevent-suspend-to-idle.patch
Created September 8, 2024 17:15
HACK: firmware: raspberrypi: Prevent suspend to idle
From 5b1e5b66ec4f1e53d0abe6ca44e6f79499bfd855 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <wahrenst@gmx.net>
Date: Sun, 8 Sep 2024 19:08:30 +0200
Subject: [PATCH] HACK: firmware: raspberrypi: Prevent suspend to idle
This ugly hack prevents suspend to idle on all Raspberry Pi
boards. This might be a temporary solutions for distributions
which needs to enable suspend to idle in general, but prevent
it for the Raspberry Pi which doesn't support it yet.
@lategoodbye
lategoodbye / 0001-net-mdio-Provide-an-useful-error-when-of_phy_connect.patch
Created June 21, 2021 10:34
net: mdio: Provide an useful error when of_phy_connect fails
From 32ab471ccc5d2219e7fb8dac05f807dd832ff47b Mon Sep 17 00:00:00 2001
From: Stefan Wahren <stefan.wahren@i2se.com>
Date: Mon, 21 Jun 2021 12:30:30 +0200
Subject: [PATCH] net: mdio: Provide an useful error when of_phy_connect fails
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
drivers/net/mdio/of_mdio.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@lategoodbye
lategoodbye / 0001-staging-bcm2835-camera-add-more-scene-modes.patch
Created December 6, 2020 21:04
staging: bcm2835-camera: add more scene modes
From d6daaa717685d7ce11d271ddb3a7ba3ddd5c03d3 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <stefan.wahren@i2se.com>
Date: Sun, 6 Dec 2020 21:57:21 +0100
Subject: [PATCH] staging: bcm2835-camera: add more scene modes
The MMAL interfaces support a lot of exposure modes, so add the relevant
scene modes.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
@lategoodbye
lategoodbye / rpi4-mmc_ddr_3_3v_support.patch
Created August 23, 2020 19:33
Enable MMC DDR 3.3V support for Raspberry Pi 4
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
index 21b20e3..8047c22 100644
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
@@ -174,6 +174,7 @@
&emmc2 {
vqmmc-supply = <&sd_io_1v8_reg>;
broken-cd;
+ mmc-ddr-3_3v;
status = "okay";
@lategoodbye
lategoodbye / libmbus_static_library.patch
Created July 15, 2020 11:05
WIP: build static library of libmbus
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c47a94c..9230a64 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,8 +95,8 @@ set(PACKAGE_VERSION "${PROJECT_VERSION}")
set(VERSION "${PROJECT_VERSION}")
configure_file(${CMAKE_CURRENT_LIST_DIR}/mbus/config.h.in ${CMAKE_CURRENT_LIST_DIR}/config.h @ONLY)
-add_library(
- ${PROJECT_NAME}
@lategoodbye
lategoodbye / 0001-Bluetooth-hci_bcm-Drive-RTS-only-for-BCM43438.patch
Created December 17, 2019 12:42
Bluetooth: hci_bcm: Drive RTS only for BCM43438
From 8356446384b8e18459229363cf63755fe4e2432c Mon Sep 17 00:00:00 2001
From: Stefan Wahren <wahrenst@gmx.net>
Date: Tue, 17 Dec 2019 13:26:16 +0100
Subject: [PATCH] Bluetooth: hci_bcm: Drive RTS only for BCM43438
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The commit 3347a80965b3 ("Bluetooth: hci_bcm: Fix RTS handling during
startup") is causing at least a regression for AP6256 on Orange Pi 3.
@lategoodbye
lategoodbye / fix-cpu-temperature.patch
Created November 28, 2019 18:30
Fix the critical CPU temperature of BCM283x
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index 3caaa57..8394916 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -37,7 +37,7 @@
trips {
cpu-crit {
- temperature = <80000>;
+ temperature = <90000>;
@lategoodbye
lategoodbye / wpa_supplicant.conf
Created June 15, 2019 16:22
Configuration for brcmf_cfg80211_set_pmk warning
country=DE
network={
ssid="xxx"
scan_ssid=1
key_mgmt=WPA-EAP
eap=TTLS
phase1="peaplable=0"
phase2="auth=PAP"
identity="xxx"
@lategoodbye
lategoodbye / 0001-soc-bcm-Add-more-debug-to-power-drivers.patch
Last active June 19, 2019 17:40
Add more debug to BCM2835 power drivers
From 1be26a8b6e87266f50751f1cfed3fe54b71d75db Mon Sep 17 00:00:00 2001
From: Stefan Wahren <wahrenst@gmx.net>
Date: Fri, 14 Jun 2019 10:36:23 +0200
Subject: [PATCH] soc: bcm: Add more debug to power drivers
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
drivers/soc/bcm/bcm2835-power.c | 14 ++++++++++++++
drivers/soc/bcm/raspberrypi-power.c | 4 ++++
2 files changed, 18 insertions(+)
@lategoodbye
lategoodbye / 0001-ARM-dts-bcm283x-Temporary-disable-firmware-power-dri.patch
Created June 14, 2019 07:38
Temporary disable firmware power driver (be aware: also disable USB)
From 3fa341e9da2449fdad675d17c07dba5997906340 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <wahrenst@gmx.net>
Date: Fri, 14 Jun 2019 09:34:25 +0200
Subject: [PATCH] ARM: dts: bcm283x: Temporary disable firmware power driver
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
arch/arm/boot/dts/bcm2835-rpi.dtsi | 20 --------------------
1 file changed, 20 deletions(-)