Skip to content

Instantly share code, notes, and snippets.

View mntmn's full-sized avatar

minute mntmn

View GitHub Profile
@mntmn
mntmn / imx8mp-qca9377-sdio.txt
Created December 22, 2022 15:17
problem with imx8mp and qca9377 (sdio)
[ 104.713390] ath10k_sdio mmc1:0001:1: qca9377 hw1.1 sdio target 0x05020001 chip_id 0x00000000 sub 0000:0000
[ 104.723320] ath10k_sdio mmc1:0001:1: kconfig debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
[ 104.732089] ath10k_sdio mmc1:0001:1: firmware ver WLAN.TF.1.1.1-00061-QCATFSWPZ-1 api 5 features ignore-otp crc32 7746e551
[ 104.907190] ath10k_sdio mmc1:0001:1: failed to fetch board data for bus=sdio,vendor=0271,device=0701,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA9377/hw1.0/board-2.bin
[ 104.924956] ath10k_sdio mmc1:0001:1: board_file api 1 bmi_id N/A crc32 544289f7
[ 106.030654] ath10k_sdio mmc1:0001:1: htt-ver 3.32 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 116.190436] mmc1: Timeout waiting for hardware interrupt.
[ 116.195927] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 116.202448] mmc1: sdhci: Sys addr: 0x44ed4000 | Version: 0x00000002
[ 116.208968] mmc1: sdhci: Blk size: 0x00000100 | Blk cnt: 0x0000001f

MNT Reform 2 Kernel Patches as of 2020-05-02

Innolux Panel Definition

  • gpu/drm/panel/panel-simple.c
  • mntref2-panel-innolux.patch
+static const struct drm_display_mode innolux_n125hce_gn1_mode = {
+       .clock = 162000,
@mntmn
mntmn / mntreform2-dts-displaybridges.dts
Last active April 30, 2020 14:43
Display bridge part of MNT Reform 2 DTS
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright 2018 Boundary Devices
* Copyright 2019-2020 MNT Research GmbH
*/
/dts-v1/;
#include "dt-bindings/input/input.h"
#include "dt-bindings/pwm/pwm.h"

Keybase proof

I hereby claim:

  • I am mntmn on github.
  • I am mntmn (https://keybase.io/mntmn) on keybase.
  • I have a public key ASAkklc_LCbNHbwBCqDlO9EizQGNWFn6QVks2i7WPqIv9wo

To claim this, I am signing this object:

@mntmn
mntmn / azoteq_iqs550.ino
Created May 8, 2019 20:20
Minimal Azoteq IQS550 / ProxSense TPS65 driver for Arduino (USB touchpad)
#define PIN_RST 7
#define PIN_RDY 8
#define ADDR_APP 0x74
#define ADDR_BOOT 0x74^0x40
#include <Wire.h>
#include <stdint.h>
void setup()
@mntmn
mntmn / bme680_temp.ino
Created May 7, 2019 22:23
Kind of minimal BME680 temperature reader for Arduino
#include <Wire.h>
#include <stdint.h>
#define ADDR 0x77
#define addr_ctrl_meas 0x74
#define addr_temp 0x22
#define BME680_COEFF_ADDR1 0x89
#define BME680_COEFF_ADDR2 0xe1
#define BME680_COEFF_ADDR1_LEN 25
@mntmn
mntmn / init-el-notmuch-stuff.el
Created May 2, 2019 16:08
Notmuch workflow related snippets of emacs init.el
; fetch-mail function
(defun fetch-mail ()
"Launches ~/bin/fetch-mail"
(interactive)
(shell-command "fetch-mail")
(dolist (win (window-list))
(when (string= (buffer-name (window-buffer win)) "*Shell Command Output*")
(delete-window win)
;(kill-buffer "*Shell Command Output*")
@mntmn
mntmn / fetch-mail.sh
Created May 2, 2019 16:04
mntmn's fetch-mail script for notmuch/offlineimap
#!/bin/bash
# purge deleted mail!
notmuch search '--output=files' tag:deleted | xargs -l rm -f
# sync and fill address book
offlineimap -u basic -q && notmuch new && notmuch tag +sent -- folder:Sent and not tag:sent && nottoomuch-addresses.sh --update
notmuch tag -inbox -unread -- tag:sent
mntmn's igalia chromium for wayland patches to work around 2 startup crashes.
platform:
- Linux irata-debian 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18) x86_64 GNU/Linux
- vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz
set s1r 0
set s1g 0
set s1b 0
proc updateStrip {} {
global s1r s1g s1b
puts "$s1r $s1g $s1b"
exec nc -u 192.168.7.2 3333 -c "echo 3/1/$s1r/$s1g/$s1b"
exec nc -u 192.168.7.2 3333 -c "echo 2/1/$s1r/$s1g/$s1b"
}