Skip to content

Commit e308bd1

Browse files
stanislav-poborilMaureenHelm
authored andcommitted
gpio: Update imx gpio driver to use new gpio api
Updates the imx gpio 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. Tested with: - samples/basic/blinky - samples/basic/button - tests/drivers/gpio/gpio_api_1pin - tests/drivers/gpio/gpio_basic_api On boards: - udoo_neo_full_m4 Signed-off-by: Stanislav Poboril <[email protected]>
1 parent d2f4537 commit e308bd1

File tree

4 files changed

+198
-93
lines changed

4 files changed

+198
-93
lines changed

boards/arm/96b_meerkat96/96b_meerkat96.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
leds {
2222
compatible = "gpio-leds";
2323
green_led_0: led_0 {
24-
gpios = <&gpio1 4 GPIO_INT_ACTIVE_LOW>;
24+
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
2525
label = "User LED1";
2626
};
2727
green_led_1: led_1 {
28-
gpios = <&gpio1 5 GPIO_INT_ACTIVE_LOW>;
28+
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
2929
label = "User LED2";
3030
};
3131
green_led_2: led_2 {
32-
gpios = <&gpio1 6 GPIO_INT_ACTIVE_LOW>;
32+
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
3333
label = "User LED3";
3434
};
3535
green_led_3: led_3 {
36-
gpios = <&gpio1 7 GPIO_INT_ACTIVE_LOW>;
36+
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
3737
label = "User LED4";
3838
};
3939
};

boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, NXP
2+
* Copyright (c) 2017,2019 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -33,15 +33,15 @@
3333
leds {
3434
compatible = "gpio-leds";
3535
green_led: led_0 {
36-
gpios = <&gpio1 2 GPIO_INT_ACTIVE_LOW>;
36+
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
3737
label = "User LED1";
3838
};
3939
};
4040

4141
gpio_keys {
4242
compatible = "gpio-keys";
4343
user_switch_1: user_sw_1 {
44-
gpios = <&gpio2 26 GPIO_INT_ACTIVE_LOW>;
44+
gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
4545
label = "User SW1";
4646
};
4747
};

boards/arm/warp7_m4/warp7_m4.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
gpio_keys {
3232
compatible = "gpio-keys";
3333
user_switch_1: user_sw_1 {
34-
gpios = <&gpio7 1 GPIO_INT_ACTIVE_LOW>;
34+
gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
3535
label = "User SW1";
3636
};
3737
};

0 commit comments

Comments
 (0)