Skip to content

Instantly share code, notes, and snippets.

View TravMurav's full-sized avatar

Nikita Travkin TravMurav

View GitHub Profile
@TravMurav
TravMurav / clk2dot.py
Created July 18, 2021 13:52
Small tool that converts Linux clk_dump into DOT graph
#!/usr/bin/env python3
"""Small tool that converts clk_dump into DOT graph"""
#
# YOu can use it like this:
# ./clk2dot.py FILE | unflatten -fl 20 | dot -Tpng > graph.png
#
import sys
import json
@TravMurav
TravMurav / ZZ__booyi.c
Last active July 30, 2019 13:50
Code generator for downstream qcom panel dtsi's
static int booyi_OTM1287_panel_on(struct booyi_OTM1287_panel *booyi_OTM1287)
{
/* NOTE: This code is autogenerated */
struct mipi_dsi_device *dsi = booyi_OTM1287->dsi;
struct device *dev = &booyi_OTM1287->dsi->dev;
int ret;
/* NOTE: MIPI_DSI_DCS_LONG_WRITE */
ret = mipi_dsi_dcs_write(dsi, MIPI_DCS_NOP, (u8[]){ 0x00 }, 1);
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.2.0 Kernel Configuration
#
#
# Compiler: aarch64-alpine-linux-musl-gcc (Alpine 8.3.0) 8.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
Android Bootloader - UART_DM Initialized!!!
[0] [0] welcome to lk
[0] [0] calling constructors
[0] [0] initializing heap
[0] [0] initializing threads
[0] [0] initializing dpc
[0] [0] initializing timers
[0] [0] creating bootstrap completion thread
[10] [10] top of bootstrap2()
@TravMurav
TravMurav / example.dts
Last active July 13, 2019 18:00
Generate all variants of IDs for DTS
// SPDX-License-Identifier: GPL-2.0-only
/dts-v1/;
// ...
/ {
model = "Wileyfox Swift";
compatible = "wileyfox,crackling", "qcom,msm8916";