mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
Pull input updates from Dmitry Torokhov: - a new driver for Goodix Berlin I2C and SPI touch controllers - support for IQS7222D v1.1 and v1.2 in iqs7222 driver - support for IST3032C and IST3038B parts in Imagis touchscreen driver - support for touch keys for Imagis touchscreen controllers - support for Snakebyte GAMEPADs in xpad driver - various cleanups and conversions to yaml for device tree bindings - assorted fixes and cleanups - old Synaptics navpoint driver has been removed since the only board that used it (HP iPAQ hx4700) was removed a while ago. * tag 'input-for-v6.9-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (37 commits) Input: xpad - add support for Snakebyte GAMEPADs dt-bindings: input: samsung,s3c6410-keypad: convert to DT Schema Input: imagis - add touch key support dt-bindings: input: imagis: Document touch keys Input: imagis - use FIELD_GET where applicable Input: make input_class constant dt-bindings: input: atmel,captouch: convert bindings to YAML Input: iqs7222 - add support for IQS7222D v1.1 and v1.2 dt-bindings: input: allwinner,sun4i-a10-lrad: drop redundant type from label Input: serio - make serio_bus const Input: synaptics-rmi4 - make rmi_bus_type const Input: xilinx_ps2 - fix kernel-doc for xps2_of_probe function input/touchscreen: imagis: add support for IST3032C dt-bindings: input/touchscreen: imagis: add compatible for IST3032C input/touchscreen: imagis: Add support for Imagis IST3038B dt-bindings: input/touchscreen: Add compatible for IST3038B input/touchscreen: imagis: Correct the maximum touch area value Input: leds - change config symbol dependency for audio mute trigger Input: ti_am335x_tsc - remove redundant assignment to variable config Input: xpad - sort xpad_device by vendor and product ID ...
74 lines
2.2 KiB
Plaintext
74 lines
2.2 KiB
Plaintext
Specifying wakeup capability for devices
|
|
============================================
|
|
|
|
Any device nodes
|
|
----------------
|
|
Nodes that describe devices which have wakeup capability may contain a
|
|
"wakeup-source" boolean property.
|
|
|
|
If the device is marked as a wakeup-source, interrupt wake capability depends
|
|
on the device specific "interrupt-names" property. If no interrupts are labeled
|
|
as wake capable, then it is up to the device to determine which interrupts can
|
|
wake the system.
|
|
|
|
However if a device has a dedicated interrupt as the wakeup source, then it
|
|
needs to specify/identify it using a device specific interrupt name. In such
|
|
cases only that interrupt can be used as a wakeup interrupt.
|
|
|
|
While various legacy interrupt names exist, new devices should use "wakeup" as
|
|
the canonical interrupt name.
|
|
|
|
List of legacy properties and respective binding document
|
|
---------------------------------------------------------
|
|
|
|
1. "gpio-key,wakeup" Documentation/devicetree/bindings/input/gpio-keys{,-polled}.txt
|
|
2. "has-tpo" Documentation/devicetree/bindings/rtc/rtc-opal.txt
|
|
3. "linux,wakeup" Documentation/devicetree/bindings/input/gpio-matrix-keypad.txt
|
|
Documentation/devicetree/bindings/mfd/tc3589x.txt
|
|
Documentation/devicetree/bindings/input/touchscreen/ads7846.txt
|
|
4. "linux,keypad-wakeup" Documentation/devicetree/bindings/input/qcom,pm8xxx-keypad.txt
|
|
5. "linux,input-wakeup" Documentation/devicetree/bindings/input/samsung,s3c6410-keypad.yaml
|
|
6. "nvidia,wakeup-source" Documentation/devicetree/bindings/input/nvidia,tegra20-kbc.txt
|
|
|
|
Examples
|
|
--------
|
|
|
|
1. With "wakeup" interrupt name
|
|
|
|
device@10000 {
|
|
compatible = "vendor,device-id";
|
|
reg = <0x10000 0x1000>;
|
|
interrupts = <0 19 4>, <0 21 4>, <0 22 4>;
|
|
interrupt-names = "ack", "err", "wakeup";
|
|
wakeup-source;
|
|
};
|
|
|
|
2. Without "wakeup" interrupt name
|
|
|
|
embedded-controller {
|
|
compatible = "google,cros-ec-i2c";
|
|
reg = <0x1e>;
|
|
interrupts = <6 0>;
|
|
interrupt-parent = <&gpx1>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ec_irq>;
|
|
wakeup-source;
|
|
};
|
|
|
|
3. Without interrupts
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
button@1 {
|
|
debounce-interval = <50>;
|
|
wakeup-source;
|
|
linux,code = <116>;
|
|
label = "POWER";
|
|
gpios = <&iofpga_gpio0 0 0x4>;
|
|
};
|
|
[....]
|
|
};
|