Skip to content

Instantly share code, notes, and snippets.

@CRTified
Last active August 30, 2025 15:01
Show Gist options
  • Save CRTified/7764bd5462be3808bec83b92fcd4fd45 to your computer and use it in GitHub Desktop.
Save CRTified/7764bd5462be3808bec83b92fcd4fd45 to your computer and use it in GitHub Desktop.
device tree overlay for auto-configuring the BME280 on i2c7 on an rk3399
{
hardware.deviceTree.overlays = [
{
name = "bme280-on-i2c7";
dtsText = ''
/dts-v1/;
/plugin/;
/ {
compatible = "rockchip,rk3399";
fragment@0 {
target = <&i2c7>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&i2c7>;
__overlay__ {
bme280@76 {
compatible = "bosch,bme280";
reg = <0x76>;
status = "okay";
};
};
};
};
'';
}
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment