1I2C generic device 2================== 3 4This is used only to generate ACPI tables for an I2C device. 5 6Required properties : 7 8 - compatible : "i2c-chip"; 9 - reg : I2C chip address 10 - acpi,hid : HID name for the device 11 12Optional properies in addition to device.txt: 13 14 - reset-gpios : GPIO used to assert reset to the device 15 - irq-gpios : GPIO used for interrupt (if Interrupt is not used) 16 - stop-gpios : GPIO used to stop the device 17 - interrupts-extended : Interrupt to use for the device 18 - reset-delay-ms : Delay after de-asserting reset, in ms 19 - reset-off-delay-ms : Delay after asserting reset (during power off) 20 - enable-delay-ms : Delay after asserting enable 21 - enable-off-delay-ms : Delay after de-asserting enable (during power off) 22 - stop-delay-ms : Delay after de-aserting stop 23 - stop-off-delay-ms : Delay after asserting stop (during power off) 24 - hid-descr-addr : HID register offset (for Human Interface Devices) 25 26Example 27------- 28 29 elan-touchscreen@10 { 30 compatible = "i2c-chip"; 31 reg = <0x10>; 32 acpi,hid = "ELAN0001"; 33 acpi,ddn = "ELAN Touchscreen"; 34 interrupts-extended = <&acpi_gpe GPIO_21_IRQ 35 IRQ_TYPE_EDGE_FALLING>; 36 linux,probed; 37 reset-gpios = <&gpio_n GPIO_36 GPIO_ACTIVE_HIGH>; 38 reset-delay-ms = <20>; 39 enable-gpios = <&gpio_n GPIO_152 GPIO_ACTIVE_HIGH>; 40 enable-delay-ms = <1>; 41 acpi,has-power-resource; 42 }; 43