zephyr/boards/nxp/frdm_mcxc242/frdm_mcxc242.dts
Michal Smola 33407bfcd6 boards: frdm_mcxc242: Add basic support for board
Add basic support for NXP frdm_mcxc242 board.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2024-09-05 17:01:33 -04:00

98 lines
1.6 KiB
Text

/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nxp/nxp_mcxc242.dtsi>
#include "frdm_mcxc242-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "NXP FRDM-MCXC242 board";
compatible = "nxp,mcxc242", "nxp,mcx";
aliases {
led0 = &red_led;
led1 = &green_led;
led2 = &red_led;
sw0 = &user_button_2;
sw1 = &user_button_3;
};
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &lpuart0;
zephyr,shell-uart = &lpuart0;
};
leds {
compatible = "gpio-leds";
red_led: led_0 {
gpios = <&gpiob 18 GPIO_ACTIVE_LOW>;
label = "Red LED";
};
green_led: led_1 {
gpios = <&gpiob 19 GPIO_ACTIVE_LOW>;
label = "Green LED";
};
blue_led: led_2 {
gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
label = "Blue LED";
};
};
gpio_keys {
compatible = "gpio-keys";
user_button_2: button_2 {
label = "User SW2";
gpios = <&gpioc 1 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
user_button_3: button_3 {
label = "User SW3";
gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_1>;
};
};
};
&sim {
pllfll-select = <KINETIS_SIM_PLLFLLSEL_MCGPLLCLK>;
er32k-select = <KINETIS_SIM_ER32KSEL_LPO1KHZ>;
};
&cpu0 {
clock-frequency = <48000000>;
};
&osc {
clock-frequency = <32768>;
mode = "low-power";
};
&gpioa {
status = "okay";
};
&gpiob {
status = "okay";
};
&gpioc {
status = "okay";
};
&gpioe {
status = "okay";
};
&lpuart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&pinmux_lpuart0>;
pinctrl-names = "default";
};