1*4882a593SmuzhiyunDevice tree bindings for Microchip CAP11xx based capacitive touch sensors 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThe node for this device must be a child of a I2C controller node, as the 4*4882a593Smuzhiyundevice communication via I2C only. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunRequired properties: 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun compatible: Must contain one of: 9*4882a593Smuzhiyun "microchip,cap1106" 10*4882a593Smuzhiyun "microchip,cap1126" 11*4882a593Smuzhiyun "microchip,cap1188" 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun reg: The I2C slave address of the device. 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun interrupts: Property describing the interrupt line the 16*4882a593Smuzhiyun device's ALERT#/CM_IRQ# pin is connected to. 17*4882a593Smuzhiyun The device only has one interrupt source. 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunOptional properties: 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun autorepeat: Enables the Linux input system's autorepeat 22*4882a593Smuzhiyun feature on the input device. 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun microchip,sensor-gain: Defines the gain of the sensor circuitry. This 25*4882a593Smuzhiyun effectively controls the sensitivity, as a 26*4882a593Smuzhiyun smaller delta capacitance is required to 27*4882a593Smuzhiyun generate the same delta count values. 28*4882a593Smuzhiyun Valid values are 1, 2, 4, and 8. 29*4882a593Smuzhiyun By default, a gain of 1 is set. 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun microchip,irq-active-high: By default the interrupt pin is active low 32*4882a593Smuzhiyun open drain. This property allows using the active 33*4882a593Smuzhiyun high push-pull output. 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun linux,keycodes: Specifies an array of numeric keycode values to 36*4882a593Smuzhiyun be used for the channels. If this property is 37*4882a593Smuzhiyun omitted, KEY_A, KEY_B, etc are used as 38*4882a593Smuzhiyun defaults. The array must have exactly six 39*4882a593Smuzhiyun entries. 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunExample: 42*4882a593Smuzhiyun 43*4882a593Smuzhiyuni2c_controller { 44*4882a593Smuzhiyun cap1106@28 { 45*4882a593Smuzhiyun compatible = "microchip,cap1106"; 46*4882a593Smuzhiyun interrupt-parent = <&gpio1>; 47*4882a593Smuzhiyun interrupts = <0 0>; 48*4882a593Smuzhiyun reg = <0x28>; 49*4882a593Smuzhiyun autorepeat; 50*4882a593Smuzhiyun microchip,sensor-gain = <2>; 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun linux,keycodes = <103>, /* KEY_UP */ 53*4882a593Smuzhiyun <106>, /* KEY_RIGHT */ 54*4882a593Smuzhiyun <108>, /* KEY_DOWN */ 55*4882a593Smuzhiyun <105>, /* KEY_LEFT */ 56*4882a593Smuzhiyun <109>, /* KEY_PAGEDOWN */ 57*4882a593Smuzhiyun <104>; /* KEY_PAGEUP */ 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun #address-cells = <1>; 60*4882a593Smuzhiyun #size-cells = <0>; 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun usr@0 { 63*4882a593Smuzhiyun label = "cap11xx:green:usr0"; 64*4882a593Smuzhiyun reg = <0>; 65*4882a593Smuzhiyun }; 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun usr@1 { 68*4882a593Smuzhiyun label = "cap11xx:green:usr1"; 69*4882a593Smuzhiyun reg = <1>; 70*4882a593Smuzhiyun }; 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun alive@2 { 73*4882a593Smuzhiyun label = "cap11xx:green:alive"; 74*4882a593Smuzhiyun reg = <2>; 75*4882a593Smuzhiyun linux,default_trigger = "heartbeat"; 76*4882a593Smuzhiyun }; 77*4882a593Smuzhiyun }; 78*4882a593Smuzhiyun} 79