Input: add Raydium I2C touchscreen driver
This adds support for Raydium I2C touch controllers compatible with RM32380. Signed-off-by: Jeffrey Lin <jeffrey.lin@rad-ic.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
		
							parent
							
								
									72fb4765ac
								
							
						
					
					
						commit
						48a2b78348
					
				
							
								
								
									
										20
									
								
								Documentation/devicetree/bindings/input/raydium_i2c_ts.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Documentation/devicetree/bindings/input/raydium_i2c_ts.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | |||||||
|  | Raydium I2C touchscreen | ||||||
|  | 
 | ||||||
|  | Required properties: | ||||||
|  | - compatible: must be "raydium,rm32380" | ||||||
|  | - reg: The I2C address of the device | ||||||
|  | - interrupt-parent: the phandle for the interrupt controller | ||||||
|  | - interrupts: interrupt to which the chip is connected | ||||||
|  |     See ../interrupt-controller/interrupts.txt | ||||||
|  | Optional properties: | ||||||
|  | - avdd-supply: analog power supply needed to power device | ||||||
|  | - vccio-supply: IO Power source | ||||||
|  | - reset-gpios: reset gpio the chip is connected to. | ||||||
|  | 
 | ||||||
|  | Example: | ||||||
|  | 	touchscreen@39 { | ||||||
|  | 		compatible = "raydium,rm32380"; | ||||||
|  | 		reg = <0x39>; | ||||||
|  | 		interrupt-parent = <&gpio>; | ||||||
|  | 		interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>; | ||||||
|  | 	}; | ||||||
| @ -191,6 +191,7 @@ raidsonic	RaidSonic Technology GmbH | |||||||
| ralink	Mediatek/Ralink Technology Corp. | ralink	Mediatek/Ralink Technology Corp. | ||||||
| ramtron	Ramtron International | ramtron	Ramtron International | ||||||
| raspberrypi	Raspberry Pi Foundation | raspberrypi	Raspberry Pi Foundation | ||||||
|  | raydium	Raydium Semiconductor Corp. | ||||||
| realtek Realtek Semiconductor Corp. | realtek Realtek Semiconductor Corp. | ||||||
| renesas	Renesas Electronics Corporation | renesas	Renesas Electronics Corporation | ||||||
| richtek	Richtek Technology Corporation | richtek	Richtek Technology Corporation | ||||||
|  | |||||||
| @ -1037,6 +1037,19 @@ config TOUCHSCREEN_PCAP | |||||||
| 	  To compile this driver as a module, choose M here: the | 	  To compile this driver as a module, choose M here: the | ||||||
| 	  module will be called pcap_ts. | 	  module will be called pcap_ts. | ||||||
| 
 | 
 | ||||||
|  | config TOUCHSCREEN_RM_TS | ||||||
|  | 	tristate "Raydium I2C Touchscreen" | ||||||
|  | 	depends on I2C | ||||||
|  | 	depends on GPIOLIB || COMPILE_TEST | ||||||
|  | 	help | ||||||
|  | 	  Say Y here if you have Raydium series I2C touchscreen, | ||||||
|  | 	  such as RM32380, connected to your system. | ||||||
|  | 
 | ||||||
|  | 	  If unsure, say N. | ||||||
|  | 
 | ||||||
|  | 	  To compile this driver as a module, choose M here: the | ||||||
|  | 	  module will be called raydium_i2c_ts. | ||||||
|  | 
 | ||||||
| config TOUCHSCREEN_ST1232 | config TOUCHSCREEN_ST1232 | ||||||
| 	tristate "Sitronix ST1232 touchscreen controllers" | 	tristate "Sitronix ST1232 touchscreen controllers" | ||||||
| 	depends on I2C | 	depends on I2C | ||||||
|  | |||||||
| @ -61,6 +61,7 @@ obj-$(CONFIG_TOUCHSCREEN_USB_COMPOSITE)	+= usbtouchscreen.o | |||||||
| obj-$(CONFIG_TOUCHSCREEN_PCAP)		+= pcap_ts.o | obj-$(CONFIG_TOUCHSCREEN_PCAP)		+= pcap_ts.o | ||||||
| obj-$(CONFIG_TOUCHSCREEN_PENMOUNT)	+= penmount.o | obj-$(CONFIG_TOUCHSCREEN_PENMOUNT)	+= penmount.o | ||||||
| obj-$(CONFIG_TOUCHSCREEN_PIXCIR)	+= pixcir_i2c_ts.o | obj-$(CONFIG_TOUCHSCREEN_PIXCIR)	+= pixcir_i2c_ts.o | ||||||
|  | obj-$(CONFIG_TOUCHSCREEN_RM_TS)		+= raydium_i2c_ts.o | ||||||
| obj-$(CONFIG_TOUCHSCREEN_S3C2410)	+= s3c2410_ts.o | obj-$(CONFIG_TOUCHSCREEN_S3C2410)	+= s3c2410_ts.o | ||||||
| obj-$(CONFIG_TOUCHSCREEN_ST1232)	+= st1232.o | obj-$(CONFIG_TOUCHSCREEN_ST1232)	+= st1232.o | ||||||
| obj-$(CONFIG_TOUCHSCREEN_STMPE)		+= stmpe-ts.o | obj-$(CONFIG_TOUCHSCREEN_STMPE)		+= stmpe-ts.o | ||||||
|  | |||||||
							
								
								
									
										1215
									
								
								drivers/input/touchscreen/raydium_i2c_ts.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1215
									
								
								drivers/input/touchscreen/raydium_i2c_ts.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user