Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: gpio: gpio_nrfx: Add support for extra high drive
The gpio_nrfx.c device driver only supports standard and high drive modes for high/low states of GPIOs. The nRF5340 supports extra high drive for high/low states, but these are not exposed through the DT bindings nor supported in the driver. This commit extends the nrfx specific GPIO drive mode DT flags NRF_GPIO_DRIVE_MSK from 2 to 4 bits. The lower 2 bits encode the low state drive mode, the upper 2 bits encode the high state drive mode. The encoding is as follows repectively: 0 -> standard drive 1 -> high drive 2 -> extra high drive 3 -> reserved The device driver is extended to recognize the new PIN configuration NRF_GPIO_DRIVE_E0E1 which sets the drive mode for both high and low states to "extra high drive". Although the commit changes the encoding of the GPIO DT drive modes, the API remains unchanged as the macros in nordic-nrf-gpio.h abstracts away the added functionality. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
- Loading branch information