File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
arch/arm/boot/dts/overlays Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
65
65
i2c0-bcm2708.dtbo \
66
66
i2c1-bcm2708.dtbo \
67
67
i2s-gpio28-31.dtbo \
68
+ ilitek251x.dtbo \
68
69
iqaudio-dac.dtbo \
69
70
iqaudio-dacplus.dtbo \
70
71
iqaudio-digi-wm8804-audio.dtbo \
Original file line number Diff line number Diff line change @@ -1123,6 +1123,17 @@ Load: dtoverlay=i2s-gpio28-31
1123
1123
Params: <None>
1124
1124
1125
1125
1126
+ Name: ilitek251x
1127
+ Info: Enables I2C connected Ilitek 251x multiple touch controller using
1128
+ GPIO 4 (pin 7 on GPIO header) for interrupt.
1129
+ Load: dtoverlay=ilitek251x,<param>=<val>
1130
+ Params: interrupt GPIO used for interrupt (default 4)
1131
+ sizex Touchscreen size x, horizontal resolution of
1132
+ touchscreen (in pixels)
1133
+ sizey Touchscreen size y, vertical resolution of
1134
+ touchscreen (in pixels)
1135
+
1136
+
1126
1137
Name: iqaudio-dac
1127
1138
Info: Configures the IQaudio DAC audio card
1128
1139
Load: dtoverlay=iqaudio-dac,<param>
Original file line number Diff line number Diff line change
1
+ // Device tree overlay for I2C connected Ilitek multiple touch controller
2
+ /dts-v1/;
3
+ /plugin/;
4
+
5
+ / {
6
+ compatible = "brcm,bcm2708";
7
+
8
+ fragment@0 {
9
+ target = <&gpio>;
10
+ __overlay__ {
11
+ ili251x_pins: ili251x_pins {
12
+ brcm,pins = <4>; // interrupt
13
+ brcm,function = <0>; // in
14
+ brcm,pull = <2>; // pull-up //
15
+ };
16
+ };
17
+ };
18
+
19
+ fragment@1 {
20
+ target = <&i2c1>;
21
+ __overlay__ {
22
+ #address-cells = <1>;
23
+ #size-cells = <0>;
24
+ status = "okay";
25
+
26
+ ili251x: ili251x@41 {
27
+ compatible = "ilitek,ili251x";
28
+ reg = <0x41>;
29
+ pinctrl-names = "default";
30
+ pinctrl-0 = <&ili251x_pins>;
31
+ interrupt-parent = <&gpio>;
32
+ interrupts = <4 8>; // high-to-low edge triggered
33
+ touchscreen-size-x = <16384>;
34
+ touchscreen-size-y = <9600>;
35
+ };
36
+ };
37
+ };
38
+
39
+ __overrides__ {
40
+ interrupt = <&ili251x_pins>,"brcm,pins:0",
41
+ <&ili251x>,"interrupts:0";
42
+ sizex = <&ili251x>,"touchscreen-size-x:0";
43
+ sizey = <&ili251x>,"touchscreen-size-y:0";
44
+ };
45
+ };
You can’t perform that action at this time.
0 commit comments