126 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/zinitix,bt400.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Zinitix BT4xx and BT5xx series touchscreen controller8 9description: The Zinitix BT4xx and BT5xx series of touchscreen controllers10 are Korea-produced touchscreens with embedded microcontrollers. The11 BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014.12 13maintainers:14 - Michael Srba <Michael.Srba@seznam.cz>15 - Linus Walleij <linus.walleij@linaro.org>16 17allOf:18 - $ref: touchscreen.yaml#19 - $ref: ../input.yaml#20 21properties:22 $nodename:23 pattern: "^touchscreen(@.*)?$"24 25 compatible:26 enum:27 - zinitix,bt40228 - zinitix,bt40329 - zinitix,bt40430 - zinitix,bt41231 - zinitix,bt41332 - zinitix,bt43133 - zinitix,bt43234 - zinitix,bt53135 - zinitix,bt53236 - zinitix,bt53837 - zinitix,bt54138 - zinitix,bt54839 - zinitix,bt55440 - zinitix,at10041 42 reg:43 description: I2C address on the I2C bus44 45 clock-frequency:46 description: I2C client clock frequency, defined for host when using47 the device on the I2C bus48 minimum: 049 maximum: 40000050 51 interrupts:52 description: Interrupt to host53 maxItems: 154 55 vcca-supply:56 description: Analog power supply regulator on the VCCA pin57 58 vdd-supply:59 description: Digital power supply regulator on the VDD pin.60 In older device trees this can be the accidental name for the analog61 supply on the VCCA pin, and in that case the deprecated vddo-supply is62 used for the digital power supply.63 64 vddo-supply:65 description: Deprecated name for the digital power supply, use vdd-supply66 as this reflects the real name of the pin. If this supply is present,67 the vdd-supply represents VCCA instead of VDD. Implementers should first68 check for this property, and if it is present assume that the vdd-supply69 represents the analog supply.70 deprecated: true71 72 reset-gpios:73 description: Reset line for the touchscreen, should be tagged74 as GPIO_ACTIVE_LOW75 76 zinitix,mode:77 description: Mode of reporting touch points. Some modes may not work78 with a particular ts firmware for unknown reasons. Available modes are79 1 and 2. Mode 2 is the default and preferred.80 $ref: /schemas/types.yaml#/definitions/uint3281 enum: [1, 2]82 83 linux,keycodes:84 description:85 This property specifies an array of keycodes assigned to the86 touch-keys that can be present in some touchscreen configurations.87 If the touch-keys are enabled, controller firmware will assign some88 touch sense lines to those keys.89 minItems: 190 maxItems: 891 92 touchscreen-size-x: true93 touchscreen-size-y: true94 touchscreen-fuzz-x: true95 touchscreen-fuzz-y: true96 97additionalProperties: false98 99required:100 - compatible101 - reg102 - interrupts103 - touchscreen-size-x104 - touchscreen-size-y105 106examples:107 - |108 #include <dt-bindings/interrupt-controller/irq.h>109 #include <dt-bindings/gpio/gpio.h>110 i2c {111 #address-cells = <1>;112 #size-cells = <0>;113 114 touchscreen@20 {115 compatible = "zinitix,bt541";116 reg = <0x20>;117 interrupt-parent = <&gpio>;118 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;119 vcca-supply = <®_vcca_tsp>;120 vdd-supply = <®_vdd_tsp>;121 touchscreen-size-x = <540>;122 touchscreen-size-y = <960>;123 zinitix,mode = <2>;124 };125 };126