1/* 2 * Copyright 2024 NXP 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/dts-v1/; 7 8#include <nxp/nxp_mcxw71.dtsi> 9#include "frdm_mcxw71-pinctrl.dtsi" 10 11/ { 12 model = "NXP FRDM-MCXW71 board"; 13 14 aliases { 15 led0 = &blue_led; 16 blue-pwm-led = &blue_pwm_led; 17 green-pwm-led = &green_pwm_led; 18 red-pwm-led = &red_pwm_led; 19 }; 20 21 chosen { 22 zephyr,flash = &flash; 23 zephyr,flash-controller = &fmu; 24 zephyr,code-partition = &slot0_partition; 25 zephyr,sram = &stcm0; 26 zephyr,console = &lpuart1; 27 zephyr,shell-uart = &lpuart1; 28 zephyr,uart-pipe = &lpuart0; 29 zephyr,canbus = &flexcan0; 30 zephyr,uart-mcumgr = &lpuart0; 31 }; 32 33 user_led { 34 compatible = "gpio-leds"; 35 blue_led: led { 36 gpios = <&gpioc 1 GPIO_ACTIVE_LOW>; 37 }; 38 }; 39 40 pwmleds { 41 compatible = "pwm-leds"; 42 blue_pwm_led: pwm_led_0 { 43 pwms = <&tpm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 44 }; 45 green_pwm_led: pwm_led_1 { 46 pwms = <&tpm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 47 }; 48 red_pwm_led: pwm_led_2 { 49 pwms = <&tpm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 50 }; 51 }; 52}; 53 54&vref { 55 status = "okay"; 56}; 57 58&gpioc { 59 status = "okay"; 60}; 61 62&lpuart0 { 63 current-speed = <115200>; 64 status = "okay"; 65 pinctrl-0 = <&pinmux_lpuart0>; 66 pinctrl-names = "default"; 67}; 68 69&lpuart1 { 70 current-speed = <115200>; 71 status = "okay"; 72 pinctrl-0 = <&pinmux_lpuart1>; 73 pinctrl-names = "default"; 74}; 75 76&lpi2c1 { 77 status = "okay"; 78 pinctrl-0 = <&pinmux_lpi2c1>; 79 pinctrl-names = "default"; 80}; 81 82&lpspi1 { 83 status = "okay"; 84 pinctrl-0 = <&pinmux_lpspi1>; 85 pinctrl-names = "default"; 86}; 87 88&flash { 89 partitions { 90 compatible = "fixed-partitions"; 91 #address-cells = <1>; 92 #size-cells = <1>; 93 /* The MCUBoot swap-move algorithm uses the last 2 sectors 94 * of the primary slot0 for swap status and move. 95 */ 96 boot_partition: partition@0 { 97 reg = <0x0 DT_SIZE_K(64)>; 98 }; 99 slot0_partition: partition@10000 { 100 reg = <0x10000 (DT_SIZE_K(416) + DT_SIZE_K(16))>; 101 }; 102 slot1_partition: partition@7C000 { 103 reg = <0x7C000 DT_SIZE_K(416)>; 104 }; 105 storage_partition: partition@E4000 { 106 reg = <0xE4000 DT_SIZE_K(112)>; 107 }; 108 }; 109}; 110 111&fmu { 112 status = "okay"; 113}; 114 115&tpm0 { 116 status = "okay"; 117 pinctrl-0 = <&pinmux_tpm0>; 118 pinctrl-names = "default"; 119}; 120 121&lptmr0 { 122 status = "okay"; 123}; 124 125&flexcan0 { 126 status = "okay"; 127 pinctrl-0 = <&pinmux_flexcan>; 128 pinctrl-names = "default"; 129 130 can-transceiver { 131 max-bitrate = <5000000>; 132 }; 133}; 134 135&adc0 { 136 pinctrl-0 = <&pinmux_lpadc0>; 137 pinctrl-names = "default"; 138 status = "okay"; 139}; 140 141&nbu { 142 status = "okay"; 143 wakeup-source; 144}; 145