Skip to content

Instantly share code, notes, and snippets.

@pelwell
pelwell / 0001-BCM270X_DT-Sort-nodes-by-bus-address-and-consolidate.patch
Last active August 29, 2015 14:23
Patches to allow I2C2 to be enabled and used. Use with extreme caution.
From 557b787b67d8037601d4efeb1ed2980156c75a60 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Mon, 22 Jun 2015 14:21:55 +0100
Subject: [PATCH 1/2] BCM270X_DT: Sort nodes by bus address, and consolidate
aliases
---
arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 19 ----------
arch/arm/boot/dts/bcm2708-rpi-b.dts | 19 ----------
arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 21 -----------
@pelwell
pelwell / 0001-gpio-poweroff-Allow-it-to-work-on-Raspberry-Pi.patch
Created June 25, 2015 11:23
Patch to support gpio-poweroff on the Pi
From ac6797373064264c76d839bfe8e9a3c68f828998 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 25 Jun 2015 12:16:11 +0100
Subject: [PATCH] gpio-poweroff: Allow it to work on Raspberry Pi
The Raspberry Pi firmware manages the power-down and reboot
process. To do this it installs a pm_power_off handler, causing
the gpio-poweroff module to abort the probe function.
This patch introduces a "force" DT property that overrides that
@pelwell
pelwell / 0001-BCM2708-Use-upstream-interrupt-driver-on-all-Pi1-s.patch
Created August 19, 2015 08:26
BCM2708: Use upstream interrupt driver on all Pi1's
From 104951f582f52e7b391b4bcea3ebaa13e28a7a8a Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 19 Aug 2015 08:49:11 +0100
Subject: [PATCH] BCM2708: Use upstream interrupt driver on all Pi1's
Although the aim is to delete the old armctrl driver, that can't happen
while non-DT configurations are still supported. This commit enables
use of the new FIQ-enabled upstream irqchip driver when DT is enabled
on all BCM2835-based RPi platforms (Models A, B, A+, B+ & CM).
@pelwell
pelwell / 0001-BCM2708-Use-upstream-interrupt-driver-on-all-Pi1-s.patch
Last active August 29, 2015 14:27
BCM2708: Use upstream interrupt driver on all Pi1's (Take 2)
From f27eee8d093a553d7249a9d8e4231f1f0f781c6e Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 19 Aug 2015 08:49:11 +0100
Subject: [PATCH] BCM2708: Use upstream interrupt driver on all Pi1's
Although the aim is to delete the old armctrl driver, that can't happen
while non-DT configurations are still supported. This commit enables
use of the new FIQ-enabled upstream irqchip driver when DT is enabled
on all BCM2835-based RPi platforms (Models A, B, A+, B+ & CM).
@pelwell
pelwell / 0001-squash-Unbreak-BCM2709-build.patch
Last active August 29, 2015 14:27
squash: Unbreak BCM2709 build
From 1e6be5cac10150d967295575e8192ee2445e167c Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Sat, 22 Aug 2015 16:09:40 +0100
Subject: [PATCH] squash: Unbreak BCM2709 build
---
drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c
@pelwell
pelwell / pr1163.patch
Last active October 13, 2015 08:33
This diff is the result of replacing the downstream I2S driver with the @HiassofT's modified upstream I2S driver after a simple 2835->2708 textual substitution, because I find it makes it easier to understand the consequences of switching. As you can see, the two drivers are virtually identical.
diff --git a/sound/soc/bcm/bcm2708-i2s.c b/sound/soc/bcm/bcm2708-i2s.c
index ad9ca2c..1eeb131 100644
--- a/sound/soc/bcm/bcm2708-i2s.c
+++ b/sound/soc/bcm/bcm2708-i2s.c
@@ -31,8 +31,6 @@
* General Public License for more details.
*/
-#include "bcm2708-i2s.h"
-
From be3a54cb721546a7b1edf47f338c517fd2a904c3 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Wed, 4 Nov 2015 17:37:33 +0000
Subject: [PATCH] vcilcs: Avoid a potential deadlock when very threaded
See: https://github.com/raspberrypi/firmware/issues/449
---
interface/vmcs_host/vcilcs.c | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
@pelwell
pelwell / 0001-Aux-SPI-1-2-implementation.patch
Created February 23, 2016 15:17
Latest version of patch with cosmetic changes
From dc54420b7665e3344062d0c2571c86cc69fb418f Mon Sep 17 00:00:00 2001
From: Fraser <github@frasersdev.net>
Date: Tue, 23 Feb 2016 10:04:37 +1100
Subject: [PATCH] Aux SPI 1&2 implementation
Adds aux spi 1 & 2 devices for compatible Raspberry Pis.
* Minor config of the driver build environment to ensure they get built
for CONFIG_ARCH_BCM2708 & CONFIG_ARCH_BCM2709 devices.
* Adds the aux spi driver into the defconfigs as a module.
* Adds the auxiliary and spi1/2 devices into the device tree in a
@pelwell
pelwell / 0001-bcm43xx-Add-bcm43xx-3wire-variant.patch
Last active February 26, 2020 16:34
BlueZ patches for bcm43430 on RPi
From b4f2b77472aeb967d3a7595e8a965785c7a37c87 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Tue, 16 Feb 2016 16:40:46 +0000
Subject: [PATCH 1/4] bcm43xx: Add bcm43xx-3wire variant
---
tools/hciattach.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/hciattach.c b/tools/hciattach.c
@pelwell
pelwell / 1. before.txt
Last active May 17, 2017 05:09
kernel log output extracted from @Noltari's kernel before and after removing device_tree_address=0x100
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.21-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #872 SMP Wed Apr 6 17:34:14 BST 2016
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] cma: Reserved 8 MiB at 0x3a800000
[ 0.000000] Memory policy: Data cache writealloc