| /* |
| * Copyright 2024-2025 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; |
| pwm-led0 = &green_pwm_led; |
| sdhc0 = &usdhc1; |
| }; |
| |
| 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>; |
| }; |
| }; |
| |
| pwmleds { |
| compatible = "pwm-leds"; |
| green_pwm_led: green_pwm_led { |
| pwms = <&flexpwm2_pwm1 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; |
| }; |
| }; |
| }; |
| |
| &emdio { |
| pinctrl-0 = <&emdio_default>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| |
| phy0: phy@2 { |
| compatible = "ethernet-phy"; |
| reg = <0x2>; |
| status = "okay"; |
| }; |
| |
| phy1: phy@5 { |
| compatible = "realtek,rtl8211f"; |
| reg = <0x5>; |
| status = "okay"; |
| }; |
| |
| phy2: phy@4 { |
| compatible = "realtek,rtl8211f"; |
| reg = <0x4>; |
| status = "okay"; |
| }; |
| |
| phy3: phy@7 { |
| compatible = "realtek,rtl8211f"; |
| reg = <0x7>; |
| status = "okay"; |
| }; |
| |
| phy4: phy@3 { |
| compatible = "ethernet-phy"; |
| reg = <0x3>; |
| status = "okay"; |
| }; |
| }; |
| |
| &enetc_psi0 { |
| local-mac-address = [00 00 00 01 02 00]; |
| pinctrl-0 = <ð4_default>; |
| pinctrl-names = "default"; |
| phy-handle = <&phy4>; |
| status = "okay"; |
| }; |
| |
| /* Internal port */ |
| &enetc_psi1 { |
| local-mac-address = [00 00 00 01 03 00]; |
| status = "okay"; |
| }; |
| |
| &switch { |
| status = "okay"; |
| }; |
| |
| &switch_port0 { |
| zephyr,random-mac-address; |
| pinctrl-0 = <ð0_default>; |
| pinctrl-names = "default"; |
| phy-handle = <&phy0>; |
| phy-connection-type = "rmii"; |
| status = "okay"; |
| }; |
| |
| &switch_port1 { |
| zephyr,random-mac-address; |
| pinctrl-0 = <ð1_default>; |
| pinctrl-names = "default"; |
| phy-handle = <&phy1>; |
| phy-connection-type = "rgmii"; |
| status = "okay"; |
| }; |
| |
| &switch_port2 { |
| zephyr,random-mac-address; |
| pinctrl-0 = <ð2_default>; |
| pinctrl-names = "default"; |
| phy-handle = <&phy2>; |
| phy-connection-type = "rgmii"; |
| status = "okay"; |
| }; |
| |
| &switch_port3 { |
| zephyr,random-mac-address; |
| pinctrl-0 = <ð3_default>; |
| pinctrl-names = "default"; |
| phy-handle = <&phy3>; |
| phy-connection-type = "rgmii"; |
| status = "okay"; |
| }; |
| |
| /* Internal port */ |
| &switch_port4 { |
| zephyr,random-mac-address; |
| status = "okay"; |
| }; |
| |
| &lpuart1 { |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&pinmux_lpuart1>; |
| pinctrl-1 = <&pinmux_lpuart1_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| &lpuart12 { |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&pinmux_lpuart12>; |
| pinctrl-1 = <&pinmux_lpuart12_sleep>; |
| pinctrl-names = "default", "sleep"; |
| }; |
| |
| &lpuart3 { |
| pinctrl-0 = <&pinmux_lpuart3>; |
| pinctrl-1 = <&pinmux_lpuart3_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>; |
| }; |
| }; |
| |
| &flexpwm2_pwm1 { |
| status = "okay"; |
| pinctrl-0 = <&pinmux_flexpwm2>; |
| pinctrl-names = "default"; |
| }; |
| |
| &tpm5 { |
| pinctrl-0 = <&pinmux_tpm5>; |
| pinctrl-names = "default"; |
| }; |
| |
| &i3c2 { |
| pinctrl-0 = <&pinmux_i3c2>; |
| pinctrl-names = "default"; |
| }; |
| |
| p3t1755dp_ard_i3c_interface: &i3c2 {}; |
| p3t1755dp_ard_i2c_interface: &lpi2c2 {}; |
| |
| &lpspi3 { |
| dmas = <&edma4 1 13>, <&edma4 2 12>; |
| dma-names = "rx", "tx"; |
| pinctrl-0 = <&pinmux_lpspi3>; |
| pinctrl-names = "default"; |
| }; |
| |
| &usdhc1 { |
| status = "okay"; |
| detect-dat3; |
| no-1-8-v; |
| pwr-gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; |
| pinctrl-0 = <&pinmux_usdhc1>; |
| pinctrl-1 = <&pinmux_usdhc1_dat3_nopull>; |
| pinctrl-names = "default", "nopull"; |
| sdmmc { |
| compatible = "zephyr,sdmmc-disk"; |
| disk-name = "SD"; |
| status = "okay"; |
| }; |
| }; |