Skip to content

Instantly share code, notes, and snippets.

@macromorgan
macromorgan / bootlog.log
Created March 27, 2023 22:09
Indiedroid Nova Mainline
DDR V1.10 75d050770f typ 23/02/28-20:47:10
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=1024MB
Manufacturer ID:0xff
CH0 RX Vref:29.7%, TX Vref:22.8%,0.0%
CH1 RX Vref:29.7%, TX Vref:23.8%,0.0%
CH2 RX Vref:28.5%, TX Vref:24.8%,0.0%
@macromorgan
macromorgan / 9tripod,rk3588s-9tripod-x3588s.dts
Created March 20, 2023 17:24
Indiedroid Nova Devicetree
/dts-v1/;
/ {
compatible = "9tripod,rk3588s-9tripod-x3588s\0rockchip,rk3588";
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "9Tripod X3588S Board";
aliases {
@macromorgan
macromorgan / 1up.dts
Created February 22, 2023 02:58
Arcade 1-Up
/dts-v1/;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "rockchip,rk3566-evb2-lp4x-v10\0rockchip,rk3566";
interrupt-parent = <0x01>;
model = "Rockchip RK3566 EVB2 LP4X V10 Board";
__symbols__ {
@macromorgan
macromorgan / u-boot.its
Created February 10, 2023 15:10
U-Boot Loadables Order for RK356x
/*
* Copyright (C) 2020 Rockchip Electronic Co.,Ltd
*
* Simple U-boot fit source file containing ATF/OP-TEE/U-Boot/dtb/MCU
*/
/dts-v1/;
/ {
@macromorgan
macromorgan / dmesg
Created January 4, 2023 23:54
rg35xx bootlogs
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.37 (flower@flower-B85M-D2V) (gcc version 4.7.3 20130328 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) ) #18 SMP PREEMPT Sat Dec 3 00:38:31 CST 2022
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: gs705a, model: Actions GS705A board
[ 0.000000] bootconsole [earlycon0] enabled
@macromorgan
macromorgan / rg35xx.dts
Created December 14, 2022 15:09
Device Tree for RG35XX
/dts-v1/;
/ {
#address-cells = <0x01>;
#size-cells = <0x01>;
compatible = "actions,gs705a\0actions,atm7059a";
interrupt-parent = <0x01>;
model = "Actions GS705A board";
chosen {
@macromorgan
macromorgan / panel-samsung-ams495qa01.c
Created December 9, 2022 02:06
Null Pointer Function
// SPDX-License-Identifier: GPL-2.0
/*
* Samsung ams495qa01 MIPI-DSI panel driver
* Copyright (C) 2022 Chris Morgan
*/
#include <drm/drm_mipi_dbi.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
UUUUUERS
ROM
RBS
SHARKL5pro ddr init...
vref_adj_p0x00000050 0x00000050
0x00218787 0x50000022 ddr auto detect cs1 unvalid!!!
From 9640bf9bc67a4a67dcdc88af155db2815674a943 Mon Sep 17 00:00:00 2001
From: Chris Morgan <[email protected]>
Date: Fri, 25 Mar 2022 12:21:32 -0500
Subject: [PATCH] Add support for booting from SFC SPI Flash
Not for upstream.
---
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@macromorgan
macromorgan / 0001-Add-Hynitron-Touchscreen-Driver.patch
Created September 23, 2022 20:58
Hynitron cst3xx Mainline Driver for Anbernic RG353P/RG353V
From 0bb7def0e2e5b6aecab95521f82050e736096da8 Mon Sep 17 00:00:00 2001
From: Chris Morgan <[email protected]>
Date: Fri, 23 Sep 2022 15:55:01 -0500
Subject: [PATCH] Add Hynitron Touchscreen Driver
NOTE - NOT YET FOR UPSTREAM - CODE QUALITY ISSUES REMAIN
---
.../input/touchscreen/hynitron,cst3xx.yaml | 65 +++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
drivers/input/touchscreen/Kconfig | 11 +