Skip to content

Commit 7635d98

Browse files
VitekSTfabiobaltieri
authored andcommitted
dt: mimxrt700_evk/hifi4: Add definitions
Add dummy interrupt controller, clock control, pin control, Flexcomm 0, Flexcomm 2, SAI0, SAI1, SAI2 into SoC's DT. Enable relevant nodes in board's DT and include pinctrl definitions. Add default LED and button nodes. Set /hifi4's real frequency. Add memory nodes for device's main SRAM. Signed-off-by: Vit Stanicek <[email protected]>
1 parent bd99728 commit 7635d98

File tree

3 files changed

+392
-17
lines changed

3 files changed

+392
-17
lines changed
Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,101 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024, 2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

77
/dts-v1/;
88

9+
#include <zephyr/dt-bindings/i2c/i2c.h>
10+
#include <zephyr/dt-bindings/gpio/gpio.h>
11+
#include <zephyr/dt-bindings/input/input-event-codes.h>
12+
913
#include <nxp/nxp_imxrt700_hifi4.dtsi>
1014

15+
#include "mimxrt700_evk-pinctrl.dtsi"
16+
1117
/ {
1218
model = "NXP MIMXRT700-EVK HiFi4 DSP";
1319
compatible = "nxp,mimxrt798s";
1420

21+
aliases {
22+
led1 = &blue_led;
23+
sw0 = &user_button_1;
24+
i2s-codec-tx = &sai0;
25+
i2s-tx = &sai0;
26+
};
27+
1528
chosen {
16-
zephyr,sram = &dtcm;
29+
zephyr,sram = &adsp_data;
30+
zephyr,console = &flexcomm0_lpuart0;
31+
zephyr,shell-uart = &flexcomm0_lpuart0;
32+
};
33+
34+
leds {
35+
compatible = "gpio-leds";
36+
blue_led: led_1 {
37+
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
38+
label = "User LED_BLUE";
39+
};
40+
};
41+
42+
gpio_keys {
43+
compatible = "gpio-keys";
44+
user_button_1: button_0 {
45+
label = "User SW5";
46+
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
47+
zephyr,code = <INPUT_KEY_0>;
48+
};
49+
};
50+
};
51+
52+
&gpio0 {
53+
status = "okay";
54+
};
55+
56+
&flexcomm0 {
57+
status = "okay";
58+
};
59+
60+
&flexcomm0_lpuart0 {
61+
status = "okay";
62+
current-speed = <115200>;
63+
pinctrl-0 = <&pinmux_flexcomm0_lpuart>;
64+
pinctrl-names = "default";
65+
};
66+
67+
&flexcomm2 {
68+
status = "okay";
69+
};
70+
71+
&flexcomm2_lpi2c2 {
72+
status = "okay";
73+
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
74+
pinctrl-names = "default";
75+
clock-frequency = <I2C_BITRATE_STANDARD>;
76+
#address-cells = <1>;
77+
#size-cells = <0>;
78+
79+
audio_codec: wm8962@1a {
80+
compatible = "wolfson,wm8962";
81+
reg = <0x1a>;
82+
clock-source = "MCLK";
83+
clocks = <&clkctl0 MCUX_SAI0_CLK>;
84+
clock-names = "mclk";
1785
};
1886
};
87+
88+
&edma1 {
89+
status = "okay";
90+
};
91+
92+
&sai0 {
93+
status = "okay";
94+
pinctrl-0 = <&pinmux_sai0>;
95+
pinctrl-names = "default";
96+
mclk-output;
97+
};
98+
99+
&mbox4 {
100+
status = "okay";
101+
};

0 commit comments

Comments
 (0)