forked from hardkernel/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: VIM3L: add mpu6050-i2c overlays
Signed-off-by: Frank <frank@khadas.com>
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
50 changes: 50 additions & 0 deletions
50
arch/arm64/boot/dts/amlogic/overlays/kvim3l/mpu6050-i2c.dts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/meson-g12a-gpio.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
fragment@0 { | ||
target = <&spicc1>; | ||
|
||
__overlay__ { | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&i2c3>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
|
||
mpu6050@68 { | ||
compatible = "invensense,mpu6050"; | ||
reg = <0x68>; | ||
int-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; | ||
mount-matrix = "-0.984807753012208", /* x0 */ | ||
"0", /* y0 */ | ||
"-0.173648177666930", /* z0 */ | ||
"0", /* x1 */ | ||
"-1", /* y1 */ | ||
"0", /* z1 */ | ||
"-0.173648177666930", /* x2 */ | ||
"0", /* y2 */ | ||
"0.984807753012208"; /* z2 */ | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&pwm_ef>; | ||
|
||
__overlay__ { | ||
// NOTE: This syntax DOES NOT work on device tree overlays | ||
// If you want to use mpu6050, you have to remove pwm_f overlay | ||
/delete-property/ pinctrl-names; | ||
/delete-property/ pinctrl-0; | ||
}; | ||
}; | ||
|
||
}; |