| /* |
| * Copyright 2025 NXP |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| /dts-v1/; |
| |
| #include <nxp/nxp_mcxe31b.dtsi> |
| #include "frdm_mcxe31b-pinctrl.dtsi" |
| #include <dt-bindings/gpio/gpio.h> |
| #include <zephyr/dt-bindings/gpio/arduino-header-r3.h> |
| #include <zephyr/dt-bindings/input/input-event-codes.h> |
| |
| / { |
| model = "NXP FRDM_MCXE31B board"; |
| compatible = "nxp,mcxe31b"; |
| |
| aliases { |
| led0 = &red_led; |
| led1 = &green_led; |
| led2 = &blue_led; |
| sw0 = &user_button; |
| }; |
| |
| chosen { |
| zephyr,sram = &sram; |
| zephyr,itcm = &itcm; |
| zephyr,dtcm = &dtcm; |
| zephyr,flash = &program_flash; |
| zephyr,flash-controller = &flash; |
| zephyr,console = &lpuart_5; |
| }; |
| |
| leds { |
| compatible = "gpio-leds"; |
| |
| red_led: led_0 { |
| gpios = <&gpioc_h 0 GPIO_ACTIVE_LOW>; |
| label = "Red LED"; |
| }; |
| |
| green_led: led_1 { |
| gpios = <&gpiob_h 6 GPIO_ACTIVE_LOW>; |
| label = "Green LED"; |
| }; |
| |
| blue_led: led_2 { |
| gpios = <&gpioc_l 14 GPIO_ACTIVE_LOW>; |
| label = "Blue LED"; |
| }; |
| }; |
| |
| gpio_keys { |
| compatible = "gpio-keys"; |
| |
| user_button: button_0 { |
| label = "User SW3"; |
| gpios = <&gpiod_l 5 GPIO_ACTIVE_LOW>; |
| zephyr,code = <INPUT_KEY_0>; |
| }; |
| }; |
| |
| arduino_header: connector { |
| compatible = "arduino-header-r3"; |
| #gpio-cells = <2>; |
| gpio-map-mask = <0xffffffff 0xffffffc0>; |
| gpio-map-pass-thru = <0 0x3f>; |
| gpio-map = <ARDUINO_HEADER_R3_A0 0 &gpioe_h 0 0>, |
| <ARDUINO_HEADER_R3_A1 0 &gpioe_l 15 0>, |
| <ARDUINO_HEADER_R3_A2 0 &gpiod_l 1 0>, |
| <ARDUINO_HEADER_R3_A3 0 &gpioe_l 10 0>, |
| <ARDUINO_HEADER_R3_A4 0 &gpioc_l 11 0>, |
| <ARDUINO_HEADER_R3_A5 0 &gpioc_l 10 0>, |
| <ARDUINO_HEADER_R3_D0 0 &gpioa_l 8 0>, |
| <ARDUINO_HEADER_R3_D1 0 &gpioa_l 9 0>, |
| <ARDUINO_HEADER_R3_D2 0 &gpioe_h 7 0>, |
| <ARDUINO_HEADER_R3_D3 0 &gpioa_l 13 0>, |
| <ARDUINO_HEADER_R3_D4 0 &gpioe_h 6 0>, |
| <ARDUINO_HEADER_R3_D5 0 &gpioe_h 5 0>, |
| <ARDUINO_HEADER_R3_D6 0 &gpioa_h 0 0>, |
| <ARDUINO_HEADER_R3_D7 0 &gpioe_h 1 0>, |
| <ARDUINO_HEADER_R3_D8 0 &gpioe_h 2 0>, |
| <ARDUINO_HEADER_R3_D9 0 &gpioa_l 15 0>, |
| <ARDUINO_HEADER_R3_D10 0 &gpioe_l 6 0>, |
| <ARDUINO_HEADER_R3_D11 0 &gpioe_l 2 0>, |
| <ARDUINO_HEADER_R3_D12 0 &gpioe_l 0 0>, |
| <ARDUINO_HEADER_R3_D13 0 &gpioe_l 1 0>, |
| <ARDUINO_HEADER_R3_D14 0 &gpioc_l 6 0>, |
| <ARDUINO_HEADER_R3_D15 0 &gpioc_l 7 0>; |
| }; |
| }; |
| |
| &core0 { |
| clock-frequency = <DT_FREQ_M(160)>; |
| }; |
| |
| &gpiob_h { |
| status = "okay"; |
| }; |
| |
| &lpuart_5 { |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&pinmux_lpuart_5>; |
| pinctrl-names = "default"; |
| dmas = <&edma 1 44>, <&edma 2 45>; |
| dma-names = "tx", "rx"; |
| }; |
| |
| &gpioc_l { |
| status = "okay"; |
| }; |
| |
| &gpioc_h { |
| status = "okay"; |
| }; |
| |
| &gpiod_l { |
| status = "okay"; |
| }; |
| |
| &eirq0 { |
| pinctrl-0 = <&eirq0_default>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| }; |
| |
| &firc { |
| status = "okay"; |
| firc-div = "UnDiv"; |
| }; |
| |
| &fxosc { |
| status = "okay"; |
| freq = <16000000>; |
| workmode = "crystal"; |
| delay = <49>; |
| overdrive = <12>; |
| }; |
| |
| &pll { |
| status = "okay"; |
| workmode = "Integer"; |
| prediv = <2>; |
| postdiv = <2>; |
| multiplier = <120>; |
| fracloopdiv = <0>; |
| stepsize = <0>; |
| stepnum = <0>; |
| accuracy = "Accuracy9"; |
| outdiv = <3 3>; |
| }; |
| |
| &mc_cgm { |
| status = "okay"; |
| max-ido-change = <50>; |
| step-duration = <1>; |
| clk-src-freq = <160000000>; |
| mux-0-dc-0-div = <1>; |
| mux-0-dc-1-div = <2>; |
| mux-0-dc-2-div = <4>; |
| mux-0-dc-3-div = <2>; |
| mux-0-dc-4-div = <4>; |
| mux-0-dc-5-div = <4>; |
| mux-0-dc-6-div = <1>; |
| }; |