blob: add55c96e21f193ff293dc7df68c18bfe1ff4e73 [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;
22 mmc0 = &sdio2;
23 spi0 = &qspi;
24 };
25
26 button1 {
27 compatible = "st,button1";
28 button-gpio = <&gpioa 0 0>;
29 };
30
31 led1 {
32 compatible = "st,led1";
33 led-gpio = <&gpioj 5 0>;
34 };
Yannick Fertréc898f5e2019-10-07 15:29:11 +020035
36 panel: panel {
37 compatible = "orisetech,otm8009a";
38 reset-gpios = <&gpioj 15 1>;
39 status = "okay";
40
41 port {
42 panel_in: endpoint {
43 remote-endpoint = <&dsi_out>;
44 };
45 };
46 };
47
48 soc {
49 dsi: dsi@40016c00 {
50 compatible = "st,stm32-dsi";
Patrice Chotard910e9022021-11-15 11:39:14 +010051 reg = <0x40016c00 0x800>;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020052 resets = <&rcc STM32F7_APB2_RESET(DSI)>;
Patrice Chotard910e9022021-11-15 11:39:14 +010053 clocks = <&rcc 0 STM32F7_APB2_CLOCK(DSI)>,
Yannick Fertréc898f5e2019-10-07 15:29:11 +020054 <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>,
55 <&clk_hse>;
56 clock-names = "pclk", "px_clk", "ref";
Simon Glassd3a98cb2023-02-13 08:56:33 -070057 bootph-all;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020058 status = "okay";
59
60 ports {
61 port@0 {
62 dsi_out: endpoint {
63 remote-endpoint = <&panel_in>;
64 };
65 };
66 port@1 {
67 dsi_in: endpoint {
68 remote-endpoint = <&dp_out>;
69 };
70 };
71 };
72 };
Dario Binacchi2b00e182023-11-11 11:44:36 +010073 };
74};
Yannick Fertréc898f5e2019-10-07 15:29:11 +020075
Dario Binacchi2b00e182023-11-11 11:44:36 +010076&ltdc {
77 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
78 bootph-all;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020079
Dario Binacchi2b00e182023-11-11 11:44:36 +010080 ports {
81 port@0 {
82 dp_out: endpoint {
83 remote-endpoint = <&dsi_in>;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020084 };
85 };
86 };
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010087};
88
89&fmc {
90 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
91 bank1: bank@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070092 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010093 st,sdram-control = /bits/ 8 <NO_COL_8
94 NO_ROW_12
95 MWIDTH_32
96 BANKS_4
97 CAS_3
98 SDCLK_2
99 RD_BURST_EN
100 RD_PIPE_DL_0>;
101 st,sdram-timing = /bits/ 8 <TMRD_2
102 TXSR_6
103 TRAS_4
104 TRC_6
105 TWR_2
106 TRP_2
107 TRCD_2>;
108 /* refcount = (64msec/total_row_sdram)*freq - 20 */
109 st,sdram-refcount = < 1542 >;
110 };
111};
112
113&pinctrl {
114 ethernet_mii: mii@0 {
115 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100116 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
117 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
118 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
119 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
120 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
121 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
122 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
123 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
124 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100125 slew-rate = <2>;
126 };
127 };
128
129 fmc_pins: fmc@0 {
130 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100131 pinmux = <STM32_PINMUX('I',10, AF12)>, /* D31 */
132 <STM32_PINMUX('I', 9, AF12)>, /* D30 */
133 <STM32_PINMUX('I', 7, AF12)>, /* D29 */
134 <STM32_PINMUX('I', 6, AF12)>, /* D28 */
135 <STM32_PINMUX('I', 3, AF12)>, /* D27 */
136 <STM32_PINMUX('I', 2, AF12)>, /* D26 */
137 <STM32_PINMUX('I', 1, AF12)>, /* D25 */
138 <STM32_PINMUX('I', 0, AF12)>, /* D24 */
139 <STM32_PINMUX('H',15, AF12)>, /* D23 */
140 <STM32_PINMUX('H',14, AF12)>, /* D22 */
141 <STM32_PINMUX('H',13, AF12)>, /* D21 */
142 <STM32_PINMUX('H',12, AF12)>, /* D20 */
143 <STM32_PINMUX('H',11, AF12)>, /* D19 */
144 <STM32_PINMUX('H',10, AF12)>, /* D18 */
145 <STM32_PINMUX('H', 9, AF12)>, /* D17 */
146 <STM32_PINMUX('H', 8, AF12)>, /* D16 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100147
Patrice Chotard24dffa52019-02-19 16:49:05 +0100148 <STM32_PINMUX('D',10, AF12)>, /* D15 */
149 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
150 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
151 <STM32_PINMUX('E',15, AF12)>, /* D12 */
152 <STM32_PINMUX('E',14, AF12)>, /* D11 */
153 <STM32_PINMUX('E',13, AF12)>, /* D10 */
154 <STM32_PINMUX('E',12, AF12)>, /* D9 */
155 <STM32_PINMUX('E',11, AF12)>, /* D8 */
156 <STM32_PINMUX('E',10, AF12)>, /* D7 */
157 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
158 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
159 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
160 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
161 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
162 <STM32_PINMUX('D',15, AF12)>, /* D1 */
163 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100164
Patrice Chotard24dffa52019-02-19 16:49:05 +0100165 <STM32_PINMUX('I', 5, AF12)>, /* NBL3 */
166 <STM32_PINMUX('I', 4, AF12)>, /* NBL2 */
167 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
168 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100169
Patrice Chotard24dffa52019-02-19 16:49:05 +0100170 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
171 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100172
Patrice Chotard24dffa52019-02-19 16:49:05 +0100173 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
174 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
175 <STM32_PINMUX('F',15, AF12)>, /* A9 */
176 <STM32_PINMUX('F',14, AF12)>, /* A8 */
177 <STM32_PINMUX('F',13, AF12)>, /* A7 */
178 <STM32_PINMUX('F',12, AF12)>, /* A6 */
179 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
180 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
181 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
182 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
183 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
184 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100185
Patrice Chotard24dffa52019-02-19 16:49:05 +0100186 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
187 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
188 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
189 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
190 <STM32_PINMUX('H', 2, AF12)>, /* SDCKE0 */
191 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100192 slew-rate = <2>;
193 };
194 };
195
196 qspi_pins: qspi@0 {
197 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100198 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
199 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
200 <STM32_PINMUX('C', 9, AF9)>, /* BK1_IO0 */
201 <STM32_PINMUX('C',10, AF9)>, /* BK1_IO1 */
202 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
203 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100204 slew-rate = <2>;
205 };
206 };
Patrice Chotard25d02962019-06-25 10:06:05 +0200207
Patrice Chotard62f56162020-11-06 08:11:58 +0100208 usart1_pins_a: usart1-0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700209 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200210 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700211 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200212 };
213 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700214 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200215 };
216 };
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100217};
218
219&qspi {
Patrice Chotard910e9022021-11-15 11:39:14 +0100220 reg = <0xa0001000 0x1000>, <0x90000000 0x4000000>;
Patrice Chotard62f56162020-11-06 08:11:58 +0100221 flash0: mx66l51235l@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100222 #address-cells = <1>;
223 #size-cells = <1>;
Patrice Chotarde8906c62019-04-29 17:39:29 +0200224 compatible = "jedec,spi-nor";
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100225 spi-max-frequency = <108000000>;
Patrice Chotardf12765d92019-04-30 11:32:42 +0200226 spi-tx-bus-width = <4>;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100227 spi-rx-bus-width = <4>;
228 reg = <0>;
229 };
230};