2 * Device Tree overlay for Adafruit PiTFT 3.5" 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 = "himax,hx8357d", "adafruit,yx350hv15";
54 pinctrl-names = "default";
55 pinctrl-0 = <&pitft_pins>;
57 spi-max-frequency = <32000000>;
62 dc-gpios = <&gpio 25 0>;
67 compatible = "st,stmpe610";
70 spi-max-frequency = <500000>;
71 irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
72 interrupts = <24 2>; /* high-to-low edge triggered */
73 interrupt-parent = <&gpio>;
77 compatible = "st,stmpe-ts";
83 st,touch-det-delay = <4>;
89 stmpe_gpio: stmpe_gpio {
91 compatible = "st,stmpe-gpio";
93 * only GPIO2 is wired/available
94 * and it is wired to the backlight
96 st,norequest-mask = <0x7b>;
103 target-path = "/soc";
105 backlight: backlight {
106 compatible = "gpio-backlight";
107 gpios = <&stmpe_gpio 2 0>;
114 speed = <&pitft>,"spi-max-frequency:0";
115 rotate = <&pitft>,"rotate:0", /* fbtft */
116 <&pitft>,"rotation:0"; /* drm */
117 fps = <&pitft>,"fps:0";
118 debug = <&pitft>,"debug:0";
119 drm = <&pitft>,"compatible=adafruit,yx350hv15",
120 <&pitft>,"backlight:0=",<&backlight>;