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>
This commit is contained in:
parent
ee3b7427df
commit
2c695f2bed
9 changed files with 348 additions and 0 deletions
76
boards/nxp/frdm_ke17z/frdm_ke17z.dts
Normal file
76
boards/nxp/frdm_ke17z/frdm_ke17z.dts
Normal file
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* 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";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue