blob: 7c99a6e61b68ef9c8bfc0ae952598c4e78025395 [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
Yannick Fertréc898f5e2019-10-07 15:29:11 +020026 panel: panel {
27 compatible = "orisetech,otm8009a";
28 reset-gpios = <&gpioj 15 1>;
29 status = "okay";
30
31 port {
32 panel_in: endpoint {
33 remote-endpoint = <&dsi_out>;
34 };
35 };
36 };
37
38 soc {
39 dsi: dsi@40016c00 {
40 compatible = "st,stm32-dsi";
Patrice Chotard910e9022021-11-15 11:39:14 +010041 reg = <0x40016c00 0x800>;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020042 resets = <&rcc STM32F7_APB2_RESET(DSI)>;
Patrice Chotard910e9022021-11-15 11:39:14 +010043 clocks = <&rcc 0 STM32F7_APB2_CLOCK(DSI)>,
Yannick Fertréc898f5e2019-10-07 15:29:11 +020044 <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>,
45 <&clk_hse>;
46 clock-names = "pclk", "px_clk", "ref";
Simon Glassd3a98cb2023-02-13 08:56:33 -070047 bootph-all;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020048 status = "okay";
49
50 ports {
51 port@0 {
52 dsi_out: endpoint {
53 remote-endpoint = <&panel_in>;
54 };
55 };
56 port@1 {
57 dsi_in: endpoint {
58 remote-endpoint = <&dp_out>;
59 };
60 };
61 };
62 };
Dario Binacchi2b00e182023-11-11 11:44:36 +010063 };
64};
Yannick Fertréc898f5e2019-10-07 15:29:11 +020065
Dario Binacchi2b00e182023-11-11 11:44:36 +010066&ltdc {
67 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
68 bootph-all;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020069
Dario Binacchi2b00e182023-11-11 11:44:36 +010070 ports {
71 port@0 {
72 dp_out: endpoint {
73 remote-endpoint = <&dsi_in>;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020074 };
75 };
76 };
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010077};
78
79&fmc {
80 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
81 bank1: bank@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070082 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010083 st,sdram-control = /bits/ 8 <NO_COL_8
84 NO_ROW_12
85 MWIDTH_32
86 BANKS_4
87 CAS_3
88 SDCLK_2
89 RD_BURST_EN
90 RD_PIPE_DL_0>;
91 st,sdram-timing = /bits/ 8 <TMRD_2
92 TXSR_6
93 TRAS_4
94 TRC_6
95 TWR_2
96 TRP_2
97 TRCD_2>;
98 /* refcount = (64msec/total_row_sdram)*freq - 20 */
99 st,sdram-refcount = < 1542 >;
100 };
101};
102
103&pinctrl {
104 ethernet_mii: mii@0 {
105 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100106 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
107 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
108 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
109 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
110 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
111 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
112 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
113 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
114 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100115 slew-rate = <2>;
116 };
117 };
118
119 fmc_pins: fmc@0 {
120 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100121 pinmux = <STM32_PINMUX('I',10, AF12)>, /* D31 */
122 <STM32_PINMUX('I', 9, AF12)>, /* D30 */
123 <STM32_PINMUX('I', 7, AF12)>, /* D29 */
124 <STM32_PINMUX('I', 6, AF12)>, /* D28 */
125 <STM32_PINMUX('I', 3, AF12)>, /* D27 */
126 <STM32_PINMUX('I', 2, AF12)>, /* D26 */
127 <STM32_PINMUX('I', 1, AF12)>, /* D25 */
128 <STM32_PINMUX('I', 0, AF12)>, /* D24 */
129 <STM32_PINMUX('H',15, AF12)>, /* D23 */
130 <STM32_PINMUX('H',14, AF12)>, /* D22 */
131 <STM32_PINMUX('H',13, AF12)>, /* D21 */
132 <STM32_PINMUX('H',12, AF12)>, /* D20 */
133 <STM32_PINMUX('H',11, AF12)>, /* D19 */
134 <STM32_PINMUX('H',10, AF12)>, /* D18 */
135 <STM32_PINMUX('H', 9, AF12)>, /* D17 */
136 <STM32_PINMUX('H', 8, AF12)>, /* D16 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100137
Patrice Chotard24dffa52019-02-19 16:49:05 +0100138 <STM32_PINMUX('D',10, AF12)>, /* D15 */
139 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
140 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
141 <STM32_PINMUX('E',15, AF12)>, /* D12 */
142 <STM32_PINMUX('E',14, AF12)>, /* D11 */
143 <STM32_PINMUX('E',13, AF12)>, /* D10 */
144 <STM32_PINMUX('E',12, AF12)>, /* D9 */
145 <STM32_PINMUX('E',11, AF12)>, /* D8 */
146 <STM32_PINMUX('E',10, AF12)>, /* D7 */
147 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
148 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
149 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
150 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
151 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
152 <STM32_PINMUX('D',15, AF12)>, /* D1 */
153 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100154
Patrice Chotard24dffa52019-02-19 16:49:05 +0100155 <STM32_PINMUX('I', 5, AF12)>, /* NBL3 */
156 <STM32_PINMUX('I', 4, AF12)>, /* NBL2 */
157 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
158 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100159
Patrice Chotard24dffa52019-02-19 16:49:05 +0100160 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
161 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100162
Patrice Chotard24dffa52019-02-19 16:49:05 +0100163 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
164 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
165 <STM32_PINMUX('F',15, AF12)>, /* A9 */
166 <STM32_PINMUX('F',14, AF12)>, /* A8 */
167 <STM32_PINMUX('F',13, AF12)>, /* A7 */
168 <STM32_PINMUX('F',12, AF12)>, /* A6 */
169 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
170 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
171 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
172 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
173 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
174 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100175
Patrice Chotard24dffa52019-02-19 16:49:05 +0100176 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
177 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
178 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
179 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
180 <STM32_PINMUX('H', 2, AF12)>, /* SDCKE0 */
181 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100182 slew-rate = <2>;
183 };
184 };
185
186 qspi_pins: qspi@0 {
187 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100188 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
189 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
190 <STM32_PINMUX('C', 9, AF9)>, /* BK1_IO0 */
191 <STM32_PINMUX('C',10, AF9)>, /* BK1_IO1 */
192 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
193 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100194 slew-rate = <2>;
195 };
196 };
Patrice Chotard25d02962019-06-25 10:06:05 +0200197
Patrice Chotard62f56162020-11-06 08:11:58 +0100198 usart1_pins_a: usart1-0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700199 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200200 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700201 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200202 };
203 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700204 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200205 };
206 };
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100207};
208
209&qspi {
Patrice Chotard910e9022021-11-15 11:39:14 +0100210 reg = <0xa0001000 0x1000>, <0x90000000 0x4000000>;
Patrice Chotard62f56162020-11-06 08:11:58 +0100211 flash0: mx66l51235l@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100212 #address-cells = <1>;
213 #size-cells = <1>;
Patrice Chotarde8906c62019-04-29 17:39:29 +0200214 compatible = "jedec,spi-nor";
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100215 spi-max-frequency = <108000000>;
Patrice Chotardf12765d92019-04-30 11:32:42 +0200216 spi-tx-bus-width = <4>;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100217 spi-rx-bus-width = <4>;
218 reg = <0>;
219 };
220};