Skip to content

lora: sx126x: interrupt pin permanently enabled #31569

@JordanYates

Description

@JordanYates

Describe the bug
The sx126x driver leaves the DIO1 interrupt permanently enabled, resulting in excess power consumption.
For nRF SoC's, this means the GPIOTE peripheral is permanently enabled, increasing current draw by ~15uA.
Per the datasheet (Table 8-3), DIO1 is not driven as an output in Reset, Startup, or Sleep modes.
We can therefore safely turn off the interrupt in sleep mode.

Expected behavior
DIO1 pin should only have the interrupt enabled when it is actually needed (Not in sleep mode).

Impact
Minor, permanent +15uA to the current consumption of any application.

Environment (please complete the following information):

  • Zephyr v2.4

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions