2 * Device Tree overlay for PiScreen2 3.5" TFT with resistive touch by Ozzmaker.com
10 compatible = "brcm,bcm2835";
36 piscreen2_pins: piscreen2_pins {
37 brcm,pins = <17 25 24 22>;
38 brcm,function = <0 1 1 1>; /* in out out out */
46 /* needed to avoid dtc warning */
50 piscreen2: piscreen2@0{
51 compatible = "ilitek,ili9486";
53 pinctrl-names = "default";
54 pinctrl-0 = <&piscreen2_pins>;
56 spi-max-frequency = <64000000>;
62 reset-gpios = <&gpio 25 1>;
63 dc-gpios = <&gpio 24 0>;
64 led-gpios = <&gpio 22 0>;
67 init = <0x10000b0 0x00
74 0x10000c5 0x00 0x00 0x00 0x00
76 0x10000f7 0xa9 0x51 0x2c 0x2
84 piscreen2_ts: piscreen2-ts@1 {
85 compatible = "ti,ads7846";
88 spi-max-frequency = <2000000>;
89 interrupts = <17 2>; /* high-to-low edge triggered */
90 interrupt-parent = <&gpio>;
91 pendown-gpio = <&gpio 17 0>;
93 ti,x-plate-ohms = /bits/ 16 <100>;
94 ti,pressure-max = /bits/ 16 <255>;
99 speed = <&piscreen2>,"spi-max-frequency:0";
100 rotate = <&piscreen2>,"rotate:0";
101 fps = <&piscreen2>,"fps:0";
102 debug = <&piscreen2>,"debug:0";
103 xohms = <&piscreen2_ts>,"ti,x-plate-ohms;0";