WSL2-Linux-Kernel/Documentation/devicetree/bindings/i2c
Dmitry Torokhov 3fffd12839 i2c: allow specifying separate wakeup interrupt in device tree
Instead of having each i2c driver individually parse device tree data in
case it or platform supports separate wakeup interrupt, and handle
enabling and disabling wakeup interrupts in their power management
routines, let's have i2c core do that for us.

Platforms wishing to specify separate wakeup interrupt for the device
should use named interrupt syntax in their DTSes:

	interrupt-parent = <&intc1>;
	interrupts = <5 0>, <6 0>;
	interrupt-names = "irq", "wakeup";

This patch is inspired by work done by Vignesh R <vigneshr@ti.com> for
pixcir_i2c_ts driver.

Note that the original code tried to preserve any existing wakeup
settings from userspace but was not quite right in that regard:
it would preserve wakeup flag set by userspace upon driver rebinding;
but it would re-arm the wakeup flag if it was disabled by userspace.

We think that resetting the flag upon re-binding the driver is proper
behavior as the driver is responsible for setting up and handling
wakeups.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Vignesh R <vigneshr@ti.com>
[wsa: updated the commit message]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2015-08-26 18:47:58 +02:00
..
brcm,bcm2835-i2c.txt i2c: add bcm2835 driver 2013-02-12 11:33:59 +01:00
brcm,iproc-i2c.txt i2c: iproc: Add Broadcom iProc I2C Driver 2015-02-17 16:44:13 +01:00
brcm,kona-i2c.txt dt-bindings: brcm: rationalize Broadcom documentation naming 2015-03-26 12:14:11 -05:00
i2c-arb-gpio-challenge.txt i2c: mux: Add more warnings to i2c-arb-gpio-challenge docs 2014-05-22 10:09:22 +02:00
i2c-at91.txt i2c: at91: update documentation for DT bindings 2015-06-10 21:52:17 +09:00
i2c-axxia.txt i2c: axxia: Add I2C driver for AXM55xx 2014-10-03 14:11:53 +02:00
i2c-brcmstb.txt i2c: brcmstb: Add Broadcom settop SoC i2c controller driver 2015-06-10 22:02:57 +09:00
i2c-cadence.txt i2c: removed work arounds in i2c driver for Zynq Ultrascale+ MPSoC 2015-08-10 08:37:34 +02:00
i2c-cbus-gpio.txt i2c: i2c-cbus-gpio: introduce driver 2012-11-19 09:57:16 +01:00
i2c-cros-ec-tunnel.txt i2c: ChromeOS EC tunnel driver 2014-06-03 08:11:49 +01:00
i2c-davinci.txt i2c: davinci: use ICPFUNC to toggle I2C as gpio for bus recovery 2015-04-10 17:57:28 +02:00
i2c-designware.txt i2c: designware: Fix falling time bindings doc 2014-12-08 10:50:34 +01:00
i2c-digicolor.txt i2c: add support for the Digicolor I2C controller 2015-03-22 10:53:51 +01:00
i2c-efm32.txt i2c: efm32: correct namespacing of location property 2014-07-17 15:38:49 +02:00
i2c-emev2.txt i2c: emev2: add driver 2015-08-10 08:37:29 +02:00
i2c-exynos5.txt i2c: exynos: add support for HSI2C module on Exynos7 2014-10-03 03:35:49 +02:00
i2c-gpio.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-hix5hd2.txt i2c: hix5hd2: add i2c controller driver 2014-10-16 09:14:17 +02:00
i2c-img-scb.txt DT: i2c: Add binding document for IMG I2C SCB 2014-11-17 19:54:24 +01:00
i2c-imx.txt i2c: imx: add required clocks property to binding 2015-03-07 01:13:00 +01:00
i2c-jz4780.txt i2c: jz4780: Add i2c bus controller driver for Ingenic JZ4780 2015-04-03 21:22:52 +02:00
i2c-lpc2k.txt i2c: lpc2k: add driver 2015-08-24 14:05:18 +02:00
i2c-meson.txt i2c: add support for Amlogic Meson I2C controller 2014-11-18 16:16:44 +01:00
i2c-mpc.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-mt6577.txt I2C: mediatek: Add driver for MediaTek I2C controller 2015-06-01 08:28:09 +09:00
i2c-mux-gpio.txt i2c: mux: Add dt support to i2c-mux-gpio driver 2012-11-16 09:28:27 +01:00
i2c-mux-pca954x.txt of: i2c: Add i2c-mux-idle-disconnect DT property to PCA954x mux driver 2015-01-23 17:12:56 +01:00
i2c-mux-pinctrl.txt i2c: Add generic I2C multiplexer using pinctrl API 2012-06-04 16:49:43 +02:00
i2c-mux-reg.txt i2c: mux: Add register-based mux i2c-mux-reg 2015-08-24 14:05:18 +02:00
i2c-mux.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-mv64xxx.txt i2c: mv64xxx: Change i2c compatibles for sunxi 2014-05-22 10:09:21 +02:00
i2c-mxs.txt i2c: i2c-mxs: move to use generic DMA helper 2013-04-04 21:22:45 +08:00
i2c-nomadik.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-ocores.txt i2c: ocores: add common clock support 2015-02-05 22:29:23 +01:00
i2c-octeon.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-omap.txt i2c: omap: Fix missing device tree flags for omap2 2013-11-15 14:32:34 -08:00
i2c-opal.txt i2c: Driver to expose PowerNV platform i2c busses 2014-12-14 12:44:46 +11:00
i2c-pnx.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-pxa-pci-ce4100.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-pxa.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-rcar.txt i2c: rcar: add compatibles for additional SoC 2014-06-01 22:21:59 +02:00
i2c-riic.txt i2c: riic: add driver 2014-01-02 15:56:52 +01:00
i2c-rk3x.txt i2c: rk3x: Account for repeated start time requirement 2015-01-13 16:21:05 +01:00
i2c-s3c2410.txt ARM: dts: add sysreg phandle to i2c device nodes for exynos 2014-11-27 03:24:45 +09:00
i2c-sh_mobile.txt i2c: sh_mobile: add DMA support 2014-11-12 17:08:40 +01:00
i2c-sirf.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-st-ddci2c.txt i2c: stu300: device tree support 2013-05-31 11:25:51 +02:00
i2c-st.txt i2c: st: Rename clock reference to something that exists 2015-01-24 05:43:43 +01:00
i2c-sunxi-p2wi.txt i2c: sunxi: add P2WI DT bindings documentation 2014-06-12 00:24:05 +02:00
i2c-versatile.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-vt8500.txt i2c: vt8500: Add support for I2C bus on Wondermedia SoCs 2013-06-15 13:37:08 +02:00
i2c-xgene-slimpro.txt i2c: add SLIMpro I2C device driver on APM X-Gene platform 2015-05-12 22:06:05 +02:00
i2c-xiic.txt bindings: i2c: use consistent naming for i2c binding descriptions 2012-11-15 15:57:07 +00:00
i2c-xlp9xx.txt i2c: xlp9xx: Driver for Netlogic XLP9XX/5XX I2C controller 2015-04-10 18:59:49 +02:00
i2c.txt i2c: allow specifying separate wakeup interrupt in device tree 2015-08-26 18:47:58 +02:00
nvidia,tegra20-i2c.txt Documentation: DT bindings: add more Tegra chip compatible strings 2015-02-03 20:37:31 -06:00
qcom,i2c-qup.txt i2c: qup: Add device tree bindings information 2014-03-28 23:41:26 +01:00
trivial-devices.txt DT: i2c: Add ADS7828 and ADS7830 to list of trivial devices 2015-08-10 08:37:34 +02:00