HID over I2C Devices

Schema identifier ($id): "http://devicetree.org/schemas/input/hid-over-i2c.yaml#"

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

Maintainers (maintainers): "Benjamin Tissoires <benjamin.tissoires@redhat.com>", "Jiri Kosina <jkosina@suse.cz>"

HID over I2C provides support for various Human Interface Devices over the I2C bus. These devices can be for example touchpads, keyboards, touch screens or sensors.

The specification has been written by Microsoft and is currently available here: https://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx

If this binding is used, the kernel module i2c-hid will handle the communication with the device and the generic hid core layer will handle the protocol.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "wacom,w9013"

Item 2

Exact value (const): "hid-over-i2c"

Rule 2

Just "hid-over-i2c" alone is allowed, but not recommended.

Exact value (const): "hid-over-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

hid-descr-addr — not listed as required here #

HID descriptor address

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

panel — not listed as required here #

true — No constraints added by this property rule.

post-power-on-delay-ms — not listed as required here #

Time required by the device after enabling its regulators or powering it on, before it is ready for communication.

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.

vdd-supply — not listed as required here #

3.3V supply

vddl-supply — not listed as required here #

1.8V supply

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    hid@2c {
        compatible = "hid-over-i2c";
        reg = <0x2c>;
        hid-descr-addr = <0x0020>;
        interrupts = <3 2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Edit this page