1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/input/touch 4 $id: http://devicetree.org/schemas/input/touchscreen/hycon,hy46xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Hycon HY46XX series touchscreen control 7 title: Hycon HY46XX series touchscreen controller 8 8 9 description: | 9 description: | 10 There are 6 variants of the chip for various 10 There are 6 variants of the chip for various touch panel sizes and cover lens material 11 Glass: 0.3mm--4.0mm 11 Glass: 0.3mm--4.0mm 12 PET/PMMA: 0.2mm--2.0mm 12 PET/PMMA: 0.2mm--2.0mm 13 HY4613(B)-N048 < 6" 13 HY4613(B)-N048 < 6" 14 HY4614(B)-N068 7" .. 10.1" 14 HY4614(B)-N068 7" .. 10.1" 15 HY4621-NS32 < 5" 15 HY4621-NS32 < 5" 16 HY4623-NS48 5.1" .. 7" 16 HY4623-NS48 5.1" .. 7" 17 Glass: 0.3mm--8.0mm 17 Glass: 0.3mm--8.0mm 18 PET/PMMA: 0.2mm--4.0mm 18 PET/PMMA: 0.2mm--4.0mm 19 HY4633(B)-N048 < 6" 19 HY4633(B)-N048 < 6" 20 HY4635(B)-N048 < 7" .. 10.1" 20 HY4635(B)-N048 < 7" .. 10.1" 21 21 22 maintainers: 22 maintainers: 23 - Giulio Benetti <giulio.benetti@benettiengin 23 - Giulio Benetti <giulio.benetti@benettiengineering.com> 24 24 25 allOf: 25 allOf: 26 - $ref: touchscreen.yaml# 26 - $ref: touchscreen.yaml# 27 27 28 properties: 28 properties: 29 compatible: 29 compatible: 30 enum: 30 enum: 31 - hycon,hy4613 31 - hycon,hy4613 32 - hycon,hy4614 32 - hycon,hy4614 33 - hycon,hy4621 33 - hycon,hy4621 34 - hycon,hy4623 34 - hycon,hy4623 35 - hycon,hy4633 35 - hycon,hy4633 36 - hycon,hy4635 36 - hycon,hy4635 37 37 38 reg: 38 reg: 39 maxItems: 1 39 maxItems: 1 40 40 41 interrupts: 41 interrupts: 42 maxItems: 1 42 maxItems: 1 43 43 44 reset-gpios: 44 reset-gpios: 45 maxItems: 1 45 maxItems: 1 46 46 47 vcc-supply: true 47 vcc-supply: true 48 48 49 hycon,threshold: 49 hycon,threshold: 50 description: Allows setting the sensitivit 50 description: Allows setting the sensitivity in the range from 0 to 255. 51 $ref: /schemas/types.yaml#/definitions/uin 51 $ref: /schemas/types.yaml#/definitions/uint32 52 minimum: 0 52 minimum: 0 53 maximum: 255 53 maximum: 255 54 54 55 hycon,glove-enable: 55 hycon,glove-enable: 56 type: boolean 56 type: boolean 57 description: Allows enabling glove setting 57 description: Allows enabling glove setting. 58 58 59 hycon,report-speed-hz: 59 hycon,report-speed-hz: 60 description: Allows setting the report spe 60 description: Allows setting the report speed in Hertz. 61 minimum: 1 61 minimum: 1 62 maximum: 255 62 maximum: 255 63 63 64 hycon,noise-filter-enable: 64 hycon,noise-filter-enable: 65 type: boolean 65 type: boolean 66 description: Allows enabling power noise f 66 description: Allows enabling power noise filter. 67 67 68 hycon,filter-data: 68 hycon,filter-data: 69 description: Allows setting how many sampl 69 description: Allows setting how many samples throw before reporting touch 70 in the range from 0 to 5. 70 in the range from 0 to 5. 71 $ref: /schemas/types.yaml#/definitions/uin 71 $ref: /schemas/types.yaml#/definitions/uint32 72 minimum: 0 72 minimum: 0 73 maximum: 5 73 maximum: 5 74 74 75 hycon,gain: 75 hycon,gain: 76 description: Allows setting the sensitivit 76 description: Allows setting the sensitivity distance in the range from 0 to 5. 77 $ref: /schemas/types.yaml#/definitions/uin 77 $ref: /schemas/types.yaml#/definitions/uint32 78 minimum: 0 78 minimum: 0 79 maximum: 5 79 maximum: 5 80 80 81 hycon,edge-offset: 81 hycon,edge-offset: 82 description: Allows setting the edge compe 82 description: Allows setting the edge compensation in the range from 0 to 16. 83 $ref: /schemas/types.yaml#/definitions/uin 83 $ref: /schemas/types.yaml#/definitions/uint32 84 minimum: 0 84 minimum: 0 85 maximum: 16 85 maximum: 16 86 86 87 touchscreen-size-x: true 87 touchscreen-size-x: true 88 touchscreen-size-y: true 88 touchscreen-size-y: true 89 touchscreen-fuzz-x: true 89 touchscreen-fuzz-x: true 90 touchscreen-fuzz-y: true 90 touchscreen-fuzz-y: true 91 touchscreen-inverted-x: true 91 touchscreen-inverted-x: true 92 touchscreen-inverted-y: true 92 touchscreen-inverted-y: true 93 touchscreen-swapped-x-y: true 93 touchscreen-swapped-x-y: true 94 interrupt-controller: true 94 interrupt-controller: true 95 95 96 additionalProperties: false 96 additionalProperties: false 97 97 98 required: 98 required: 99 - compatible 99 - compatible 100 - reg 100 - reg 101 - interrupts 101 - interrupts 102 102 103 examples: 103 examples: 104 - | 104 - | 105 #include <dt-bindings/gpio/gpio.h> 105 #include <dt-bindings/gpio/gpio.h> 106 #include <dt-bindings/interrupt-controller 106 #include <dt-bindings/interrupt-controller/arm-gic.h> 107 i2c { 107 i2c { 108 #address-cells = <1>; 108 #address-cells = <1>; 109 #size-cells = <0>; 109 #size-cells = <0>; 110 touchscreen@1c { 110 touchscreen@1c { 111 compatible = "hycon,hy4633"; 111 compatible = "hycon,hy4633"; 112 reg = <0x1c>; 112 reg = <0x1c>; 113 interrupt-parent = <&gpio2>; 113 interrupt-parent = <&gpio2>; 114 interrupts = <5 IRQ_TYPE_EDGE_FALLING> 114 interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 115 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LO 115 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; 116 }; 116 }; 117 }; 117 }; 118 118 119 ... 119 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.