Bluetooth: btnxpuart: Implement host-wakeup feature
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Mon, 14 Apr 2025 17:59:52 +0000 (23:29 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 21 May 2025 14:28:07 +0000 (10:28 -0400)
commitc50b56664e48b66b0249230ec16378082088c7ec
tree47fce3c92224284b0aa7bb064fb55572c1a77a16
parenta12a5f5ff0c98f204409a252257e69d5b82fe9df
Bluetooth: btnxpuart: Implement host-wakeup feature

This implements host wakeup feature by reading the device tree property
wakeup-source and 'wakeup' interrupt, and nxp,wakeout-pin, and configuring
it as a FALLING EDGE triggered interrupt.

When host is suspended, a trigger from the WAKE_OUT pin of the
controller wakes it up.

To enable this feature, both device tree properties are needed to be
defined.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c