Skip to content

Instantly share code, notes, and snippets.

View m-weigand's full-sized avatar

Maximilian Weigand m-weigand

  • Bonn, Germany
  • 07:22 (UTC +02:00)
View GitHub Profile
@m-weigand
m-weigand / pn_testing.md
Last active April 17, 2024 16:08
Pine64 Debian image testing

Pine64 Kernel Notes

Things to implement/test

  • Simple gui for pen buttons/configurations (kernel stuff will be handled by the dbus service for non-root usage)
  • How to boot into maskrom from linux
  • Documentation/gui on how to configure Suspend-on-cover close/resume
  • kexec:
    • kexec can be used to reboot into another kernel
  • kdump works
@m-weigand
m-weigand / gist:872427df624293625c64045f364696a3
Created December 9, 2022 18:33
ebc: Maybe improved global refreshes
diff --git a/drivers/gpu/drm/rockchip/rockchip_ebc.c b/drivers/gpu/drm/rockchip/rockchip_ebc.c
@@ -242,6 +248,10 @@ static int ioctl_trigger_global_refresh(struct drm_device *dev, void *data,
ebc->do_one_full_refresh = true;
spin_unlock(&ebc->refresh_once_lock);
// try to trigger the refresh immediately
+ /* if (ebc->refresh_thread->is_parked) */
+ /* printk(KERN_INFO "[rockchip_ebc] thread parked"); */
+
+ kthread_unpark(ebc->refresh_thread);
@m-weigand
m-weigand / rga.patch
Created August 15, 2022 16:49
first attempt to enable the RGA2 (enhanced) block in the rk3566 from the Pinenote
diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
index 194f6141997d..1ec932c5293d 100644
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
@@ -593,6 +593,23 @@ gpu: gpu@fde60000 {
status = "disabled";
};
+ rk_rga: rk_rga@fdeb0000 {
+ compatible = "rockchip,rga2";
@m-weigand
m-weigand / gist:6ee498b60dae3f15ebc8fc5841def31c
Created May 9, 2022 19:22
Connecting a Logitech K480 Bluetooth keyboard to the Pinenote (Debian Bookworm)
# Pinenote bluetooth connection to Logitech K480 keyboard
* System: Debian sid
* Kernel: pinenote-next from smaeul with a few minor additions:
* Modules hidp and uhid compiled as modules.
* cyttsp5 touchscreen driver from pgwipeout
root@pinenote:~# dmesg | grep Bluetooth
[ 3.580865] Bluetooth: Core ver 2.22
[ 3.581852] Bluetooth: HCI device and connection manager initialized
@m-weigand
m-weigand / ipynb_to_gallery.py
Created March 30, 2021 11:59 — forked from chsasank/ipynb_to_gallery.py
Convert jupyter notebook to sphinx gallery notebook styled examples.