2 * Device Tree overlay for MZ61581-PI-EXT 2014.12.28 by Tontec
10 compatible = "brcm,bcm2835";
36 mz61581_pins: mz61581_pins {
37 brcm,pins = <4 15 18 25>;
38 brcm,function = <0 1 1 1>; /* in out out out */
46 /* needed to avoid dtc warning */
51 compatible = "samsung,s6d02a1";
53 pinctrl-names = "default";
54 pinctrl-0 = <&mz61581_pins>;
56 spi-max-frequency = <128000000>;
68 reset-gpios = <&gpio 15 1>;
69 dc-gpios = <&gpio 25 0>;
70 led-gpios = <&gpio 18 0>;
75 0x10000b3 0x02 0x00 0x00 0x00
76 0x10000c0 0x13 0x3b 0x00 0x02 0x00 0x01 0x00 0x43
77 0x10000c1 0x08 0x16 0x08 0x08
78 0x10000c4 0x11 0x07 0x03 0x03
80 0x10000c8 0x03 0x03 0x13 0x5c 0x03 0x07 0x14 0x08 0x00 0x21 0x08 0x14 0x07 0x53 0x0c 0x13 0x03 0x03 0x21 0x00
85 0x10000d0 0x07 0x07 0x1d 0x03
86 0x10000d1 0x03 0x30 0x10
87 0x10000d2 0x03 0x14 0x04
91 /* This is a workaround to make sure the init sequence slows down and doesn't fail */
95 mz61581_ts: mz61581_ts@1 {
96 compatible = "ti,ads7846";
99 spi-max-frequency = <2000000>;
100 interrupts = <4 2>; /* high-to-low edge triggered */
101 interrupt-parent = <&gpio>;
102 pendown-gpio = <&gpio 4 0>;
104 ti,x-plate-ohms = /bits/ 16 <60>;
105 ti,pressure-max = /bits/ 16 <255>;
110 speed = <&mz61581>, "spi-max-frequency:0";
111 rotate = <&mz61581>, "rotate:0";
112 fps = <&mz61581>, "fps:0";
113 txbuflen = <&mz61581>, "txbuflen:0";
114 debug = <&mz61581>, "debug:0";
115 xohms = <&mz61581_ts>,"ti,x-plate-ohms;0";