Skip to content

Instantly share code, notes, and snippets.

Phil Elwell pelwell

View GitHub Profile
@pelwell
pelwell / dmesg_4.19.1-v8+.txt
Created Nov 12, 2018
3B+ bootlog on 4.19.1-v8+
View dmesg_4.19.1-v8+.txt
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.19.1-v8+ (phil@buildbot) (gcc version 5.2.1 20151005 (crosstool-NG crosstool-ng-1.22.0-115-g785dbce - aarch64-linux-gnueabi)) #884 SMP PREEMPT Mon Nov 12 13:57:17 GMT 2018
[ 0.000000] Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 8 MiB at 0x000000003ac00000
[ 0.000000] On node 0 totalpages: 242688
[ 0.000000] DMA32 zone: 3792 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
[ 0.000000] DMA32 zone: 242688 pages, LIFO batch:63
@pelwell
pelwell / 0001-bcm2835-sdhost-Reset-controller-DMA-on-timeout.patch
Created Feb 22, 2018
Potential patch to work around occasional SDHOST timeouts
View 0001-bcm2835-sdhost-Reset-controller-DMA-on-timeout.patch
From 84b0474a86349d36a943db70acdde4729f66478e Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 22 Feb 2018 17:18:32 +0000
Subject: [PATCH] bcm2835-sdhost: Reset controller & DMA on timeout
Under some circumstances the SDHOST controller has been observed to
lock up, leading to a timeout. When this happens, give the system a
chance of recovering by resetting the controller and terminating any
DMA transfer.
@pelwell
pelwell / ovmerge
Last active Feb 22, 2018
ovmerge utility
View ovmerge
# ovmerge has been moved to a new repo - https://github.com/raspberrypi/utils
@pelwell
pelwell / 0001-bcm2710-Refactor-bcm2710.dtsi-using-bcm2837.dtsi.patch
Created Oct 20, 2017
[PATCH] bcm2710: Refactor bcm2710.dtsi using bcm2837.dtsi
View 0001-bcm2710-Refactor-bcm2710.dtsi-using-bcm2837.dtsi.patch
From 51404dbec0204dffa1c22fbb3e17d10bd2510902 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Fri, 20 Oct 2017 21:53:45 +0100
Subject: [PATCH] bcm2710: Refactor bcm2710.dtsi using bcm2837.dtsi
The 4.14 tree includes bcm2837.dtsi - use it as a basis for
the downstream bcm2710.dtsi, which only contains a few tweaks.
See: https://github.com/raspberrypi/linux/issues/2235
View 0001-clk-bcm2835-Minimise-clock-jitter-for-PCM-clock.patch
From e954ab5ec7c507e8665764fd5ceb6699bc6f62e6 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Mon, 22 May 2017 13:56:41 +0100
Subject: [PATCH] clk: bcm2835: Minimise clock jitter for PCM clock
Fractional clock dividers generate accurate average frequencies but
with jitter, particularly when the integer divisor is small.
Introduce a new metric of clock accuracy to penalise clocks with a good
average but worse jitter compared to clocks with an average which is no
View MFRC522_test.py
#!/usr/bin/env python
# -*- coding: utf8 -*-
# MFRC522_test.py - Copyright 2017-2019, Phil Elwell, Raspberry Pi (Trading) Ltd.
import RPi.GPIO as GPIO
import spi
import signal
import time
View 0001-SQUASH-Finish-off-the-LOCO-V2-support.patch
From 4706ede91d7a57afd7b0be3bfbc40194e74f79e4 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Sat, 25 Feb 2017 12:41:10 +0000
Subject: [PATCH] SQUASH: Finish off the LOCO-V2 support
---
arch/arm/boot/dts/overlays/Makefile | 1 +
arch/arm/boot/dts/overlays/README | 19 +++++++++++++++++++
arch/arm/configs/bcm2709_defconfig | 1 +
arch/arm/configs/bcmrpi_defconfig | 1 +
View 0001-Increase-commonality-with-Pi3-dts.patch
From 40ad837c248c9a54ad39efb2e45bc16171963b9f Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Mon, 15 Aug 2016 11:03:41 +0100
Subject: [PATCH] Increase commonality with Pi3 dts
---
arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 37 +++++++++++++++++++++++++----------
1 file changed, 27 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/bcm2710-rpi-cm3.dts b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
View ads1015-overlay.dts
/*
* 2016 - Erik Sejr
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
/* ----------- ADS1015 ------------ */
fragment@0 {
View 0001-BCM270X_DT-Add-spi-rtc-overlay-on-SPI0.0.patch
From 0c72a5102ac951c5e34fed336d367b5ff16061f2 Mon Sep 17 00:00:00 2001
From: Thomas Kriechbaumer <thomas@kriechbaumer.name>
Date: Fri, 3 Jun 2016 09:40:44 +0200
Subject: [PATCH] BCM270X_DT: Add spi-rtc overlay on SPI0.0
Initially version supports PCF2123 RTC.
---
arch/arm/boot/dts/overlays/Makefile | 1 +
arch/arm/boot/dts/overlays/README | 6 +++++
arch/arm/boot/dts/overlays/spi-rtc-overlay.dts | 31 ++++++++++++++++++++++++++
You can’t perform that action at this time.