Skip to content

Instantly share code, notes, and snippets.

@MaffooClock
Created August 23, 2023 17:24
Show Gist options
  • Save MaffooClock/1ce31eb33500bdfc646bb30a43ce943b to your computer and use it in GitHub Desktop.
Save MaffooClock/1ce31eb33500bdfc646bb30a43ce943b to your computer and use it in GitHub Desktop.
Overlay for Armbian to set I2C bus speed on Renegade (ROC-RK3328-CC)
/**
* Execute `armbian-add-overlay i2c-clock-frequency.dts` to
* automatically compile and add to /boot/armbianEnv.txt
*/
/dts-v1/;
/plugin/;
/ {
compatible = "rockchip,rk3328";
fragment@0 {
target = <&i2c0>; // Bus 0
__overlay__ {
clock-frequency = <0x61A80>; // 400 Kbps
//clock-frequency = <0xF4240>; // 1 Mbps
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment