120 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/input/touchscreen/hycon,hy46xx.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Hycon HY46XX series touchscreen controller8 9description: |10 There are 6 variants of the chip for various touch panel sizes and cover lens material11 Glass: 0.3mm--4.0mm12 PET/PMMA: 0.2mm--2.0mm13 HY4613(B)-N048 < 6"14 HY4614(B)-N068 7" .. 10.1"15 HY4621-NS32 < 5"16 HY4623-NS48 5.1" .. 7"17 Glass: 0.3mm--8.0mm18 PET/PMMA: 0.2mm--4.0mm19 HY4633(B)-N048 < 6"20 HY4635(B)-N048 < 7" .. 10.1"21 22maintainers:23 - Giulio Benetti <giulio.benetti@benettiengineering.com>24 25allOf:26 - $ref: touchscreen.yaml#27 28properties:29 compatible:30 enum:31 - hycon,hy461332 - hycon,hy461433 - hycon,hy462134 - hycon,hy462335 - hycon,hy463336 - hycon,hy463537 38 reg:39 maxItems: 140 41 interrupts:42 maxItems: 143 44 reset-gpios:45 maxItems: 146 47 vcc-supply: true48 49 hycon,threshold:50 description: Allows setting the sensitivity in the range from 0 to 255.51 $ref: /schemas/types.yaml#/definitions/uint3252 minimum: 053 maximum: 25554 55 hycon,glove-enable:56 type: boolean57 description: Allows enabling glove setting.58 59 hycon,report-speed-hz:60 description: Allows setting the report speed in Hertz.61 minimum: 162 maximum: 25563 64 hycon,noise-filter-enable:65 type: boolean66 description: Allows enabling power noise filter.67 68 hycon,filter-data:69 description: Allows setting how many samples throw before reporting touch70 in the range from 0 to 5.71 $ref: /schemas/types.yaml#/definitions/uint3272 minimum: 073 maximum: 574 75 hycon,gain:76 description: Allows setting the sensitivity distance in the range from 0 to 5.77 $ref: /schemas/types.yaml#/definitions/uint3278 minimum: 079 maximum: 580 81 hycon,edge-offset:82 description: Allows setting the edge compensation in the range from 0 to 16.83 $ref: /schemas/types.yaml#/definitions/uint3284 minimum: 085 maximum: 1686 87 touchscreen-size-x: true88 touchscreen-size-y: true89 touchscreen-fuzz-x: true90 touchscreen-fuzz-y: true91 touchscreen-inverted-x: true92 touchscreen-inverted-y: true93 touchscreen-swapped-x-y: true94 interrupt-controller: true95 96additionalProperties: false97 98required:99 - compatible100 - reg101 - interrupts102 103examples:104 - |105 #include <dt-bindings/gpio/gpio.h>106 #include <dt-bindings/interrupt-controller/arm-gic.h>107 i2c {108 #address-cells = <1>;109 #size-cells = <0>;110 touchscreen@1c {111 compatible = "hycon,hy4633";112 reg = <0x1c>;113 interrupt-parent = <&gpio2>;114 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;115 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;116 };117 };118 119...120