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.
Merge pull request hardkernel#47 from yan-wyb/khadas-vims-4.9.y
Khadas vims 4.9.y
- Loading branch information
Showing
10 changed files
with
176 additions
and
6 deletions.
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
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,31 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/meson-g12a-gpio.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
fragment@0 { | ||
target = <&i2c0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
|
||
mpu6050@68 { | ||
compatible = "invensense,mpu6050"; | ||
reg = <0x68>; | ||
int-gpio = <&gpio GPIOH_5 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 */ | ||
}; | ||
}; | ||
}; | ||
|
||
}; |
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
30 changes: 30 additions & 0 deletions
30
arch/arm64/boot/dts/amlogic/overlays/kvim2/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,30 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/meson-g12a-gpio.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
fragment@0 { | ||
target = <&i2c0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
|
||
mpu6050@68 { | ||
compatible = "invensense,mpu6050"; | ||
reg = <0x68>; | ||
int-gpio = <&gpio GPIOH_5 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 */ | ||
}; | ||
}; | ||
}; | ||
}; |
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/kvim3/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; | ||
}; | ||
}; | ||
|
||
}; |
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; | ||
}; | ||
}; | ||
|
||
}; |
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
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