/* * 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 = &blue_led; pwm-led0 = &red_pwm_led; pwm-led1 = &green_pwm_led; pwm-led2 = &blue_pwm_led; red-pwm-led = &red_pwm_led; green-pwm-led = &green_pwm_led; blue-pwm-led = &blue_pwm_led; sw0 = &user_button_2; sw1 = &user_button_3; accel0 = &fxls8974; pwm-0 = &tpm1; }; 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"; }; }; pwmleds { compatible = "pwm-leds"; status = "disabled"; red_pwm_led: pwm_led_0 { pwms = <&tpm2 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; label = "PWM Red LED"; }; green_pwm_led: pwm_led_1 { pwms = <&tpm2 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; label = "PWM Green LED"; }; blue_pwm_led: pwm_led_2 { pwms = <&tpm1 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; label = "PWM 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"; }; &uart2 { status = "disabled"; current-speed = <115200>; pinctrl-0 = <&pinmux_uart2>; pinctrl-names = "default"; }; i2c1: &i2c1 { status = "okay"; pinctrl-0 = <&pinmux_i2c1>; pinctrl-names = "default"; fxls8974: fxls8974@18 { status = "okay"; compatible = "nxp,fxls8974"; reg = <0x18>; int1-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>; int2-gpios = <&gpioc 3 GPIO_ACTIVE_LOW>; }; }; zephyr_udc0: &usb { status = "okay"; num-bidir-endpoints = <8>; }; &tpm1 { status = "okay"; pinctrl-0 = <&pinmux_tpm1>; pinctrl-names = "default"; }; &tpm2 { status = "okay"; pinctrl-0 = <&pinmux_tpm2>; pinctrl-names = "default"; }; &adc0 { status = "okay"; pinctrl-0 = <&pinmux_adc0>; pinctrl-names = "default"; }; &lptmr0 { status = "okay"; }; &rtc { status = "okay"; }; &pit0 { status = "okay"; }; &pit0_channel0 { status = "okay"; }; &pit0_channel1 { status = "okay"; };