From e9a9b3e6e2b44261abd02c27c6d244574011204d Mon Sep 17 00:00:00 2001 From: Andrew Tran Date: Tue, 18 Mar 2014 13:46:33 -0700 Subject: input: touch: maxim: add device tree support -update maxim touch driver to support device tree. -add sample maxim touch device tree in documentation Bug 1468560 Change-Id: Id7a99ca9bdeb53f7d817e33874dac9bca48965a9 Signed-off-by: Andrew Tran Reviewed-on: http://git-master/r/383999 (cherry picked from commit 86384c3e1db348509887c7bbdbe9f3e3c5be8941) Reviewed-on: http://git-master/r/383268 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mitch Luban --- .../bindings/input/touchscreen/maxim_sti_ts.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/maxim_sti_ts.txt (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/input/touchscreen/maxim_sti_ts.txt b/Documentation/devicetree/bindings/input/touchscreen/maxim_sti_ts.txt new file mode 100644 index 000000000000..39902898abf0 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/maxim_sti_ts.txt @@ -0,0 +1,46 @@ +Maxim touch. + +Required properties: +- compatible. +- reg. +- spi-max-frequency. +- interrupt-parent. +- interrupts. +- maxim_sti,reset-gpio. +- maxim_sti,touch_fusion. +- maxim_sti,config_file. +- maxim_sti,fw_name. +- maxim_sti,nl_family. +- maxim_sti,nl_mc_groups. +- maxim_sti,chip_access_method. +- maxim_sti,default_reset_state. +- maxim_sti,tx_buf_size. +- maxim_sti,rx_buf_size. + +Sample: + spi@7000d400 { + maxim_sti@0 { + status = "okay"; + compatible = "maxim,maxim_sti"; + spi-max-frequency = <12000000>; + reg = <0>; /* chip select */ + interrupt-parent = <&gpio>; + interrupts = ; + maxim_sti,reset-gpio = ; + maxim_sti,touch_fusion = "/vendor/bin/touch_fusion"; + maxim_sti,config_file = "/vendor/firmware/touch_fusion.cfg"; + maxim_sti,fw_name = "maxim_fp35.bin"; + maxim_sti,nl_family = "touch_fusion"; + maxim_sti,nl_mc_groups = <5>; + maxim_sti,chip_access_method = <2>; + maxim_sti,default_reset_state = <0>; + maxim_sti,tx_buf_size = <4100>; + maxim_sti,rx_buf_size = <4100>; + controller-data { + nvidia,enable-hw-based-cs; + nvidia,rx-clk-tap-delay = <0>; + nvidia,tx-clk-tap-delay = <0>; + }; + }; + }; + -- cgit v1.2.3