blob: 3c2b9fc59512a4042c4d3212e2c7c1d2075303da [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/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 Chotardfe63d3c2019-02-19 16:49:05 +010022 mmc0 = &sdio1;
Patrice Chotard01aabf92019-02-19 00:37:20 +010023 spi0 = &qspi;
24 };
25
26 backlight: backlight {
27 compatible = "gpio-backlight";
28 gpios = <&gpiok 3 0>;
29 status = "okay";
30 };
31
32 button1 {
33 compatible = "st,button1";
34 button-gpio = <&gpioi 11 0>;
35 };
36
37 led1 {
38 compatible = "st,led1";
39 led-gpio = <&gpioi 1 0>;
40 };
41
42 panel-rgb@0 {
43 compatible = "simple-panel";
44 backlight = <&backlight>;
45 enable-gpios = <&gpioi 12 0>;
46 status = "okay";
47
48 display-timings {
49 timing@0 {
50 clock-frequency = <9000000>;
51 hactive = <480>;
52 vactive = <272>;
53 hfront-porch = <2>;
54 hback-porch = <2>;
55 hsync-len = <41>;
56 vfront-porch = <2>;
57 vback-porch = <2>;
58 vsync-len = <10>;
59 hsync-active = <0>;
60 vsync-active = <0>;
Patrice Chotard5468dc82022-08-24 15:42:37 +020061 de-active = <1>;
Patrice Chotard01aabf92019-02-19 00:37:20 +010062 pixelclk-active = <1>;
63 };
64 };
65 };
Dario Binacchif479f5d2023-09-03 22:48:46 +020066};
Patrice Chotard01aabf92019-02-19 00:37:20 +010067
Dario Binacchif479f5d2023-09-03 22:48:46 +020068&ltdc {
69 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
70 pinctrl-0 = <&ltdc_pins>;
71 status = "okay";
72 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +010073};
74
Patrice Chotard01aabf92019-02-19 00:37:20 +010075&fmc {
76 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
77 bank1: bank@0 {
Simon Glass8c103c32023-02-13 08:56:33 -070078 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +010079 st,sdram-control = /bits/ 8 <NO_COL_8
80 NO_ROW_12
81 MWIDTH_16
82 BANKS_4
83 CAS_3
84 SDCLK_2
85 RD_BURST_EN
86 RD_PIPE_DL_0>;
87 st,sdram-timing = /bits/ 8 <TMRD_2
88 TXSR_6
89 TRAS_4
90 TRC_6
91 TWR_2
92 TRP_2
93 TRCD_2>;
94 /* refcount = (64msec/total_row_sdram)*freq - 20 */
95 st,sdram-refcount = < 1542 >;
96 };
97};
98
99&pinctrl {
100 ethernet_mii: mii@0 {
101 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100102 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
103 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
104 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
105 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
106 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
107 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
108 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
109 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
110 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100111 slew-rate = <2>;
112 };
113 };
114
115 fmc_pins: fmc@0 {
Patrice Chotard01aabf92019-02-19 00:37:20 +0100116 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100117 pinmux = <STM32_PINMUX('D',10, AF12)>, /* D15 */
118 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
119 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
120 <STM32_PINMUX('E',15, AF12)>, /* D12 */
121 <STM32_PINMUX('E',14, AF12)>, /* D11 */
122 <STM32_PINMUX('E',13, AF12)>, /* D10 */
123 <STM32_PINMUX('E',12, AF12)>, /* D9 */
124 <STM32_PINMUX('E',11, AF12)>, /* D8 */
125 <STM32_PINMUX('E',10, AF12)>, /* D7 */
126 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
127 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
128 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
129 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
130 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
131 <STM32_PINMUX('D',15, AF12)>, /* D1 */
132 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100133
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100134 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
135 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100136
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100137 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
138 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100139
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100140 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
141 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
142 <STM32_PINMUX('F',15, AF12)>, /* A9 */
143 <STM32_PINMUX('F',14, AF12)>, /* A8 */
144 <STM32_PINMUX('F',13, AF12)>, /* A7 */
145 <STM32_PINMUX('F',12, AF12)>, /* A6 */
146 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
147 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
148 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
149 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
150 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
151 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100152
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100153 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
154 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
155 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
156 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
157 <STM32_PINMUX('C', 3, AF12)>, /* SDCKE0 */
158 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100159 slew-rate = <2>;
160 };
161 };
162
163 ltdc_pins: ltdc@0 {
164 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100165 pinmux = <STM32_PINMUX('E', 4, AF14)>, /* B0 */
Dario Binacchifc7bd992023-07-03 18:02:33 +0200166 <STM32_PINMUX('G',12, AF9)>, /* B4 */
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100167 <STM32_PINMUX('I', 9, AF14)>, /* VSYNC */
168 <STM32_PINMUX('I',10, AF14)>, /* HSYNC */
169 <STM32_PINMUX('I',14, AF14)>, /* CLK */
170 <STM32_PINMUX('I',15, AF14)>, /* R0 */
171 <STM32_PINMUX('J', 0, AF14)>, /* R1 */
172 <STM32_PINMUX('J', 1, AF14)>, /* R2 */
173 <STM32_PINMUX('J', 2, AF14)>, /* R3 */
174 <STM32_PINMUX('J', 3, AF14)>, /* R4 */
175 <STM32_PINMUX('J', 4, AF14)>, /* R5 */
176 <STM32_PINMUX('J', 5, AF14)>, /* R6 */
177 <STM32_PINMUX('J', 6, AF14)>, /* R7 */
178 <STM32_PINMUX('J', 7, AF14)>, /* G0 */
179 <STM32_PINMUX('J', 8, AF14)>, /* G1 */
180 <STM32_PINMUX('J', 9, AF14)>, /* G2 */
181 <STM32_PINMUX('J',10, AF14)>, /* G3 */
182 <STM32_PINMUX('J',11, AF14)>, /* G4 */
183 <STM32_PINMUX('J',13, AF14)>, /* B1 */
184 <STM32_PINMUX('J',14, AF14)>, /* B2 */
185 <STM32_PINMUX('J',15, AF14)>, /* B3 */
186 <STM32_PINMUX('K', 0, AF14)>, /* G5 */
187 <STM32_PINMUX('K', 1, AF14)>, /* G6 */
188 <STM32_PINMUX('K', 2, AF14)>, /* G7 */
189 <STM32_PINMUX('K', 4, AF14)>, /* B5 */
190 <STM32_PINMUX('K', 5, AF14)>, /* B6 */
191 <STM32_PINMUX('K', 6, AF14)>, /* B7 */
192 <STM32_PINMUX('K', 7, AF14)>; /* DE */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100193 slew-rate = <2>;
194 };
195 };
196
197 qspi_pins: qspi@0 {
198 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100199 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
200 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
201 <STM32_PINMUX('D',11, AF9)>, /* BK1_IO0 */
202 <STM32_PINMUX('D',12, AF9)>, /* BK1_IO1 */
203 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
204 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100205 slew-rate = <2>;
206 };
207 };
208
Patrice Chotard61c88ac2020-11-06 08:11:58 +0100209 usart1_pins_b: usart1-1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700210 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100211 pins1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700212 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100213 };
214 pins2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700215 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100216 };
217 };
218};
219
220&pwrcfg {
Simon Glass8c103c32023-02-13 08:56:33 -0700221 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100222};
223
224&qspi {
Patrice Chotard4aace3d2021-11-15 11:39:15 +0100225 reg = <0xa0001000 0x1000>, <0x90000000 0x1000000>;
Patrice Chotard61c88ac2020-11-06 08:11:58 +0100226 qflash0: n25q128a@0 {
Patrice Chotard01aabf92019-02-19 00:37:20 +0100227 #address-cells = <1>;
228 #size-cells = <1>;
Patrice Chotard2f2f68f2019-04-29 18:25:33 +0200229 compatible = "jedec,spi-nor";
Patrice Chotard01aabf92019-02-19 00:37:20 +0100230 spi-max-frequency = <108000000>;
Patrice Chotard7d549cc2019-04-29 18:23:31 +0200231 spi-tx-bus-width = <4>;
232 spi-rx-bus-width = <4>;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100233 reg = <0>;
234 };
235};