0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/allwinner,sun4i-a10-ts.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 Resistive Touchscreen Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 properties:
0014 "#thermal-sensor-cells":
0015 const: 0
0016
0017 compatible:
0018 enum:
0019 - allwinner,sun4i-a10-ts
0020 - allwinner,sun5i-a13-ts
0021 - allwinner,sun6i-a31-ts
0022
0023 reg:
0024 maxItems: 1
0025
0026 interrupts:
0027 maxItems: 1
0028
0029 allwinner,ts-attached:
0030 $ref: /schemas/types.yaml#/definitions/flag
0031 description: A touchscreen is attached to the controller
0032
0033 allwinner,tp-sensitive-adjust:
0034 $ref: /schemas/types.yaml#/definitions/uint32
0035 minimum: 0
0036 maximum: 15
0037 default: 15
0038
0039 description: Sensitivity of pen down detection
0040
0041 allwinner,filter-type:
0042 $ref: /schemas/types.yaml#/definitions/uint32
0043 minimum: 0
0044 maximum: 3
0045 default: 1
0046
0047 description: |
0048 Select median and averaging filter. Sample used for median /
0049 averaging filter:
0050 0: 4/2
0051 1: 5/3
0052 2: 8/4
0053 3: 16/8
0054
0055 required:
0056 - "#thermal-sensor-cells"
0057 - compatible
0058 - reg
0059 - interrupts
0060
0061 additionalProperties: false
0062
0063 examples:
0064 - |
0065 rtp: rtp@1c25000 {
0066 compatible = "allwinner,sun4i-a10-ts";
0067 reg = <0x01c25000 0x100>;
0068 interrupts = <29>;
0069 allwinner,ts-attached;
0070 #thermal-sensor-cells = <0>;
0071 /* sensitive/noisy touch panel */
0072 allwinner,tp-sensitive-adjust = <0>;
0073 allwinner,filter-type = <3>;
0074 };
0075
0076 ...