blob: 27d3c8a4457a900d489b741d5c85938f5dc41bfd [file] [log] [blame]
Patrice Chotard01aabf92019-02-19 00:37:20 +01001// SPDX-License-Identifier: GPL-2.0+
2
3#include <stm32f7-u-boot.dtsi>
4/{
5 chosen {
6 bootargs = "root=/dev/mmcblk0p1 rw rootwait";
7 };
8
9 aliases {
10 /* Aliases for gpios so as to use sequence */
11 gpio0 = &gpioa;
12 gpio1 = &gpiob;
13 gpio2 = &gpioc;
14 gpio3 = &gpiod;
15 gpio4 = &gpioe;
16 gpio5 = &gpiof;
17 gpio6 = &gpiog;
18 gpio7 = &gpioh;
19 gpio8 = &gpioi;
20 gpio9 = &gpioj;
21 gpio10 = &gpiok;
22 mmc0 = &sdio;
23 spi0 = &qspi;
24 };
25
26 button1 {
27 compatible = "st,button1";
28 button-gpio = <&gpioc 13 0>;
29 };
30
31 led1 {
32 compatible = "st,led1";
33 led-gpio = <&gpiof 10 0>;
34 };
35};
36
37&fmc {
38 /*
39 * Memory configuration from sdram datasheet IS42S32800G-6BLI
40 */
41 bank1: bank@0 {
42 u-boot,dm-pre-reloc;
43 st,sdram-control = /bits/ 8 <NO_COL_9
44 NO_ROW_12
45 MWIDTH_32
46 BANKS_4
47 CAS_2
48 SDCLK_3
49 RD_BURST_EN
50 RD_PIPE_DL_0>;
51 st,sdram-timing = /bits/ 8 <TMRD_1
52 TXSR_1
53 TRAS_1
54 TRC_6
55 TRP_2
56 TWR_1
57 TRCD_1>;
58 st,sdram-refcount = <1539>;
59 };
60};
61
62&mac {
63 phy-mode = "mii";
64};
65
66&pinctrl {
67 ethernet_mii: mii@0 {
68 pins {
69 pinmux = <STM32F746_PG13_FUNC_ETH_MII_TXD0_ETH_RMII_TXD0>,
70 <STM32F746_PG14_FUNC_ETH_MII_TXD1_ETH_RMII_TXD1>,
71 <STM32F746_PG11_FUNC_ETH_MII_TX_EN_ETH_RMII_TX_EN>,
72 <STM32F746_PA2_FUNC_ETH_MDIO>,
73 <STM32F746_PC1_FUNC_ETH_MDC>,
74 <STM32F746_PA1_FUNC_ETH_MII_RX_CLK_ETH_RMII_REF_CLK>,
75 <STM32F746_PA7_FUNC_ETH_MII_RX_DV_ETH_RMII_CRS_DV>,
76 <STM32F746_PC4_FUNC_ETH_MII_RXD0_ETH_RMII_RXD0>,
77 <STM32F746_PC5_FUNC_ETH_MII_RXD1_ETH_RMII_RXD1>;
78 slew-rate = <2>;
79 };
80 };
81
82 fmc_pins: fmc@0 {
83 pins {
84 pinmux = <STM32F746_PI10_FUNC_FMC_D31>, /* FMC_D31 */
85 <STM32F746_PI9_FUNC_FMC_D30>, /* FMC_D30*/
86 <STM32F746_PI7_FUNC_FMC_D29>, /* FMC_D29 */
87 <STM32F746_PI6_FUNC_FMC_D28>, /* FMC_D28 */
88 <STM32F746_PI3_FUNC_FMC_D27>, /* FMC_D27 */
89 <STM32F746_PI2_FUNC_FMC_D26>, /* FMC_D26 */
90 <STM32F746_PI1_FUNC_FMC_D25>, /* FMC_D25 */
91 <STM32F746_PI0_FUNC_FMC_D24>, /* FMC_D24 */
92 <STM32F746_PH15_FUNC_FMC_D23>, /* FMC_D23 */
93 <STM32F746_PH14_FUNC_FMC_D22>, /* FMC_D22 */
94 <STM32F746_PH13_FUNC_FMC_D21>, /* FMC_D21 */
95 <STM32F746_PH12_FUNC_FMC_D20>, /* FMC_D20 */
96 <STM32F746_PH11_FUNC_FMC_D19>, /* FMC_D19 */
97 <STM32F746_PH10_FUNC_FMC_D18>, /* FMC_D18 */
98 <STM32F746_PH9_FUNC_FMC_D17>, /* FMC_D17 */
99 <STM32F746_PH8_FUNC_FMC_D16>, /* FMC_D16 */
100
101 <STM32F746_PD10_FUNC_FMC_D15>, /* FMC_D15 */
102 <STM32F746_PD9_FUNC_FMC_D14>, /* FMC_D14*/
103 <STM32F746_PD8_FUNC_FMC_D13>, /* FMC_D13 */
104 <STM32F746_PE15_FUNC_FMC_D12>,/* FMC_D12 */
105 <STM32F746_PE14_FUNC_FMC_D11>,/* FMC_D11 */
106 <STM32F746_PE13_FUNC_FMC_D10>,/* FMC_D10 */
107 <STM32F746_PE12_FUNC_FMC_D9>, /* FMC_D9 */
108 <STM32F746_PE11_FUNC_FMC_D8>, /* FMC_D8 */
109 <STM32F746_PE10_FUNC_FMC_D7>, /* FMC_D7 */
110 <STM32F746_PE9_FUNC_FMC_D6>, /* FMC_D6 */
111 <STM32F746_PE8_FUNC_FMC_D5>, /* FMC_D5*/
112 <STM32F746_PE7_FUNC_FMC_D4>, /* FMC_D4 */
113 <STM32F746_PD1_FUNC_FMC_D3>, /* FMC_D3 */
114 <STM32F746_PD0_FUNC_FMC_D2>, /* FMC_D2 */
115 <STM32F746_PD15_FUNC_FMC_D1>, /* FMC_D1 */
116 <STM32F746_PD14_FUNC_FMC_D0>, /* FMC_D0 */
117
118 <STM32F746_PI5_FUNC_FMC_NBL3>, /* FMC_NBL3 */
119 <STM32F746_PI4_FUNC_FMC_NBL2>, /* FMC_NBL2 */
120 <STM32F746_PE1_FUNC_FMC_NBL1>, /* FMC_NBL1 */
121 <STM32F746_PE0_FUNC_FMC_NBL0>, /* FMC_NBL0 */
122
123 <STM32F746_PG5_FUNC_FMC_A15_FMC_BA1>, /* FMC_A15 FMC_BA1 */
124 <STM32F746_PG4_FUNC_FMC_A14_FMC_BA0>, /* FMC_A14 FMC_BA0*/
125
126 <STM32F746_PG1_FUNC_FMC_A11>, /* FMC_A11 */
127 <STM32F746_PG0_FUNC_FMC_A10>, /* FMC_A10 */
128 <STM32F746_PF15_FUNC_FMC_A9>, /* FMC_A9 */
129 <STM32F746_PF14_FUNC_FMC_A8>, /* FMC_A8 */
130 <STM32F746_PF13_FUNC_FMC_A7>, /* FMC_A7 */
131 <STM32F746_PF12_FUNC_FMC_A6>, /* FMC_A6 */
132 <STM32F746_PF5_FUNC_FMC_A5>, /* FUNC_FMC_A5 */
133 <STM32F746_PF4_FUNC_FMC_A4>, /* FMC_A4 */
134 <STM32F746_PF3_FUNC_FMC_A3>, /* FMC_A3 */
135 <STM32F746_PF2_FUNC_FMC_A2>, /* FMC_A2 */
136 <STM32F746_PF1_FUNC_FMC_A1>, /* FMC_A1 */
137 <STM32F746_PF0_FUNC_FMC_A0>, /* FMC_A0 */
138
139 <STM32F746_PH3_FUNC_FMC_SDNE0>,/* FMC_SDNE0 */
140 <STM32F746_PH5_FUNC_FMC_SDNWE>, /* FMC_SDNWE */
141 <STM32F746_PF11_FUNC_FMC_SDNRAS>, /* FMC_SDNRAS */
142 <STM32F746_PG15_FUNC_FMC_SDNCAS>, /* FMC_SDNCAS */
143 <STM32F746_PH2_FUNC_FMC_SDCKE0>, /* FMC_SDCKE0 */
144 <STM32F746_PG8_FUNC_FMC_SDCLK>; /* FMC_SDCLK */
145 slew-rate = <2>;
146 };
147 };
148
149 qspi_pins: qspi@0 {
150 pins {
151 pinmux = <STM32F746_PB2_FUNC_QUADSPI_CLK>,
152 <STM32F746_PB6_FUNC_QUADSPI_BK1_NCS>,
153 <STM32F746_PF8_FUNC_QUADSPI_BK1_IO0>,
154 <STM32F746_PF9_FUNC_QUADSPI_BK1_IO1>,
155 <STM32F746_PF6_FUNC_QUADSPI_BK1_IO3>,
156 <STM32F746_PF7_FUNC_QUADSPI_BK1_IO2>;
157 slew-rate = <2>;
158 };
159 };
160};
161
162&qspi {
163 qflash0: n25q512a {
164 #address-cells = <1>;
165 #size-cells = <1>;
166 spi-max-frequency = <108000000>;
167 spi-tx-bus-width = <1>;
168 spi-rx-bus-width = <1>;
169 reg = <0>;
170 };
171};