Path: blob/master/Documentation/devicetree/bindings/input/hid-over-i2c.yaml
26308 views
# SPDX-License-Identifier: GPL-2.0-only1%YAML 1.22---3$id: http://devicetree.org/schemas/input/hid-over-i2c.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: HID over I2C Devices78maintainers:9- Benjamin Tissoires <benjamin.tissoires@redhat.com>10- Jiri Kosina <jkosina@suse.cz>1112description: |+13HID over I2C provides support for various Human Interface Devices over the14I2C bus. These devices can be for example touchpads, keyboards, touch screens15or sensors.1617The specification has been written by Microsoft and is currently available here:18https://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx1920If this binding is used, the kernel module i2c-hid will handle the communication21with the device and the generic hid core layer will handle the protocol.2223allOf:24- $ref: /schemas/input/touchscreen/touchscreen.yaml#2526properties:27compatible:28oneOf:29- items:30- enum:31- wacom,w901332- const: hid-over-i2c33- description: Just "hid-over-i2c" alone is allowed, but not recommended.34const: hid-over-i2c3536reg:37maxItems: 13839interrupts:40maxItems: 14142hid-descr-addr:43description: HID descriptor address44$ref: /schemas/types.yaml#/definitions/uint324546panel: true4748post-power-on-delay-ms:49description: Time required by the device after enabling its regulators50or powering it on, before it is ready for communication.5152touchscreen-inverted-x: true5354touchscreen-inverted-y: true5556vdd-supply:57description: 3.3V supply5859vddl-supply:60description: 1.8V supply6162wakeup-source: true6364required:65- compatible66- reg67- interrupts6869additionalProperties: false7071examples:72- |73i2c {74#address-cells = <1>;75#size-cells = <0>;7677hid@2c {78compatible = "hid-over-i2c";79reg = <0x2c>;80hid-descr-addr = <0x0020>;81interrupts = <3 2>;82};83};84...858687