Hycon HY46XX series touchscreen controller

Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/hycon,hy46xx.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

There are 6 variants of the chip for various touch panel sizes and cover lens material
 Glass: 0.3mm--4.0mm
  PET/PMMA: 0.2mm--2.0mm
  HY4613(B)-N048  < 6"
  HY4614(B)-N068  7" .. 10.1"
  HY4621-NS32  < 5"
  HY4623-NS48  5.1" .. 7"
 Glass: 0.3mm--8.0mm
  PET/PMMA: 0.2mm--4.0mm
  HY4633(B)-N048  < 6"
  HY4635(B)-N048  < 7" .. 10.1"

Maintainers (maintainers): "Giulio Benetti <giulio.benetti@benettiengineering.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): touchscreen.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "hycon,hy4613", "hycon,hy4614", "hycon,hy4621", "hycon,hy4623", "hycon,hy4633", "hycon,hy4635"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

vcc-supply — not listed as required here #

true — No constraints added by this property rule.

hycon,threshold — not listed as required here #

Allows setting the sensitivity in the range from 0 to 255.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 255

hycon,glove-enable — not listed as required here #

Value type (type): "boolean"

Allows enabling glove setting.

hycon,report-speed-hz — not listed as required here #

Allows setting the report speed in Hertz.

Minimum value (minimum): 1

Maximum value (maximum): 255

hycon,noise-filter-enable — not listed as required here #

Value type (type): "boolean"

Allows enabling power noise filter.

hycon,filter-data — not listed as required here #

Allows setting how many samples throw before reporting touch in the range from 0 to 5.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 5

hycon,gain — not listed as required here #

Allows setting the sensitivity distance in the range from 0 to 5.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 5

hycon,edge-offset — not listed as required here #

Allows setting the edge compensation in the range from 0 to 16.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 16

touchscreen-size-x — not listed as required here #

true — No constraints added by this property rule.

touchscreen-size-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-fuzz-x — not listed as required here #

true — No constraints added by this property rule.

touchscreen-fuzz-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-inverted-x — not listed as required here #

true — No constraints added by this property rule.

touchscreen-inverted-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-swapped-x-y — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  touchscreen@1c {
    compatible = "hycon,hy4633";
    reg = <0x1c>;
    interrupt-parent = <&gpio2>;
    interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
    reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page