2 * Device Tree overlay for HY28b display shield by Texy
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 gamma = "04 1F 4 7 7 0 7 7 6 0\n0F 00 1 7 4 0 0 0 6 7";
69 init = <0x10000e7 0x0010
124 hy28b_ts: hy28b-ts@1 {
125 compatible = "ti,ads7846";
128 spi-max-frequency = <2000000>;
129 interrupts = <17 2>; /* high-to-low edge triggered */
130 interrupt-parent = <&gpio>;
131 pendown-gpio = <&gpio 17 0>;
132 ti,x-plate-ohms = /bits/ 16 <100>;
133 ti,pressure-max = /bits/ 16 <255>;
138 speed = <&hy28b>,"spi-max-frequency:0";
139 rotate = <&hy28b>,"rotate:0";
140 fps = <&hy28b>,"fps:0";
141 debug = <&hy28b>,"debug:0";
142 xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
143 resetgpio = <&hy28b>,"reset-gpios:4",
144 <&hy28b_pins>, "brcm,pins:4";
145 ledgpio = <&hy28b>,"led-gpios:4",
146 <&hy28b_pins>, "brcm,pins:8";