1/* 2 * Copyright (c) 2017,2019 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <nxp/nxp_imx7d_m4.dtsi> 10#include "colibri_imx7d_m4-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "TORADEX Colibri IMX7D board"; 15 compatible = "nxp,mcimx7d_m4"; 16 17 aliases { 18 led0 = &green_led; 19 sw0 = &user_switch_1; 20 }; 21 22 chosen { 23 zephyr,flash = &tcml_code; 24 zephyr,sram = &tcmu_sys; 25 zephyr,console = &uart2; 26 zephyr,shell-uart = &uart2; 27 }; 28 29 leds { 30 compatible = "gpio-leds"; 31 green_led: led_0 { 32 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; 33 label = "User LED1"; 34 }; 35 }; 36 37 gpio_keys { 38 compatible = "gpio-keys"; 39 user_switch_1: user_sw_1 { 40 gpios = <&gpio2 26 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 41 label = "User SW1"; 42 zephyr,code = <INPUT_KEY_0>; 43 }; 44 }; 45}; 46 47&uart2 { 48 status = "okay"; 49 current-speed = <115200>; 50 modem-mode = <64>; 51 pinctrl-0 = <&uart2_default>; 52 pinctrl-names = "default"; 53}; 54 55&gpio1 { 56 status = "okay"; 57}; 58 59&gpio2 { 60 status = "okay"; 61}; 62 63&i2c1 { 64 pinctrl-0 = <&i2c1_default>; 65 pinctrl-names = "default"; 66}; 67 68&i2c2 { 69 pinctrl-0 = <&i2c2_default>; 70 pinctrl-names = "default"; 71}; 72 73&i2c3 { 74 pinctrl-0 = <&i2c3_default>; 75 pinctrl-names = "default"; 76}; 77 78&i2c4 { 79 pinctrl-0 = <&i2c4_default>; 80 pinctrl-names = "default"; 81 status = "okay"; 82}; 83 84&pwm1 { 85 pinctrl-0 = <&pwm1_default>; 86 pinctrl-names = "default"; 87 status = "okay"; 88}; 89 90&pwm2 { 91 pinctrl-0 = <&pwm2_default>; 92 pinctrl-names = "default"; 93}; 94 95&pwm3 { 96 pinctrl-0 = <&pwm3_default>; 97 pinctrl-names = "default"; 98}; 99 100&pwm4 { 101 pinctrl-0 = <&pwm4_default>; 102 pinctrl-names = "default"; 103}; 104 105&mub { 106 status = "okay"; 107}; 108