| /* |
| * Copyright 2024-2025 NXP |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| /dts-v1/; |
| |
| #include <nxp/nxp_mcxw71.dtsi> |
| #include "frdm_mcxw71-pinctrl.dtsi" |
| #include <zephyr/dt-bindings/input/input-event-codes.h> |
| |
| / { |
| model = "NXP FRDM-MCXW71 board"; |
| |
| aliases { |
| led0 = &blue_led; |
| sw0 = &user_button_0; |
| blue-pwm-led = &blue_pwm_led; |
| green-pwm-led = &green_pwm_led; |
| red-pwm-led = &red_pwm_led; |
| }; |
| |
| chosen { |
| zephyr,flash = &flash; |
| zephyr,flash-controller = &fmu; |
| zephyr,code-partition = &slot0_partition; |
| zephyr,sram = &stcm0; |
| zephyr,console = &lpuart1; |
| zephyr,shell-uart = &lpuart1; |
| zephyr,uart-pipe = &lpuart0; |
| zephyr,canbus = &flexcan0; |
| zephyr,uart-mcumgr = &lpuart0; |
| zephyr,bt-c2h-uart = &lpuart0; |
| }; |
| |
| user_led { |
| compatible = "gpio-leds"; |
| blue_led: led { |
| gpios = <&gpioc 1 GPIO_ACTIVE_LOW>; |
| }; |
| }; |
| |
| pwmleds { |
| compatible = "pwm-leds"; |
| blue_pwm_led: pwm_led_0 { |
| pwms = <&tpm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; |
| }; |
| green_pwm_led: pwm_led_1 { |
| pwms = <&tpm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; |
| }; |
| red_pwm_led: pwm_led_2 { |
| pwms = <&tpm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; |
| }; |
| }; |
| |
| gpio_keys { |
| compatible = "gpio-keys"; |
| user_button_0: button_0 { |
| label = "User SW2"; |
| gpios = <&gpioc 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| zephyr,code = <INPUT_KEY_0>; |
| status = "okay"; |
| }; |
| }; |
| }; |
| |
| &vref { |
| status = "okay"; |
| }; |
| |
| &gpiob { |
| status = "okay"; |
| }; |
| |
| &gpioc { |
| status = "okay"; |
| }; |
| |
| &lpuart0 { |
| current-speed = <115200>; |
| status = "okay"; |
| pinctrl-0 = <&pinmux_lpuart0>; |
| pinctrl-names = "default"; |
| }; |
| |
| &lpuart1 { |
| current-speed = <115200>; |
| status = "okay"; |
| pinctrl-0 = <&pinmux_lpuart1>; |
| pinctrl-names = "default"; |
| }; |
| |
| &lpi2c1 { |
| status = "okay"; |
| pinctrl-0 = <&pinmux_lpi2c1>; |
| pinctrl-names = "default"; |
| |
| accelerometer: accelerometer@19 { |
| status = "okay"; |
| compatible = "nxp,fxls8974"; |
| reg = <0x19>; |
| }; |
| }; |
| |
| &lpspi1 { |
| status = "okay"; |
| pinctrl-0 = <&pinmux_lpspi1>; |
| pinctrl-names = "default"; |
| pcs-sck-delay = <5>; |
| sck-pcs-delay = <5>; |
| transfer-delay = <125>; |
| |
| mx25r6435fm2il0: flash@0 { |
| compatible = "jedec,spi-nor"; |
| jedec-id = [c2 28 17]; |
| reg = <0>; |
| /* only wp-gpio on default board configuration, |
| * there is a reset gpio line but the line is |
| * DNP by default on the board (R4 on schematic) |
| */ |
| wp-gpios = <&gpioc 0 GPIO_ACTIVE_LOW>; |
| size = <DT_SIZE_M(64)>; |
| has-dpd; |
| dpd-wakeup-sequence = <30000 20 35000>; |
| t-enter-dpd = <10000>; |
| /* this is the default (reset) mode for this flash */ |
| mxicy,mx25r-power-mode = "low-power"; |
| /* 8 MHz for low power mode */ |
| spi-max-frequency = <8000000>; |
| }; |
| }; |
| |
| &flash { |
| partitions { |
| compatible = "fixed-partitions"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| /* |
| * Partition sizes must be aligned |
| * to the flash memory sector size of 8KB. |
| */ |
| boot_partition: partition@0 { |
| reg = <0x0 DT_SIZE_K(64)>; |
| }; |
| slot0_partition: partition@10000 { |
| reg = <0x10000 DT_SIZE_K(424)>; |
| }; |
| slot1_partition: partition@7A000 { |
| reg = <0x7A000 DT_SIZE_K(424)>; |
| }; |
| storage_partition: partition@E4000 { |
| reg = <0xE4000 DT_SIZE_K(112)>; |
| }; |
| }; |
| }; |
| |
| &fmu { |
| status = "okay"; |
| }; |
| |
| &tpm0 { |
| status = "okay"; |
| pinctrl-0 = <&pinmux_tpm0>; |
| pinctrl-names = "default"; |
| }; |
| |
| &lptmr0 { |
| status = "okay"; |
| }; |
| |
| &flexcan0 { |
| status = "okay"; |
| pinctrl-0 = <&pinmux_flexcan>; |
| pinctrl-names = "default"; |
| |
| can-transceiver { |
| max-bitrate = <5000000>; |
| }; |
| }; |
| |
| &adc0 { |
| pinctrl-0 = <&pinmux_lpadc0>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| }; |
| |
| &nbu { |
| status = "okay"; |
| wakeup-source; |
| }; |
| |
| &rtc { |
| status = "okay"; |
| }; |