1/* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include "mimxrt1180_evk-pinctrl.dtsi" 8#include <zephyr/dt-bindings/input/input-event-codes.h> 9 10/ { 11 aliases { 12 led0 = &green_led; 13 sw0 = &user_button; 14 pwm-led0 = &green_pwm_led; 15 }; 16 17 leds { 18 compatible = "gpio-leds"; 19 green_led: led-1 { 20 gpios = <&gpio4 27 GPIO_ACTIVE_HIGH>; 21 label = "User LED D6"; 22 }; 23 }; 24 25 gpio_keys { 26 compatible = "gpio-keys"; 27 user_button: button-1 { 28 label = "User SW8"; 29 gpios = <&gpio1 4 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>; 30 zephyr,code = <INPUT_KEY_0>; 31 }; 32 }; 33 34 pwmleds { 35 compatible = "pwm-leds"; 36 green_pwm_led: green_pwm_led { 37 pwms = <&flexpwm2_pwm1 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 38 }; 39 }; 40}; 41 42&lpuart1 { 43 status = "okay"; 44 current-speed = <115200>; 45 pinctrl-0 = <&pinmux_lpuart1>; 46 pinctrl-1 = <&pinmux_lpuart1_sleep>; 47 pinctrl-names = "default", "sleep"; 48}; 49 50&user_button { 51 status = "okay"; 52}; 53 54&green_led { 55 status = "okay"; 56}; 57 58&gpio1 { 59 status = "okay"; 60}; 61 62&gpio4 { 63 status = "okay"; 64}; 65 66&flexspi { 67 pinctrl-0 = <&pinmux_flexspi1>; 68 pinctrl-names = "default"; 69}; 70 71&flexspi { 72 status = "okay"; 73 ahb-prefetch; 74 ahb-read-addr-opt; 75 rx-clock-source = <1>; 76 w25q128jw: w25q128jw@0 { 77 compatible = "nxp,imx-flexspi-nor"; 78 size = <DT_SIZE_M(16*8)>; 79 reg = <0>; 80 spi-max-frequency = <133000000>; 81 status = "okay"; 82 jedec-id = [ef 60 18]; 83 erase-block-size = <4096>; 84 write-block-size = <1>; 85 86 partitions { 87 compatible = "fixed-partitions"; 88 #address-cells = <1>; 89 #size-cells = <1>; 90 91 boot_partition: partition@0 { 92 label = "mcuboot"; 93 reg = <0x00000000 DT_SIZE_K(128)>; 94 }; 95 /* The MCUBoot swap-move algorithm uses the last 3 sectors 96 * of the primary slot0 for swap status and move. 97 */ 98 slot0_partition: partition@20000 { 99 label = "image-0"; 100 reg = <0x00020000 (DT_SIZE_M(7) + DT_SIZE_K(12))>; 101 }; 102 slot1_partition: partition@723000 { 103 label = "image-1"; 104 reg = <0x00723000 DT_SIZE_M(7)>; 105 }; 106 storage_partition: partition@E23000 { 107 label = "storage"; 108 reg = <0x00E23000 (DT_SIZE_M(2) - DT_SIZE_K(140))>; 109 }; 110 }; 111 }; 112}; 113 114&lpi2c2 { 115 pinctrl-0 = <&pinmux_lpi2c2>; 116 pinctrl-names = "default"; 117}; 118 119&lpi2c3 { 120 pinctrl-0 = <&pinmux_lpi2c3>; 121 pinctrl-names = "default"; 122}; 123 124&lpadc1 { 125 pinctrl-0 = <&pinmux_lpadc1>; 126 pinctrl-names = "default"; 127}; 128 129&flexcan3 { 130 pinctrl-0 = <&pinmux_flexcan3>; 131 pinctrl-names = "default"; 132 can-transceiver { 133 max-bitrate = <5000000>; 134 }; 135}; 136 137&flexpwm2_pwm1 { 138 status = "okay"; 139 pinctrl-0 = <&pinmux_flexpwm2>; 140 pinctrl-names = "default"; 141}; 142 143&tpm5 { 144 pinctrl-0 = <&pinmux_tpm5>; 145 pinctrl-names = "default"; 146}; 147 148&i3c2 { 149 pinctrl-0 = <&pinmux_i3c2>; 150 pinctrl-names = "default"; 151}; 152 153p3t1755dp_ard_i3c_interface: &i3c2 {}; 154p3t1755dp_ard_i2c_interface: &lpi2c2 {}; 155