Skip to content

Instantly share code, notes, and snippets.

@ThomasKaiser
ThomasKaiser / rk3588-increase-opp-microvolt.dts
Created Sep 28, 2022
rk3588-increase-opp-microvolt.dts
View rk3588-increase-opp-microvolt.dts
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&cluster1_opp_table>;
__overlay__ {
opp-408000000 {
opp-microvolt = <675000 675000 1100000>,
<675000 675000 1100000>;
};
View test-rk3568-thermals.sh
#!/bin/bash
InstallLocation=/usr/local/src
[ -x "${InstallLocation}"/mhz/mhz ] || (echo "You need to run sbc-bench at least once to meet prerequisits" ; exit 1)
TempFile="$(mktemp /tmp/${0##*/}.XXXXXX)"
ReportClockSpeedandTemperature() {
MeasuredSpeed=$(( $(taskset -c 1 "${InstallLocation}"/mhz/mhz 3 100000 | awk -F" cpu_MHz=" '{s+=$2} END {printf "%.0f", s}') / 3 ))
CPUTemp=$(awk '{printf ("%0.1f",$1/1000); }' </sys/devices/virtual/thermal/thermal_zone0/temp)
if [ -s "${TempFile}" ]; then
@ThomasKaiser
ThomasKaiser / gist:24a88bec8e6749bbc723cd6f6e78a3ab
Created Oct 31, 2021
'ioreg -l' output on MacBookPro18,1
View gist:24a88bec8e6749bbc723cd6f6e78a3ab
This file has been truncated, but you can view the full file.
+-o Root <class IORegistryEntry, id 0x100000100, retain 34>
| {
| "IOKitBuildVersion" = "Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000"
| "OS Build Version" = "21A559"
| "OSKernelCPUSubtype" = 18446744072635809794
| "OSKernelCPUType" = 16777228
| "OSPrelinkKextCount" = 5
| "IORegistryPlanes" = {"IOPort"="IOPort","IOPower"="IOPower","IOService"="IOService","IOAccessory"="IOAccessory","IOUSB"="IOUSB","CoreCapture"="CoreCapture","IO80211Plane"="IO80211Plane","IODeviceTree"="IODeviceTree"}
| "IOConsoleLocked" = No
| "IOConsoleUsers" = ({"kCGSSessionOnConsoleKey"=Yes,"kCGSSessionLoginwindowSafeLogin"=No,"kSCSecuritySessionID"=100013,"kCGSessionLongUserNameKey"="Thomas Kaiser","kCGSSessionUserIDKey"=505,"kCGSSessionSystemSafeBoot"=No,"kCGSessionLoginDoneKey"=Yes,"kCGSSessionUserNameKey"="tk","kCGSSessionGroupIDKey"=20,"kCGSSessionIDKey"=257,"kCGSSessionAuditIDKey"=100013})