2 * Device Tree overlay for Adafruit PiTFT 2.8" resistive touch screen
10 compatible = "brcm,bcm2835";
36 pitft_pins: pitft_pins {
38 brcm,function = <0 1>; /* in out */
39 brcm,pull = <2 0>; /* pullup none */
47 /* needed to avoid dtc warning */
52 compatible = "ilitek,ili9340";
54 pinctrl-names = "default";
55 pinctrl-0 = <&pitft_pins>;
57 spi-max-frequency = <32000000>;
62 dc-gpios = <&gpio 25 0>;
67 /* needed to avoid dtc warning */
69 #interrupt-cells = <1>;
70 compatible = "st,stmpe610";
73 spi-max-frequency = <500000>;
74 interrupts = <24 2>; /* high-to-low edge triggered */
75 interrupt-parent = <&gpio>;
78 stmpe_touchscreen: stmpe_touchscreen {
79 compatible = "st,stmpe-ts";
85 st,touch-det-delay = <4>;
91 stmpe_gpio: stmpe_gpio {
93 compatible = "st,stmpe-gpio";
95 * only GPIO2 is wired/available
96 * and it is wired to the backlight
98 st,norequest-mask = <0x7b>;
105 target-path = "/soc";
108 compatible = "gpio-backlight";
109 gpios = <&stmpe_gpio 2 0>;
116 speed = <&pitft>,"spi-max-frequency:0";
117 rotate = <&pitft>,"rotate:0", /* fbtft */
118 <&pitft>,"rotation:0"; /* drm */
119 fps = <&pitft>,"fps:0";
120 debug = <&pitft>,"debug:0";
121 drm = <&pitft>,"compatible=adafruit,yx240qv29";
122 touch-invx = <&stmpe_touchscreen>,"touchscreen-inverted-x?";
123 touch-invy = <&stmpe_touchscreen>,"touchscreen-inverted-y?";
124 touch-swapxy = <&stmpe_touchscreen>,"touchscreen-swapped-x-y?";