~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/input/touchscreen/ti,am3359-tsc.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: TI AM3359 Touchscreen controller
  8 
  9 maintainers:
 10   - Miquel Raynal <miquel.raynal@bootlin.com>
 11 
 12 properties:
 13   compatible:
 14     const: ti,am3359-tsc
 15 
 16   ti,wires:
 17     description: Wires refer to application modes i.e. 4/5/8 wire touchscreen
 18       support on the platform.
 19     $ref: /schemas/types.yaml#/definitions/uint32
 20     enum: [4, 5, 8]
 21 
 22   ti,x-plate-resistance:
 23     description: X plate resistance
 24     $ref: /schemas/types.yaml#/definitions/uint32
 25 
 26   ti,coordinate-readouts:
 27     description: The sequencer supports a total of 16 programmable steps. Each
 28       step is used to read a single coordinate. A single readout is enough but
 29       multiple reads can increase the quality. A value of 5 means, 5 reads for
 30       X, 5 for Y and 2 for Z (always). This utilises 12 of the 16 software steps
 31       available. The remaining 4 can be used by the ADC.
 32     $ref: /schemas/types.yaml#/definitions/uint32
 33     minimum: 1
 34     maximum: 6
 35 
 36   ti,wire-config:
 37     description: Different boards could have a different order for connecting
 38       wires on touchscreen. We need to provide an 8-bit number where the
 39       first four bits represent the analog lines and the next 4 bits represent
 40       positive/negative terminal on that input line. Notations to represent the
 41       input lines and terminals respectively are as follows, AIN0 = 0, AIN1 = 1
 42       and so on until AIN7 = 7. XP = 0, XN = 1, YP = 2, YN = 3.
 43     $ref: /schemas/types.yaml#/definitions/uint32-array
 44     minItems: 4
 45     maxItems: 8
 46 
 47   ti,charge-delay:
 48     description: Length of touch screen charge delay step in terms of ADC clock
 49       cycles. Charge delay value should be large in order to avoid false pen-up
 50       events. This value effects the overall sampling speed, hence need to be
 51       kept as low as possible, while avoiding false pen-up event. Start from a
 52       lower value, say 0x400, and increase value until false pen-up events are
 53       avoided. The pen-up detection happens immediately after the charge step,
 54       so this does in fact function as a hardware knob for adjusting the amount
 55       of "settling time".
 56     $ref: /schemas/types.yaml#/definitions/uint32
 57 
 58 required:
 59   - compatible
 60   - ti,wires
 61   - ti,x-plate-resistance
 62   - ti,coordinate-readouts
 63   - ti,wire-config
 64 
 65 additionalProperties: false
 66 
 67 examples:
 68   - |
 69     tsc {
 70         compatible = "ti,am3359-tsc";
 71         ti,wires = <4>;
 72         ti,x-plate-resistance = <200>;
 73         ti,coordinate-readouts = <5>;
 74         ti,wire-config = <0x00 0x11 0x22 0x33>;
 75         ti,charge-delay = <0x400>;
 76     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php