zephyr/boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts
Stanislav Poboril 6422e1a36b 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 <stanislav.poboril@nxp.com>
2020-02-05 12:00:36 +01:00

69 lines
901 B
Plaintext

/*
* Copyright (c) 2017,2019 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nxp/nxp_imx7d_m4.dtsi>
/ {
model = "TORADEX Colibri IMX7D board";
compatible = "nxp,mcimx7d_m4";
aliases {
led0 = &green_led;
sw0 = &user_switch_1;
};
chosen {
zephyr,flash = &tcml_code;
zephyr,sram = &tcmu_sys;
zephyr,console = &uart2;
zephyr,shell-uart = &uart2;
};
leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
label = "User LED1";
};
};
gpio_keys {
compatible = "gpio-keys";
user_switch_1: user_sw_1 {
gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
label = "User SW1";
};
};
};
&uart2 {
status = "okay";
current-speed = <115200>;
modem-mode = <64>;
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&i2c4 {
status = "okay";
};
&pwm1 {
status = "okay";
};
&mub {
status = "okay";
};