| /* |
| * Copyright 2024 NXP |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #include "mimxrt1180_evk-pinctrl.dtsi" |
| #include <zephyr/dt-bindings/input/input-event-codes.h> |
| |
| / { |
| aliases { |
| led0 = &green_led; |
| sw0 = &user_button; |
| }; |
| |
| leds { |
| compatible = "gpio-leds"; |
| green_led: led-1 { |
| gpios = <&gpio4 27 GPIO_ACTIVE_HIGH>; |
| label = "User LED D6"; |
| }; |
| }; |
| |
| gpio_keys { |
| compatible = "gpio-keys"; |
| user_button: button-1 { |
| label = "User SW8"; |
| gpios = <&gpio1 4 (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)>; |
| zephyr,code = <INPUT_KEY_0>; |
| }; |
| }; |
| }; |
| |
| &lpuart1 { |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&pinmux_lpuart1>; |
| pinctrl-1 = <&pinmux_lpuart1_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| &user_button { |
| status = "okay"; |
| }; |
| |
| &green_led { |
| status = "okay"; |
| }; |
| |
| &gpio1 { |
| status = "okay"; |
| }; |
| |
| &gpio4 { |
| status = "okay"; |
| }; |
| |
| &flexspi { |
| pinctrl-0 = <&pinmux_flexspi1>; |
| pinctrl-names = "default"; |
| }; |
| |
| &flexspi { |
| status = "okay"; |
| ahb-prefetch; |
| ahb-read-addr-opt; |
| rx-clock-source = <1>; |
| w25q128jw: w25q128jw@0 { |
| compatible = "nxp,imx-flexspi-nor"; |
| size = <DT_SIZE_M(16*8)>; |
| reg = <0>; |
| spi-max-frequency = <133000000>; |
| status = "okay"; |
| jedec-id = [ef 60 18]; |
| erase-block-size = <4096>; |
| write-block-size = <1>; |
| |
| partitions { |
| compatible = "fixed-partitions"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| boot_partition: partition@0 { |
| label = "mcuboot"; |
| reg = <0x00000000 DT_SIZE_K(128)>; |
| }; |
| /* The MCUBoot swap-move algorithm uses the last 3 sectors |
| * of the primary slot0 for swap status and move. |
| */ |
| slot0_partition: partition@20000 { |
| label = "image-0"; |
| reg = <0x00020000 (DT_SIZE_M(7) + DT_SIZE_K(12))>; |
| }; |
| slot1_partition: partition@723000 { |
| label = "image-1"; |
| reg = <0x00723000 DT_SIZE_M(7)>; |
| }; |
| storage_partition: partition@E23000 { |
| label = "storage"; |
| reg = <0x00E23000 (DT_SIZE_M(2) - DT_SIZE_K(140))>; |
| }; |
| }; |
| }; |
| }; |
| |
| &lpi2c2 { |
| pinctrl-0 = <&pinmux_lpi2c2>; |
| pinctrl-names = "default"; |
| }; |
| |
| &lpi2c3 { |
| pinctrl-0 = <&pinmux_lpi2c3>; |
| pinctrl-names = "default"; |
| }; |
| |
| &lpadc1 { |
| pinctrl-0 = <&pinmux_lpadc1>; |
| pinctrl-names = "default"; |
| }; |
| |
| &flexcan3 { |
| pinctrl-0 = <&pinmux_flexcan3>; |
| pinctrl-names = "default"; |
| can-transceiver { |
| max-bitrate = <5000000>; |
| }; |
| }; |