xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/allwinner,sun4i-a10-ts.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/allwinner,sun4i-a10-ts.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Allwinner A10 Resistive Touchscreen Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotproperties:
14c66ec88fSEmmanuel Vadot  "#thermal-sensor-cells":
15c66ec88fSEmmanuel Vadot    const: 0
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot  compatible:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - allwinner,sun4i-a10-ts
20c66ec88fSEmmanuel Vadot      - allwinner,sun5i-a13-ts
21c66ec88fSEmmanuel Vadot      - allwinner,sun6i-a31-ts
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  reg:
24c66ec88fSEmmanuel Vadot    maxItems: 1
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  interrupts:
27c66ec88fSEmmanuel Vadot    maxItems: 1
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  allwinner,ts-attached:
30c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
31c66ec88fSEmmanuel Vadot    description: A touchscreen is attached to the controller
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  allwinner,tp-sensitive-adjust:
34c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
35c66ec88fSEmmanuel Vadot    minimum: 0
36c66ec88fSEmmanuel Vadot    maximum: 15
37c66ec88fSEmmanuel Vadot    default: 15
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot    description: Sensitivity of pen down detection
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  allwinner,filter-type:
42c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
43c66ec88fSEmmanuel Vadot    minimum: 0
44c66ec88fSEmmanuel Vadot    maximum: 3
45c66ec88fSEmmanuel Vadot    default: 1
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot    description: |
48c66ec88fSEmmanuel Vadot      Select median and averaging filter. Sample used for median /
49c66ec88fSEmmanuel Vadot      averaging filter:
50c66ec88fSEmmanuel Vadot        0: 4/2
51c66ec88fSEmmanuel Vadot        1: 5/3
52c66ec88fSEmmanuel Vadot        2: 8/4
53c66ec88fSEmmanuel Vadot        3: 16/8
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel Vadotrequired:
56c66ec88fSEmmanuel Vadot  - "#thermal-sensor-cells"
57c66ec88fSEmmanuel Vadot  - compatible
58c66ec88fSEmmanuel Vadot  - reg
59c66ec88fSEmmanuel Vadot  - interrupts
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel VadotadditionalProperties: false
62c66ec88fSEmmanuel Vadot
63c66ec88fSEmmanuel Vadotexamples:
64c66ec88fSEmmanuel Vadot  - |
65c66ec88fSEmmanuel Vadot    rtp: rtp@1c25000 {
66c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun4i-a10-ts";
67c66ec88fSEmmanuel Vadot        reg = <0x01c25000 0x100>;
68c66ec88fSEmmanuel Vadot        interrupts = <29>;
69c66ec88fSEmmanuel Vadot        allwinner,ts-attached;
70c66ec88fSEmmanuel Vadot        #thermal-sensor-cells = <0>;
71c66ec88fSEmmanuel Vadot        /* sensitive/noisy touch panel */
72c66ec88fSEmmanuel Vadot        allwinner,tp-sensitive-adjust = <0>;
73c66ec88fSEmmanuel Vadot        allwinner,filter-type = <3>;
74c66ec88fSEmmanuel Vadot    };
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadot...
77