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-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(-)
@lategoodbye
lategoodbye / 0001-tty-bcm2835aux-Dynamically-adjust-to-VPU-clock-chang.patch
Created March 23, 2019 11:21
Dynamically adjust BCM2835 AUX UART to VPU clock changes (currently untested)
From 2a183ad2bdcfb773a8ef9009b49a14ede10f2c53 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <stefan.wahren@i2se.com>
Date: Sat, 23 Mar 2019 12:13:08 +0100
Subject: [PATCH] tty: bcm2835aux: Dynamically adjust to VPU clock changes
The BCM2835 AUX UART clock is derived from the VPU clock, so in case
this clock changes (triggered by cpufreq) we need to reprogram the
clock dividers.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>