blob: 0cc3100440c8d017b48fbe32c7e8ef8038b5fb9a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Patrice Chotard48b7a042017-12-12 09:49:33 +01002/*
3 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
4 * Author(s): Patrice Chotard, <patrice.chotard@st.com> for STMicroelectronics.
Patrice Chotard48b7a042017-12-12 09:49:33 +01005 */
6
7#include <dt-bindings/memory/stm32-sdram.h>
8/{
9 clocks {
10 u-boot,dm-pre-reloc;
11 };
12
13 aliases {
14 /* Aliases for gpios so as to use sequence */
15 gpio0 = &gpioa;
16 gpio1 = &gpiob;
17 gpio2 = &gpioc;
18 gpio3 = &gpiod;
19 gpio4 = &gpioe;
20 gpio5 = &gpiof;
21 gpio6 = &gpiog;
22 gpio7 = &gpioh;
23 gpio8 = &gpioi;
24 gpio9 = &gpioj;
25 gpio10 = &gpiok;
26 };
27
28 soc {
29 u-boot,dm-pre-reloc;
30 pin-controller {
31 u-boot,dm-pre-reloc;
32 };
33
34 fmc: fmc@A0000000 {
35 compatible = "st,stm32-fmc";
36 reg = <0xA0000000 0x1000>;
37 clocks = <&rcc 0 STM32F4_AHB3_CLOCK(FMC)>;
38 pinctrl-0 = <&fmc_pins>;
39 pinctrl-names = "default";
Radoslaw Pietrzyka88d3142018-05-16 17:27:11 +020040 st,syscfg = <&syscfg>;
41 st,swp_fmc = <1>;
Patrice Chotard48b7a042017-12-12 09:49:33 +010042 u-boot,dm-pre-reloc;
43
44 /*
45 * Memory configuration from sdram datasheet
46 * IS42S16400J
47 */
48 bank1: bank@1 {
49 st,sdram-control = /bits/ 8 <NO_COL_8
50 NO_ROW_12
51 MWIDTH_16
52 BANKS_4
53 CAS_3
54 SDCLK_2
55 RD_BURST_EN
56 RD_PIPE_DL_0>;
57 st,sdram-timing = /bits/ 8 <TMRD_3
58 TXSR_7
59 TRAS_4
60 TRC_6
61 TWR_2
62 TRP_2 TRCD_2>;
63 st,sdram-refcount = < 1386 >;
64 };
65 };
66 };
67};
68
69&clk_hse {
70 u-boot,dm-pre-reloc;
71};
72
Patrice Chotard48b7a042017-12-12 09:49:33 +010073&clk_i2s_ckin {
74 u-boot,dm-pre-reloc;
75};
76
Patrice Chotardcfad1262019-02-18 22:46:25 +010077&clk_lse {
Patrice Chotard48b7a042017-12-12 09:49:33 +010078 u-boot,dm-pre-reloc;
79};
80
81&gpioa {
82 compatible = "st,stm32-gpio";
83 u-boot,dm-pre-reloc;
84};
85
86&gpiob {
87 compatible = "st,stm32-gpio";
88 u-boot,dm-pre-reloc;
89};
90
91&gpioc {
92 compatible = "st,stm32-gpio";
93 u-boot,dm-pre-reloc;
94};
95
96&gpiod {
97 compatible = "st,stm32-gpio";
98 u-boot,dm-pre-reloc;
99};
100
101&gpioe {
102 compatible = "st,stm32-gpio";
103 u-boot,dm-pre-reloc;
104};
105
106&gpiof {
107 compatible = "st,stm32-gpio";
108 u-boot,dm-pre-reloc;
109};
110
111&gpiog {
112 compatible = "st,stm32-gpio";
113 u-boot,dm-pre-reloc;
114};
115
116&gpioh {
117 compatible = "st,stm32-gpio";
118 u-boot,dm-pre-reloc;
119};
120
121&gpioi {
122 compatible = "st,stm32-gpio";
123 u-boot,dm-pre-reloc;
124};
125
126&gpioj {
127 compatible = "st,stm32-gpio";
128 u-boot,dm-pre-reloc;
129};
130
131&gpiok {
132 compatible = "st,stm32-gpio";
133 u-boot,dm-pre-reloc;
134};
135
136&pinctrl {
137 usart1_pins_a: usart1@0 {
138 u-boot,dm-pre-reloc;
139 pins1 {
140 u-boot,dm-pre-reloc;
141 };
142 pins2 {
143 u-boot,dm-pre-reloc;
144 };
145 };
146
147 fmc_pins: fmc@0 {
148 u-boot,dm-pre-reloc;
149 pins
150 {
151 pinmux = <STM32_PINMUX('D',10, AF12)>, /* D15 */
152 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
153 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
154 <STM32_PINMUX('E',15, AF12)>, /* D12 */
155 <STM32_PINMUX('E',14, AF12)>, /* D11 */
156 <STM32_PINMUX('E',13, AF12)>, /* D10 */
157 <STM32_PINMUX('E',12, AF12)>, /* D09 */
158 <STM32_PINMUX('E',11, AF12)>, /* D08 */
159 <STM32_PINMUX('E',10, AF12)>, /* D07 */
160 <STM32_PINMUX('E', 9, AF12)>, /* D06 */
161 <STM32_PINMUX('E', 8, AF12)>, /* D05 */
162 <STM32_PINMUX('E', 7, AF12)>, /* D04 */
163 <STM32_PINMUX('D', 1, AF12)>, /* D03 */
164 <STM32_PINMUX('D', 0, AF12)>, /* D02 */
165 <STM32_PINMUX('D',15, AF12)>, /* D01 */
166 <STM32_PINMUX('D',14, AF12)>, /* D00 */
167
168 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
169 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
170
171 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
172 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
173
174 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
175 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
176 <STM32_PINMUX('F',15, AF12)>, /* A09 */
177 <STM32_PINMUX('F',14, AF12)>, /* A08 */
178 <STM32_PINMUX('F',13, AF12)>, /* A07 */
179 <STM32_PINMUX('F',12, AF12)>, /* A06 */
180 <STM32_PINMUX('F', 5, AF12)>, /* A05 */
181 <STM32_PINMUX('F', 4, AF12)>, /* A04 */
182 <STM32_PINMUX('F', 3, AF12)>, /* A03 */
183 <STM32_PINMUX('F', 2, AF12)>, /* A02 */
184 <STM32_PINMUX('F', 1, AF12)>, /* A01 */
185 <STM32_PINMUX('F', 0, AF12)>, /* A00 */
186
187 <STM32_PINMUX('B', 6, AF12)>, /* SDNE1 */
188 <STM32_PINMUX('C', 0, AF12)>, /* SDNWE */
189 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
190 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
191 <STM32_PINMUX('B', 5, AF12)>, /* SDCKE1 */
192 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK */
193 slew-rate = <2>;
194 u-boot,dm-pre-reloc;
195 };
196 };
197};
Patrice Chotardcfad1262019-02-18 22:46:25 +0100198
199&pwrcfg {
200 u-boot,dm-pre-reloc;
201};
202
203&rcc {
204 u-boot,dm-pre-reloc;
205};