2 * Device Tree overlay for Adafruit PiTFT 2.8" capacitive touch screen
10 compatible = "brcm,bcm2835";
29 pitft_pins: pitft_pins {
31 brcm,function = <0 1>; /* in out */
32 brcm,pull = <2 0>; /* pullup none */
40 /* needed to avoid dtc warning */
45 compatible = "ilitek,ili9340";
47 pinctrl-names = "default";
48 pinctrl-0 = <&pitft_pins>;
50 spi-max-frequency = <32000000>;
55 dc-gpios = <&gpio 25 0>;
64 /* needed to avoid dtc warning */
69 compatible = "focaltech,ft6236";
72 interrupt-parent = <&gpio>;
74 touchscreen-size-x = <240>;
75 touchscreen-size-y = <320>;
81 speed = <&pitft>,"spi-max-frequency:0";
82 rotate = <&pitft>,"rotate:0", /* fbtft */
83 <&pitft>,"rotation:0"; /* drm */
84 fps = <&pitft>,"fps:0";
85 debug = <&pitft>,"debug:0";
86 drm = <&pitft>,"compatible=adafruit,yx240qv29";
87 touch-sizex = <&ft6236>,"touchscreen-size-x:0";
88 touch-sizey = <&ft6236>,"touchscreen-size-y:0";
89 touch-invx = <&ft6236>,"touchscreen-inverted-x?";
90 touch-invy = <&ft6236>,"touchscreen-inverted-y?";
91 touch-swapxy = <&ft6236>,"touchscreen-swapped-x-y?";