Skip to content

Instantly share code, notes, and snippets.

@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"
@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 <[email protected]>
Date: Fri, 14 Jun 2019 10:36:23 +0200
Subject: [PATCH] soc: bcm: Add more debug to power drivers
Signed-off-by: Stefan Wahren <[email protected]>
---
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 <[email protected]>
Date: Fri, 14 Jun 2019 09:34:25 +0200
Subject: [PATCH] ARM: dts: bcm283x: Temporary disable firmware power driver
Signed-off-by: Stefan Wahren <[email protected]>
---
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 <[email protected]>
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 <[email protected]>
From 92fd5de0f067b5a347828eaaff098e31fd98f0a9 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <[email protected]>
Date: Fri, 18 Jan 2019 09:02:25 -0800
Subject: [PATCH V2 1/4] Bluetooth: Add new quirk for broken local ext features
max_page
Some adapters (e.g. RTL8723CS) advertise that they have more than
2 pages for local ext features, but they don't support any features
declared in these pages. RTL8723CS reports max_page = 2 and declares
support for sync train and secure connection, but it responds with
@lategoodbye
lategoodbye / rpi3plus-mt76-multi_v7_5.log
Created February 18, 2019 21:04
Test results of Patch series 20190215 patch 1,3,5 applied ("mt76usb: do not set urb->num_sgs to 1 for non SG usb host")
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] Linux version 5.0.0-rc6-next-20190218-g6507fbcd5 (jenkins@golem) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 SMP Mon Feb 18 20:28:11 CET 2019
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] CPU: div instructions available: patching division code
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] Memory policy: Data cache writealloc
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] efi: Getting EFI parameters from FDT:
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] efi: UEFI not found.
Feb 16 19:17:34 raspberrypi
From 9ac9831e38b3e816431ae371f4dc429dc2213129 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sun, 17 Feb 2019 11:46:01 +0100
Subject: [PATCH 1/2] Bluetooth: hci_h5: Add device tree support
This adds support for device tree probing of Realtek chipset 8723bs
(e.g. used on Asus Tinker Board).
Signed-off-by: Stefan Wahren <[email protected]>
---
@lategoodbye
lategoodbye / rpi3plus-mt76-arm64_3.log
Last active February 16, 2019 17:21
Test results of Patch series 20190215 patch 1,2,3 applied ("mt76usb: do not set urb->num_sgs to 1 for non SG usb host")
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Linux version 5.0.0-rc6-next-20190215-g9285ceda5 (jenkins@golem) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 SMP PREEMPT Fri Feb 15 19:48:18 CET 2019
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] efi: Getting EFI parameters from FDT:
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] efi: UEFI not found.
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] cma: Reserved 32 MiB at 0x0000000039400000
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] NUMA: No NUMA configuration found
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003b3fffff]
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] NUMA: NODE_DATA [mem 0x3920e840-0x3920ffff]
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Zone ranges: