Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecb434f8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: pat9125: add support of sending rotating switch events"

parents f4c5dc4c 305a09ad
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
PixArt pat9125 rotating switch

The Pixart's PAT9125 controller is connected to the host processor via I2C.
It detects the rotation when user rotates the switch and generates interrupt
to the Host processor. The host processor reads the direction and number of
steps over I2C and passes the data to the rest of the system.

Required properties:
 - compatible	: should be "pixart,pat9125".
 - reg	: i2c slave address of the device.
 - interrupt-parent	: parent of interrupt.
 - interrupts	: interrupt to indicate motion of the rotating switch.

Optional properties:
 - pixart,inverse-x 	: boolean, use this to invert the x data before sending it to input
			framework.
 - pixart,inverse-y 	: boolean, use this to invert the y data before sending it to input
			framework.
 - pixart,press-enabled : boolean, use this to enable detection of pressing the button.

Required properties if 'pixart,press-enabled' DT property is defined:
 - pixart,press-keycode	: keycode to be sent when press is detected by the driver.

Example:
	pixart_pat9125@75 {
		compatible = "pixart,pat9125";
		reg = <0x75>;
		interrupt-parent = <&msm_gpio>;
		interrupts = <98 0x2008>;
		pixart,irq-gpio = <&msm_gpio 98 0x2008>;
	};
+1 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ panasonic Panasonic Corporation
pericom	Pericom Semiconductor Corp.
phytec	PHYTEC Messtechnik GmbH
picochip	Picochip Ltd
pixart	PixArt Imaging Inc
plathome	Plat'Home Co., Ltd.
plda	PLDA
pixcir  PIXCIR MICROELECTRONICS Co., Ltd
+2 −0
Original line number Diff line number Diff line
@@ -756,4 +756,6 @@ config INPUT_DRV2667_HAPTICS
	  To compile this driver as a module, choose M here: the
	  module will be called drv260x-haptics.

source "drivers/input/misc/ots_pat9125/Kconfig"

endif
+1 −0
Original line number Diff line number Diff line
@@ -71,3 +71,4 @@ obj-$(CONFIG_INPUT_WM831X_ON) += wm831x-on.o
obj-$(CONFIG_INPUT_XEN_KBDDEV_FRONTEND)	+= xen-kbdfront.o
obj-$(CONFIG_INPUT_YEALINK)		+= yealink.o
obj-$(CONFIG_INPUT_IDEAPAD_SLIDEBAR)	+= ideapad_slidebar.o
obj-$(CONFIG_INPUT_PIXART_OTS_PAT9125_SWITCH)	+= ots_pat9125/
+14 −0
Original line number Diff line number Diff line
#
# PixArt OTS switch driver configuration
#

config INPUT_PIXART_OTS_PAT9125_SWITCH
	tristate "PixArt PAT9125 Rotating Switch driver"
	depends on INPUT && I2C && GPIOLIB
	help
	  Say Y to enable support for the PixArt OTS pat9125
	  rotating switch driver.
	  If unsure, say N.

	  To compile this driver as a module, choose M here: the
	  module will be called ots_pat9125.
Loading