zephyr/boards/nxp/frdm_ke17z/frdm_ke17z.dts
Anke Xiao 2c695f2bed boards: nxp: frdm_ke17z: add the board support
Added configuration file to support frdm_ke17z board

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
2024-05-31 16:31:33 -05:00

76 lines
1.3 KiB
Text

/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nxp/nxp_ke17z.dtsi>
#include "frdm_ke17z-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "NXP Freedom KE17Z board";
compatible = "nxp,frdm-ke17z", "nxp,ke17z", "nxp,mke17z7";
aliases {
led0 = &red_led;
led1 = &green_led;
led2 = &blue_led;
sw0 = &user_button_0;
sw1 = &user_button_1;
};
chosen {
zephyr,sram = &sram_u;
zephyr,flash = &flash0;
zephyr,console = &lpuart0;
zephyr,shell-uart = &lpuart0;
};
leds {
compatible = "gpio-leds";
red_led: led_0 {
gpios = <&gpiod 10 GPIO_ACTIVE_LOW>;
label = "RGB RED";
};
green_led: led_1 {
gpios = <&gpiod 11 GPIO_ACTIVE_LOW>;
label = "RGB GREEN";
};
blue_led: led_2 {
gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
label = "RGB BLUE";
};
};
gpio_keys {
compatible = "gpio-keys";
user_button_0: button_0 {
label = "User SW2";
gpios = <&gpiod 3 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
user_button_1: button_1 {
label = "User SW3";
gpios = <&gpioe 14 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_1>;
};
};
};
&lpuart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&lpuart0_default>;
pinctrl-names = "default";
};
&gpiod {
status = "okay";
};
&gpioe {
status = "okay";
};