2 * Device Tree overlay for HY28b display shield by Texy.
3 * Modified for 2017 version with ILI9325 D chip
10 compatible = "brcm,bcm2835";
36 hy28b_pins: hy28b_pins {
37 brcm,pins = <17 25 18>;
38 brcm,function = <0 1 1>; /* in out out */
46 /* needed to avoid dtc warning */
51 compatible = "ilitek,ili9325";
53 pinctrl-names = "default";
54 pinctrl-0 = <&hy28b_pins>;
56 spi-max-frequency = <48000000>;
64 reset-gpios = <&gpio 25 1>;
65 led-gpios = <&gpio 18 1>;
67 init = <0x10000e5 0x78F0
128 hy28b_ts: hy28b-ts@1 {
129 compatible = "ti,ads7846";
132 spi-max-frequency = <2000000>;
133 interrupts = <17 2>; /* high-to-low edge triggered */
134 interrupt-parent = <&gpio>;
135 pendown-gpio = <&gpio 17 0>;
136 ti,x-plate-ohms = /bits/ 16 <100>;
137 ti,pressure-max = /bits/ 16 <255>;
142 speed = <&hy28b>,"spi-max-frequency:0";
143 rotate = <&hy28b>,"rotate:0";
144 fps = <&hy28b>,"fps:0";
145 debug = <&hy28b>,"debug:0";
146 xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
147 resetgpio = <&hy28b>,"reset-gpios:4",
148 <&hy28b_pins>, "brcm,pins:4";
149 ledgpio = <&hy28b>,"led-gpios:4",
150 <&hy28b_pins>, "brcm,pins:8";