You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
247 lines
4.6 KiB
247 lines
4.6 KiB
/* |
|
* Copyright 2024-2025 NXP |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
/dts-v1/; |
|
|
|
#include <nxp/nxp_rt7xx_cm33_cpu0.dtsi> |
|
#include <zephyr/dt-bindings/i2c/i2c.h> |
|
#include <zephyr/dt-bindings/input/input-event-codes.h> |
|
#include "mimxrt700_evk-pinctrl.dtsi" |
|
|
|
/ { |
|
model = "NXP MIMXRT700-EVK board"; |
|
compatible = "nxp,mimxrt798s"; |
|
|
|
aliases { |
|
led0 = &green_led; |
|
led1 = &blue_led; |
|
sw0 = &user_button_1; |
|
sw1 = &user_button_2; |
|
watchdog0 = &wwdt0; |
|
pwm-0 = &sc_timer; |
|
i2s-codec-tx = &sai0; |
|
i2s-tx = &sai0; |
|
}; |
|
|
|
chosen { |
|
zephyr,flash-controller = &mx25um51345g; |
|
zephyr,flash = &mx25um51345g; |
|
zephyr,sram = &sram0; |
|
zephyr,console = &flexcomm0_lpuart0; |
|
zephyr,shell-uart = &flexcomm0_lpuart0; |
|
zephyr,display = &lcdif; |
|
}; |
|
|
|
leds { |
|
compatible = "gpio-leds"; |
|
green_led: led_0 { |
|
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
|
label = "User LED_GREEN"; |
|
}; |
|
blue_led: led_1 { |
|
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
|
label = "User LED_BLUE"; |
|
}; |
|
}; |
|
|
|
gpio_keys { |
|
compatible = "gpio-keys"; |
|
user_button_1: button_0 { |
|
label = "User SW5"; |
|
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
zephyr,code = <INPUT_KEY_0>; |
|
}; |
|
user_button_2: button_1 { |
|
label = "User SW7"; |
|
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; |
|
zephyr,code = <INPUT_KEY_1>; |
|
}; |
|
}; |
|
|
|
/* |
|
* This node describes the GPIO pins of the MIPI FPC interface, |
|
* J50 on the EVK. This interface is standard to several |
|
* NXP EVKs, and is used with several MIPI displays |
|
* (available as zephyr shields) |
|
*/ |
|
nxp_mipi_connector: mipi-connector { |
|
compatible = "gpio-nexus"; |
|
#gpio-cells = <2>; |
|
gpio-map-mask = <0xffffffff 0xffffffc0>; |
|
gpio-map-pass-thru = <0 0x3f>; |
|
gpio-map = <0 0 &gpio1 14 0>, /* Pin 1, LEDK */ |
|
<21 0 &gpio3 4 0>, /* Pin 21, RESET */ |
|
<22 0 &gpio3 5 0>, /* Pin 22, LPTE */ |
|
<26 0 &gpio0 6 0>, /* Pin 26, CTP_I2C SDA */ |
|
<27 0 &gpio0 7 0>, /* Pin 27, CTP_I2C SCL */ |
|
<28 0 &gpio3 8 0>, /* Pin 28, CTP_RST */ |
|
<29 0 &gpio1 13 0>, /* Pin 29, CTP_INT */ |
|
<32 0 &gpio1 10 0>, /* Pin 32, PWR_EN */ |
|
<34 0 &gpio1 14 0>; /* Pin 34, BL_PWM */ |
|
}; |
|
|
|
en_mipi_display: enable-mipi-display { |
|
compatible = "regulator-fixed"; |
|
regulator-name = "en_mipi_display"; |
|
enable-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
|
regulator-boot-on; |
|
}; |
|
}; |
|
|
|
&ctimer0 { |
|
status = "okay"; |
|
}; |
|
|
|
&edma0 { |
|
status = "okay"; |
|
}; |
|
|
|
/* |
|
* RT700-EVK board cm33_cpu0 uses OS timer as the kernel timer |
|
* In case we need to switch to SYSTICK timer, then |
|
* replace &os_timer with &systick |
|
*/ |
|
&os_timer_cpu0 { |
|
status = "okay"; |
|
wakeup-source; |
|
}; |
|
|
|
&flexcomm0{ |
|
status = "okay"; |
|
}; |
|
|
|
&flexcomm0_lpuart0 { |
|
status = "okay"; |
|
current-speed = <115200>; |
|
pinctrl-0 = <&pinmux_flexcomm0_lpuart>; |
|
pinctrl-names = "default"; |
|
}; |
|
|
|
&lpspi14 { |
|
status = "okay"; |
|
/* DMA channels 0 and 1, muxed to LPSPI14 RX and TX */ |
|
dmas = <&edma0 0 73>, <&edma0 1 74>; |
|
dma-names = "rx", "tx"; |
|
pinctrl-0 = <&pinmux_lpspi14>; |
|
pinctrl-names = "default"; |
|
}; |
|
|
|
&flexcomm2{ |
|
status = "okay"; |
|
}; |
|
|
|
&flexcomm2_lpi2c2 { |
|
status = "okay"; |
|
pinctrl-0 = <&pinmux_flexcomm2_i2c>; |
|
pinctrl-names = "default"; |
|
clock-frequency = <I2C_BITRATE_STANDARD>; |
|
#address-cells = <1>; |
|
#size-cells = <0>; |
|
|
|
audio_codec: wm8962@1a { |
|
compatible = "wolfson,wm8962"; |
|
reg = <0x1a>; |
|
clock-source = "MCLK"; |
|
clocks = <&clkctl0 MCUX_SAI0_CLK>; |
|
clock-names = "mclk"; |
|
}; |
|
}; |
|
|
|
&flexcomm8{ |
|
status = "okay"; |
|
}; |
|
|
|
&flexcomm8_lpi2c8 { |
|
pinctrl-0 = <&pinmux_flexcomm8_i2c>; |
|
pinctrl-names = "default"; |
|
clock-frequency = <I2C_BITRATE_STANDARD>; |
|
}; |
|
|
|
nxp_mipi_i2c: &flexcomm8_lpi2c8 {}; |
|
|
|
zephyr_mipi_dsi: &mipi_dsi {}; |
|
|
|
zephyr_lcdif: &lcdif {}; |
|
|
|
&gpio0 { |
|
status = "okay"; |
|
}; |
|
|
|
&gpio1 { |
|
status = "okay"; |
|
}; |
|
|
|
&gpio2 { |
|
status = "okay"; |
|
}; |
|
|
|
&gpio3 { |
|
status = "okay"; |
|
}; |
|
|
|
&green_led { |
|
status = "okay"; |
|
}; |
|
|
|
&lpadc0 { |
|
status = "okay"; |
|
pinctrl-0 = <&pinmux_lpadc0>; |
|
pinctrl-names = "default"; |
|
}; |
|
|
|
&blue_led { |
|
status = "okay"; |
|
}; |
|
|
|
&mrt0_channel0 { |
|
status = "okay"; |
|
}; |
|
|
|
&sai0 { |
|
status = "okay"; |
|
pinctrl-0 = <&pinmux_sai0>; |
|
pinctrl-names = "default"; |
|
}; |
|
|
|
&sc_timer { |
|
status = "okay"; |
|
pinctrl-0 = <&pinmux_sctimer>; |
|
pinctrl-names = "default"; |
|
}; |
|
|
|
&xspi0 { |
|
status = "okay"; |
|
|
|
mx25um51345g: mx25um51345g@0 { |
|
compatible = "nxp,xspi-mx25um51345g"; |
|
/* MX25UM51245G is 64MB, 512MBit flash part */ |
|
size = <DT_SIZE_M(64 * 8)>; |
|
reg = <0>; |
|
spi-max-frequency = <200000000>; |
|
status = "okay"; |
|
jedec-id = [c2 81 3a]; |
|
erase-block-size = <4096>; |
|
write-block-size = <2>; |
|
}; |
|
}; |
|
|
|
zephyr_udc0: &usb0 { |
|
status = "okay"; |
|
phy-handle = <&usbphy>; |
|
}; |
|
|
|
&usbphy { |
|
status = "okay"; |
|
tx-d-cal = <7>; |
|
tx-cal-45-dp-ohms = <6>; |
|
tx-cal-45-dm-ohms = <6>; |
|
}; |
|
|
|
&wwdt0 { |
|
status = "okay"; |
|
}; |
|
|
|
p3t1755dp_ard_i2c_interface: &flexcomm8_lpi2c8 {};
|
|
|