-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an overlay for the AVAGO APDS9960 digital proximity, ambient light, rgb and gesture sensor. Also update overlay README and Makefile. Signed-off-by: Michael Kaplan <m.kaplan@evva.com>
- Loading branch information
1 parent
8d1fa05
commit f220b2b
Showing
3 changed files
with
66 additions
and
0 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
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,57 @@ | ||
// Definitions for APDS-9960 ambient light and gesture sensor | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gpio>; | ||
__overlay__ { | ||
apds9960_pins: apds9960_pins@39 { | ||
brcm,pins = <4>; | ||
brcm,function = <0>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
apds9960: apds@39 { | ||
compatible = "avago,apds9960"; | ||
reg = <0x39>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@3 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
apds9960_irq: apds@39 { | ||
#interrupt-cells=<2>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <4 1>; | ||
}; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
gpiopin = <&apds9960_pins>,"brcm,pins:0", | ||
<&apds9960_irq>,"interrupts:0"; | ||
noints = <0>,"!1!3"; | ||
}; | ||
}; | ||
|