/* * Copyright 2024 NXP * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include "frdm_mcxc242-pinctrl.dtsi" #include / { 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 = ; }; user_button_3: button_3 { label = "User SW3"; gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; zephyr,code = ; }; }; }; &sim { pllfll-select = ; er32k-select = ; }; &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"; };