Message ID | 20250411163719.326558-1-neeraj.sanjaykale@nxp.com |
---|---|
State | New |
Headers | show |
Series | [v1,1/2] dt-bindings: net: bluetooth: nxp: Add support for host-wakeup | expand |
Hi Rob, Thank you for reviewing this patch. I have sent out a v2 patch with bindings containing interrupt and wakeup-source. I am not sure if I should mention the "wakeup-source" property, as this already has a property called "interrupt-names" with value "wakeup". Please help me suggest if I should remove the "wakeup-source" property. Thanks, Neeraj > On Fri, Apr 11, 2025 at 10:07:18PM +0530, Neeraj Sanjay Kale wrote: > > Add support for host-wakeup on GPIO interrupt. > > > > Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com> > > --- > > .../devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml | 7 > > +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git > > a/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml > > b/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml > > index d02e9dd847ef..ab1411c05f49 100644 > > --- > > a/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml > > +++ b/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.y > > +++ aml > > @@ -48,6 +48,12 @@ properties: > > description: > > The GPIO number of the NXP chipset used for BT_WAKE_IN. > > > > + host-wakeup-gpios: > > + maxItems: 1 > > + description: > > + Host wakeup by falling edge interrupt on this GPIO which > > + is connected to BT_WAKE_OUT pin of the NXP chipset. > > Read the description in the Broadcom binding you copied this from. > Define this as an interrupt named 'wakeup', not a GPIO. After all, to be a > wake-up source, it kind of has to be an interrupt. > > Just because I said no to putting wakeup source handling in serdev, doesn't > mean the binding should change. The handling just has to be in the driver. > > Rob
diff --git a/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml b/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml index d02e9dd847ef..ab1411c05f49 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml @@ -48,6 +48,12 @@ properties: description: The GPIO number of the NXP chipset used for BT_WAKE_IN. + host-wakeup-gpios: + maxItems: 1 + description: + Host wakeup by falling edge interrupt on this GPIO which + is connected to BT_WAKE_OUT pin of the NXP chipset. + nxp,wakeout-pin: $ref: /schemas/types.yaml#/definitions/uint8 description: @@ -68,6 +74,7 @@ examples: firmware-name = "uartuart8987_bt_v0.bin"; device-wakeup-gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; nxp,wakein-pin = /bits/ 8 <18>; + host-wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; nxp,wakeout-pin = /bits/ 8 <19>; local-bd-address = [66 55 44 33 22 11]; };
Add support for host-wakeup on GPIO interrupt. Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com> --- .../devicetree/bindings/net/bluetooth/nxp,88w8987-bt.yaml | 7 +++++++ 1 file changed, 7 insertions(+)