blob: 38d797e49a0abed1ad48e668f83e16144436f2f7 [file] [log] [blame]
Patrice Chotarddf2e02a2019-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/ram rdinit=/linuxrc";
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;
Patrice Chotard24dffa52019-02-19 16:49:05 +010022 mmc0 = &sdio1;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010023 spi0 = &qspi;
24 };
Dario Binacchi64c24082023-09-03 22:48:46 +020025};
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010026
Dario Binacchi64c24082023-09-03 22:48:46 +020027&ltdc {
28 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
Dario Binacchi64c24082023-09-03 22:48:46 +020029 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010030};
31
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010032&fmc {
33 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
34 bank1: bank@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070035 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010036 st,sdram-control = /bits/ 8 <NO_COL_8
37 NO_ROW_12
38 MWIDTH_16
39 BANKS_4
40 CAS_3
41 SDCLK_2
42 RD_BURST_EN
43 RD_PIPE_DL_0>;
44 st,sdram-timing = /bits/ 8 <TMRD_2
45 TXSR_6
46 TRAS_4
47 TRC_6
48 TWR_2
49 TRP_2
50 TRCD_2>;
51 /* refcount = (64msec/total_row_sdram)*freq - 20 */
52 st,sdram-refcount = < 1542 >;
53 };
54};
55
Dario Binacchi6aa2dca2023-09-03 22:48:49 +020056&panel_rgb {
57 compatible = "simple-panel";
58
59 display-timings {
60 timing@0 {
61 clock-frequency = <9000000>;
62 hactive = <480>;
63 vactive = <272>;
64 hfront-porch = <2>;
65 hback-porch = <2>;
66 hsync-len = <41>;
67 vfront-porch = <2>;
68 vback-porch = <2>;
69 vsync-len = <10>;
70 hsync-active = <0>;
71 vsync-active = <0>;
72 de-active = <1>;
73 pixelclk-active = <1>;
74 };
75 };
76};
77
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010078&pinctrl {
79 ethernet_mii: mii@0 {
80 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +010081 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
82 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
83 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
84 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
85 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
86 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
87 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
88 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
89 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010090 slew-rate = <2>;
91 };
92 };
93
94 fmc_pins: fmc@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010095 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +010096 pinmux = <STM32_PINMUX('D',10, AF12)>, /* D15 */
97 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
98 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
99 <STM32_PINMUX('E',15, AF12)>, /* D12 */
100 <STM32_PINMUX('E',14, AF12)>, /* D11 */
101 <STM32_PINMUX('E',13, AF12)>, /* D10 */
102 <STM32_PINMUX('E',12, AF12)>, /* D9 */
103 <STM32_PINMUX('E',11, AF12)>, /* D8 */
104 <STM32_PINMUX('E',10, AF12)>, /* D7 */
105 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
106 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
107 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
108 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
109 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
110 <STM32_PINMUX('D',15, AF12)>, /* D1 */
111 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100112
Patrice Chotard24dffa52019-02-19 16:49:05 +0100113 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
114 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100115
Patrice Chotard24dffa52019-02-19 16:49:05 +0100116 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
117 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100118
Patrice Chotard24dffa52019-02-19 16:49:05 +0100119 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
120 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
121 <STM32_PINMUX('F',15, AF12)>, /* A9 */
122 <STM32_PINMUX('F',14, AF12)>, /* A8 */
123 <STM32_PINMUX('F',13, AF12)>, /* A7 */
124 <STM32_PINMUX('F',12, AF12)>, /* A6 */
125 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
126 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
127 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
128 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
129 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
130 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100131
Patrice Chotard24dffa52019-02-19 16:49:05 +0100132 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
133 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
134 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
135 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
136 <STM32_PINMUX('C', 3, AF12)>, /* SDCKE0 */
137 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100138 slew-rate = <2>;
139 };
140 };
141
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100142 qspi_pins: qspi@0 {
143 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100144 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
145 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
146 <STM32_PINMUX('D',11, AF9)>, /* BK1_IO0 */
147 <STM32_PINMUX('D',12, AF9)>, /* BK1_IO1 */
148 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
149 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100150 slew-rate = <2>;
151 };
152 };
153
Patrice Chotard62f56162020-11-06 08:11:58 +0100154 usart1_pins_b: usart1-1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700155 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100156 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700157 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100158 };
159 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700160 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100161 };
162 };
163};
164
165&pwrcfg {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700166 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100167};
168
169&qspi {
Patrice Chotardfcbddcb2021-11-15 11:39:15 +0100170 reg = <0xa0001000 0x1000>, <0x90000000 0x1000000>;
Patrice Chotard62f56162020-11-06 08:11:58 +0100171 qflash0: n25q128a@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100172 #address-cells = <1>;
173 #size-cells = <1>;
Patrice Chotardbc56e8f2019-04-29 18:25:33 +0200174 compatible = "jedec,spi-nor";
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100175 spi-max-frequency = <108000000>;
Patrice Chotard6b2fd612019-04-29 18:23:31 +0200176 spi-tx-bus-width = <4>;
177 spi-rx-bus-width = <4>;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100178 reg = <0>;
179 };
180};