-
Notifications
You must be signed in to change notification settings - Fork 7.2k
/
Copy pathstm32n6570_dk_common.dtsi
190 lines (164 loc) · 3.79 KB
/
stm32n6570_dk_common.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
* Copyright (c) 2025 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/n6/stm32n657X0.dtsi>
#include <st/n6/stm32n657x0hxq-pinctrl.dtsi>
#include <zephyr/dt-bindings/flash_controller/xspi.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "arduino_r3_connector.dtsi"
/ {
chosen {
zephyr,console = &usart1;
zephyr,shell-uart = &usart1;
zephyr,sram = &axisram2;
zephyr,canbus = &fdcan1;
spi-flash0 = &mx66uw1g45g;
};
aliases {
led0 = &green_led_1;
};
leds: leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioo 1 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
red_led_1: led_2 {
gpios = <&gpiog 10 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
};
};
&clk_hsi {
hsi-div = <1>;
status = "okay";
};
&pll1 {
clocks = <&clk_hsi>;
div-m = <4>;
mul-n = <75>;
div-p1 = <1>;
div-p2 = <1>;
status = "okay";
};
&ic1 {
pll-src = <1>;
ic-div = <2>;
status = "okay";
};
&ic2 {
pll-src = <1>;
ic-div = <3>;
status = "okay";
};
&ic6 {
pll-src = <1>;
ic-div = <2>;
status = "okay";
};
&ic11 {
pll-src = <1>;
ic-div = <3>;
status = "okay";
};
&perck {
clocks = <&rcc STM32_SRC_HSI PER_SEL(0)>;
status = "okay";
};
&cpusw {
clocks = <&rcc STM32_SRC_IC1 CPU_SEL(3)>;
clock-frequency = <DT_FREQ_M(600)>;
status = "okay";
};
&rcc {
/* ic2, ic6 & ic11 must all be enabled to set ic2 as SYSCLK */
clocks = <&ic2>;
clock-frequency = <DT_FREQ_M(400)>;
ahb-prescaler = <2>;
apb1-prescaler = <1>;
apb2-prescaler = <1>;
apb4-prescaler = <1>;
apb5-prescaler = <1>;
};
&adc1 {
clocks = <&rcc STM32_CLOCK(AHB1, 5)>,
<&rcc STM32_SRC_CKPER ADC12_SEL(1)>;
pinctrl-0 = <&adc1_inp10_pa9 &adc1_inp11_pa10>; /* Arduino A1 & A2 */
pinctrl-names = "default";
vref-mv = <1800>;
status = "okay";
};
&fdcan1 {
clocks = <&rcc STM32_CLOCK(APB1_2, 8)>,
<&rcc STM32_SRC_CKPER FDCAN_SEL(1)>;
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_ph2>;
pinctrl-names = "default";
status = "okay";
};
&i2c1 {
clocks = <&rcc STM32_CLOCK(APB1, 21)>,
<&rcc STM32_SRC_CKPER I2C1_SEL(1)>;
pinctrl-0 = <&i2c1_scl_ph9 &i2c1_sda_pc1>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
};
&i2c4 {
clocks = <&rcc STM32_CLOCK(APB4, 7)>,
<&rcc STM32_SRC_CKPER I2C4_SEL(1)>;
pinctrl-0 = <&i2c4_scl_pe13 &i2c4_sda_pe14>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
};
&spi5 {
clocks = <&rcc STM32_CLOCK(APB2, 20)>,
<&rcc STM32_SRC_CKPER SPI5_SEL(1)>;
pinctrl-0 = <&spi5_nss_pa3 &spi5_sck_pe15 &spi5_miso_ph8 &spi5_mosi_pg2>;
pinctrl-names = "default";
status = "okay";
};
&usart1 {
clocks = <&rcc STM32_CLOCK(APB2, 4)>,
<&rcc STM32_SRC_CKPER USART1_SEL(1)>;
pinctrl-0 = <&usart1_tx_pe5 &usart1_rx_pe6>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
&usart2 {
clocks = <&rcc STM32_CLOCK(APB1, 17)>,
<&rcc STM32_SRC_CKPER USART2_SEL(1)>;
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pf6>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
&xspi2 {
pinctrl-0 = <&xspim_p2_ncs1_pn1 &xspim_p2_dqs0_pn0 &xspim_p2_clk_pn6
&xspim_p2_io0_pn2 &xspim_p2_io1_pn3 &xspim_p2_io2_pn4
&xspim_p2_io3_pn5 &xspim_p2_io4_pn8 &xspim_p2_io5_pn9
&xspim_p2_io6_pn10 &xspim_p2_io7_pn11>;
pinctrl-names = "default";
status = "okay";
mx66uw1g45g: ospi-nor-flash@70000000 {
compatible = "st,stm32-xspi-nor";
reg = <0x70000000 DT_SIZE_M(128)>; /* 1 Gbits */
ospi-max-frequency = <DT_FREQ_M(200)>;
spi-bus-width = <XSPI_OCTO_MODE>;
data-rate = <XSPI_DTR_TRANSFER>;
four-byte-opcodes;
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@7ff0000 {
label = "storage";
reg = <0x7ff0000 DT_SIZE_K(64)>;
};
};
};
};