brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · 138caad Raw
86 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only2%YAML 1.23---4$id: http://devicetree.org/schemas/input/hid-over-i2c.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: HID over I2C Devices8 9maintainers:10  - Benjamin Tissoires <benjamin.tissoires@redhat.com>11  - Jiri Kosina <jkosina@suse.cz>12 13description: |+14  HID over I2C provides support for various Human Interface Devices over the15  I2C bus. These devices can be for example touchpads, keyboards, touch screens16  or sensors.17 18  The specification has been written by Microsoft and is currently available here:19  https://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx20 21  If this binding is used, the kernel module i2c-hid will handle the communication22  with the device and the generic hid core layer will handle the protocol.23 24allOf:25  - $ref: /schemas/input/touchscreen/touchscreen.yaml#26 27properties:28  compatible:29    oneOf:30      - items:31          - enum:32              - wacom,w901333          - const: hid-over-i2c34      - description: Just "hid-over-i2c" alone is allowed, but not recommended.35        const: hid-over-i2c36 37  reg:38    maxItems: 139 40  interrupts:41    maxItems: 142 43  hid-descr-addr:44    description: HID descriptor address45    $ref: /schemas/types.yaml#/definitions/uint3246 47  panel: true48 49  post-power-on-delay-ms:50    description: Time required by the device after enabling its regulators51      or powering it on, before it is ready for communication.52 53  touchscreen-inverted-x: true54 55  touchscreen-inverted-y: true56 57  vdd-supply:58    description: 3.3V supply59 60  vddl-supply:61    description: 1.8V supply62 63  wakeup-source: true64 65required:66  - compatible67  - reg68  - interrupts69 70additionalProperties: false71 72examples:73  - |74    i2c {75        #address-cells = <1>;76        #size-cells = <0>;77 78        hid@2c {79            compatible = "hid-over-i2c";80            reg = <0x2c>;81            hid-descr-addr = <0x0020>;82            interrupts = <3 2>;83        };84    };85...86