BCM2708: Add core Device Tree support
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / vc4-kms-dpi-hyperpixel4-overlay.dts
1 /*
2  * vc4-kms-dpi-hyperpixel4sq-overlay.dts
3  */
4
5 /dts-v1/;
6 /plugin/;
7
8 #include "vc4-kms-dpi-hyperpixel.dtsi"
9
10 &panel {
11         compatible = "pimoroni,hyperpixel4";
12 };
13
14 / {
15         fragment@11 {
16                 target = <&i2c_gpio>;
17                 __overlay__ {
18                         /* needed to avoid dtc warning */
19                         #address-cells = <1>;
20                         #size-cells = <0>;
21                         ft6236_14: ft6236@14 {
22                                 compatible = "goodix,gt911";
23                                 reg = <0x14>;
24                                 interrupt-parent = <&gpio>;
25                                 interrupts = <27 2>;
26                                 touchscreen-size-x = <480>;
27                                 touchscreen-size-y = <800>;
28                                 touchscreen-x-mm = <51>;
29                                 touchscreen-y-mm = <85>;
30                                 touchscreen-inverted-y;
31                                 touchscreen-swapped-x-y;
32                         };
33                         ft6236_5d: ft6236@5d {
34                                 compatible = "goodix,gt911";
35                                 reg = <0x5d>;
36                                 interrupt-parent = <&gpio>;
37                                 interrupts = <27 2>;
38                                 touchscreen-size-x = <480>;
39                                 touchscreen-size-y = <800>;
40                                 touchscreen-x-mm = <51>;
41                                 touchscreen-y-mm = <85>;
42                                 touchscreen-inverted-y;
43                                 touchscreen-swapped-x-y;
44                         };
45                 };
46         };
47
48         __overrides__ {
49                 disable-touch = <0>,"-3-11";
50                 touchscreen-inverted-x = <&ft6236_14>,"touchscreen-inverted-x?",
51                                          <&ft6236_5d>,"touchscreen-inverted-x?";
52                 touchscreen-inverted-y = <&ft6236_14>,"touchscreen-inverted-y!",
53                                          <&ft6236_5d>,"touchscreen-inverted-y!";
54                 touchscreen-swapped-x-y = <&ft6236_14>,"touchscreen-swapped-x-y!",
55                                           <&ft6236_5d>,"touchscreen-swapped-x-y!";
56         };
57 };