mbox series

[v1,0/2] Bluetooth: btnxpuart: Add GPIO mechanism to

Message ID 20241001174021.522254-1-neeraj.sanjaykale@nxp.com
Headers show
Series Bluetooth: btnxpuart: Add GPIO mechanism to | expand

Message

Neeraj Sanjay Kale Oct. 1, 2024, 5:40 p.m. UTC
This patch series introduces a new optional device tree property
h2c-ps-gpio.

If this property is defined, the BTNXPUART driver uses this GPIO to put
the BT controller into sleep or wake it up.

The vendor command parameters HCI_NXP_WAKEUP_METHOD are configured to
use GPIO method instead of UART-break signal, to inform the chip about
this new mechanism.

Once power save feature is enabled, the driver puts the chip into power
save state by driving the GPIO high, and wakes it up by driving the GPIO
low.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>

Neeraj Sanjay Kale (2):
  dt-bindings: net: bluetooth: nxp: Add support for power save feature
    using GPIO
  Bluetooth: btnxpuart: Add GPIO support to power save feature

 .../net/bluetooth/nxp,88w8987-bt.yaml         |  7 ++++
 drivers/bluetooth/btnxpuart.c                 | 36 +++++++++++++++++--
 2 files changed, 41 insertions(+), 2 deletions(-)