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/zinitix,bt400.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Zinitix BT4xx and BT5xx series touchscr 7 title: Zinitix BT4xx and BT5xx series touchscreen controller 8 8 9 description: The Zinitix BT4xx and BT5xx serie 9 description: The Zinitix BT4xx and BT5xx series of touchscreen controllers 10 are Korea-produced touchscreens with embedde 10 are Korea-produced touchscreens with embedded microcontrollers. The 11 BT4xx series was produced 2010-2013 and the 11 BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014. 12 12 13 maintainers: 13 maintainers: 14 - Michael Srba <Michael.Srba@seznam.cz> 14 - Michael Srba <Michael.Srba@seznam.cz> 15 - Linus Walleij <linus.walleij@linaro.org> 15 - Linus Walleij <linus.walleij@linaro.org> 16 16 17 allOf: 17 allOf: 18 - $ref: touchscreen.yaml# 18 - $ref: touchscreen.yaml# 19 - $ref: ../input.yaml# 19 - $ref: ../input.yaml# 20 20 21 properties: 21 properties: 22 $nodename: 22 $nodename: 23 pattern: "^touchscreen(@.*)?$" 23 pattern: "^touchscreen(@.*)?$" 24 24 25 compatible: 25 compatible: 26 enum: 26 enum: 27 - zinitix,bt402 27 - zinitix,bt402 28 - zinitix,bt403 28 - zinitix,bt403 29 - zinitix,bt404 29 - zinitix,bt404 30 - zinitix,bt412 30 - zinitix,bt412 31 - zinitix,bt413 31 - zinitix,bt413 32 - zinitix,bt431 32 - zinitix,bt431 33 - zinitix,bt432 33 - zinitix,bt432 34 - zinitix,bt531 34 - zinitix,bt531 35 - zinitix,bt532 35 - zinitix,bt532 36 - zinitix,bt538 36 - zinitix,bt538 37 - zinitix,bt541 37 - zinitix,bt541 38 - zinitix,bt548 38 - zinitix,bt548 39 - zinitix,bt554 39 - zinitix,bt554 40 - zinitix,at100 40 - zinitix,at100 41 41 42 reg: 42 reg: 43 description: I2C address on the I2C bus 43 description: I2C address on the I2C bus 44 44 45 clock-frequency: 45 clock-frequency: 46 description: I2C client clock frequency, d 46 description: I2C client clock frequency, defined for host when using 47 the device on the I2C bus 47 the device on the I2C bus 48 minimum: 0 48 minimum: 0 49 maximum: 400000 49 maximum: 400000 50 50 51 interrupts: 51 interrupts: 52 description: Interrupt to host 52 description: Interrupt to host 53 maxItems: 1 53 maxItems: 1 54 54 55 vcca-supply: 55 vcca-supply: 56 description: Analog power supply regulator 56 description: Analog power supply regulator on the VCCA pin 57 57 58 vdd-supply: 58 vdd-supply: 59 description: Digital power supply regulato 59 description: Digital power supply regulator on the VDD pin. 60 In older device trees this can be the ac 60 In older device trees this can be the accidental name for the analog 61 supply on the VCCA pin, and in that case 61 supply on the VCCA pin, and in that case the deprecated vddo-supply is 62 used for the digital power supply. 62 used for the digital power supply. 63 63 64 vddo-supply: 64 vddo-supply: 65 description: Deprecated name for the digit 65 description: Deprecated name for the digital power supply, use vdd-supply 66 as this reflects the real name of the pi 66 as this reflects the real name of the pin. If this supply is present, 67 the vdd-supply represents VCCA instead o 67 the vdd-supply represents VCCA instead of VDD. Implementers should first 68 check for this property, and if it is pr 68 check for this property, and if it is present assume that the vdd-supply 69 represents the analog supply. 69 represents the analog supply. 70 deprecated: true 70 deprecated: true 71 71 72 reset-gpios: 72 reset-gpios: 73 description: Reset line for the touchscree 73 description: Reset line for the touchscreen, should be tagged 74 as GPIO_ACTIVE_LOW 74 as GPIO_ACTIVE_LOW 75 75 76 zinitix,mode: 76 zinitix,mode: 77 description: Mode of reporting touch point 77 description: Mode of reporting touch points. Some modes may not work 78 with a particular ts firmware for unknow 78 with a particular ts firmware for unknown reasons. Available modes are 79 1 and 2. Mode 2 is the default and prefe 79 1 and 2. Mode 2 is the default and preferred. 80 $ref: /schemas/types.yaml#/definitions/uin 80 $ref: /schemas/types.yaml#/definitions/uint32 81 enum: [1, 2] 81 enum: [1, 2] 82 82 83 linux,keycodes: 83 linux,keycodes: 84 description: 84 description: 85 This property specifies an array of keyc 85 This property specifies an array of keycodes assigned to the 86 touch-keys that can be present in some t 86 touch-keys that can be present in some touchscreen configurations. 87 If the touch-keys are enabled, controlle 87 If the touch-keys are enabled, controller firmware will assign some 88 touch sense lines to those keys. 88 touch sense lines to those keys. 89 minItems: 1 89 minItems: 1 90 maxItems: 8 90 maxItems: 8 91 91 92 touchscreen-size-x: true 92 touchscreen-size-x: true 93 touchscreen-size-y: true 93 touchscreen-size-y: true 94 touchscreen-fuzz-x: true 94 touchscreen-fuzz-x: true 95 touchscreen-fuzz-y: true 95 touchscreen-fuzz-y: true 96 96 97 additionalProperties: false 97 additionalProperties: false 98 98 99 required: 99 required: 100 - compatible 100 - compatible 101 - reg 101 - reg 102 - interrupts 102 - interrupts 103 - touchscreen-size-x 103 - touchscreen-size-x 104 - touchscreen-size-y 104 - touchscreen-size-y 105 105 106 examples: 106 examples: 107 - | 107 - | 108 #include <dt-bindings/interrupt-controller 108 #include <dt-bindings/interrupt-controller/irq.h> 109 #include <dt-bindings/gpio/gpio.h> 109 #include <dt-bindings/gpio/gpio.h> 110 i2c { 110 i2c { 111 #address-cells = <1>; 111 #address-cells = <1>; 112 #size-cells = <0>; 112 #size-cells = <0>; 113 113 114 touchscreen@20 { 114 touchscreen@20 { 115 compatible = "zinitix,bt541"; 115 compatible = "zinitix,bt541"; 116 reg = <0x20>; 116 reg = <0x20>; 117 interrupt-parent = <&gpio>; 117 interrupt-parent = <&gpio>; 118 interrupts = <13 IRQ_TYPE_EDGE_FALLING 118 interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 119 vcca-supply = <®_vcca_tsp>; 119 vcca-supply = <®_vcca_tsp>; 120 vdd-supply = <®_vdd_tsp>; 120 vdd-supply = <®_vdd_tsp>; 121 touchscreen-size-x = <540>; 121 touchscreen-size-x = <540>; 122 touchscreen-size-y = <960>; 122 touchscreen-size-y = <960>; 123 zinitix,mode = <2>; 123 zinitix,mode = <2>; 124 }; 124 }; 125 }; 125 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.