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 / RaspberryPi3APlus_USB_Hub_regdump.diff
Created October 21, 2024 20:46
Register dump diff of RPi 3A+ clk_gtng (good) & no_clk_gtng (bad)
--- regdump.clk_gtng 2024-10-10 17:53:18.000000000 +0200
+++ regdump.no_clk_gtng 2024-10-10 17:49:50.000000000 +0200
@@ -5,7 +5,7 @@
GRSTCTL = 0x80000000
GINTSTS = 0x04000029
GINTMSK = 0xf3000806
-GRXSTSR = 0xd741e004
+GRXSTSR = 0xd741f004
GRXFSIZ = 0x00000306
GNPTXFSIZ = 0x01000306
@lategoodbye
lategoodbye / 0001-usb-add-quirk-for-Microchip-USB-2.0-hub.patch
Created October 20, 2024 20:24
usb: add quirk for Microchip USB 2.0 hub
From 5d570120d9e78f87a74b8fc94310911dc6c65a25 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sun, 20 Oct 2024 22:01:18 +0200
Subject: [PATCH] usb: add quirk for Microchip USB 2.0 hub
The commit d483f034f032 ("usb: dwc2: Skip clock gating on Broadcom
SoCs") revealed an issue on Raspberry Pi 3 B Plus. In case there is
nothing connected to the board via USB during boot, the onboard
Ethernet Microchip LAN7800 doesn't get enumerated.
@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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
---
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 <[email protected]>
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 <[email protected]>
---
@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 <[email protected]>
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"