Skip to content

Instantly share code, notes, and snippets.

@gnitnaw
Created July 20, 2015 14:25
Show Gist options
  • Save gnitnaw/97ed8cdd220ede655490 to your computer and use it in GitHub Desktop.
Save gnitnaw/97ed8cdd220ede655490 to your computer and use it in GitHub Desktop.
Device tree overlay for mpu6050
// Definitions for MPU6050
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
clock-frequency = <400000>;
inv-mpu6050@68 {
compatible = "invensense,mpu6050";
reg = <0x68>;
orientation = <0xff 0 0 0 1 0 0 0 0xff>;
//interrupt-parent = <&intc>;
//interrupts = <2 21>;
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment