i2c: stm32f7: allow controller to be wakeup-source
authorAlain Volmat <alain.volmat@st.com>
Mon, 3 Feb 2020 17:52:08 +0000 (18:52 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 26 Feb 2020 10:06:42 +0000 (11:06 +0100)
commit419be8e1dfed5afa497ca320e1b65954820b48c2
treee2fcf9a30defdeb424dbf922e3b0a413a779ee81
parent3a5ee18d2a32bda6b9a1260136f6805848e3839d
i2c: stm32f7: allow controller to be wakeup-source

Allow the i2c-stm32f7 controller to become a wakeup-source
of the system. In such case, when a slave is registered to the
I2C controller, receiving a I2C message targeting that registered
slave address wakes up the suspended system.

In order to be able to wake-up, the I2C controller DT node
must have the property wakeup-source defined and a slave
must be registered.

Signed-off-by: Alain Volmat <alain.volmat@st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-stm32f7.c