gpio: Update mcux igpio driver to use new gpio api
Updates the mcux igpio driver and all associated boards to use new device tree compatible gpio configuration flags. Implements new port get/set/clear/toggle and pin_interrupt_configure functions recently added to the gpio api. Assumes the gpio api layer handles translating logical flags to physical flags. Removes port configuration support since that feature is deprecated in the new gpio api. Tested with: - samples/basic/blinky - samples/basic/button - tests/drivers/gpio/gpio_api_1pin On boards: - mimxrt1015_evk - mimxrt1020_evk - mimxrt1050_evk - mimxrt1060_evk - mimxrt1064_evk Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
ba18a7d6d0
commit
5f09966380
6 changed files with 139 additions and 55 deletions
|
@ -25,7 +25,7 @@
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led-1 {
|
||||
gpios = <&gpio3 21 GPIO_INT_ACTIVE_LOW>;
|
||||
gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
|
||||
label = "User LD1";
|
||||
};
|
||||
};
|
||||
|
@ -34,7 +34,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button-1 {
|
||||
label = "User SW4";
|
||||
gpios = <&gpio2 9 GPIO_INT_ACTIVE_LOW>;
|
||||
gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue