Last active
August 30, 2025 15:01
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| 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