aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/overlays/apds9960-overlay.dts
blob: c216932278ab77b719a333df3868b6b395c29992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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";
	};
};