blob: 2c823cce98b4a8820fe238669593d9c0a4739404 [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 };
73
74 ltdc: display-controller@40016800 {
75 compatible = "st,stm32-ltdc";
76 reg = <0x40016800 0x200>;
77 resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
78 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
79
80 status = "okay";
Simon Glassd3a98cb2023-02-13 08:56:33 -070081 bootph-all;
Yannick Fertréc898f5e2019-10-07 15:29:11 +020082
83 ports {
84 port@0 {
85 dp_out: endpoint {
86 remote-endpoint = <&dsi_in>;
87 };
88 };
89 };
90 };
91 };
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010092};
93
94&fmc {
95 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
96 bank1: bank@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070097 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010098 st,sdram-control = /bits/ 8 <NO_COL_8
99 NO_ROW_12
100 MWIDTH_32
101 BANKS_4
102 CAS_3
103 SDCLK_2
104 RD_BURST_EN
105 RD_PIPE_DL_0>;
106 st,sdram-timing = /bits/ 8 <TMRD_2
107 TXSR_6
108 TRAS_4
109 TRC_6
110 TWR_2
111 TRP_2
112 TRCD_2>;
113 /* refcount = (64msec/total_row_sdram)*freq - 20 */
114 st,sdram-refcount = < 1542 >;
115 };
116};
117
118&pinctrl {
119 ethernet_mii: mii@0 {
120 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100121 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
122 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
123 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
124 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
125 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
126 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
127 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
128 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
129 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100130 slew-rate = <2>;
131 };
132 };
133
134 fmc_pins: fmc@0 {
135 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100136 pinmux = <STM32_PINMUX('I',10, AF12)>, /* D31 */
137 <STM32_PINMUX('I', 9, AF12)>, /* D30 */
138 <STM32_PINMUX('I', 7, AF12)>, /* D29 */
139 <STM32_PINMUX('I', 6, AF12)>, /* D28 */
140 <STM32_PINMUX('I', 3, AF12)>, /* D27 */
141 <STM32_PINMUX('I', 2, AF12)>, /* D26 */
142 <STM32_PINMUX('I', 1, AF12)>, /* D25 */
143 <STM32_PINMUX('I', 0, AF12)>, /* D24 */
144 <STM32_PINMUX('H',15, AF12)>, /* D23 */
145 <STM32_PINMUX('H',14, AF12)>, /* D22 */
146 <STM32_PINMUX('H',13, AF12)>, /* D21 */
147 <STM32_PINMUX('H',12, AF12)>, /* D20 */
148 <STM32_PINMUX('H',11, AF12)>, /* D19 */
149 <STM32_PINMUX('H',10, AF12)>, /* D18 */
150 <STM32_PINMUX('H', 9, AF12)>, /* D17 */
151 <STM32_PINMUX('H', 8, AF12)>, /* D16 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100152
Patrice Chotard24dffa52019-02-19 16:49:05 +0100153 <STM32_PINMUX('D',10, AF12)>, /* D15 */
154 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
155 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
156 <STM32_PINMUX('E',15, AF12)>, /* D12 */
157 <STM32_PINMUX('E',14, AF12)>, /* D11 */
158 <STM32_PINMUX('E',13, AF12)>, /* D10 */
159 <STM32_PINMUX('E',12, AF12)>, /* D9 */
160 <STM32_PINMUX('E',11, AF12)>, /* D8 */
161 <STM32_PINMUX('E',10, AF12)>, /* D7 */
162 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
163 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
164 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
165 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
166 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
167 <STM32_PINMUX('D',15, AF12)>, /* D1 */
168 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100169
Patrice Chotard24dffa52019-02-19 16:49:05 +0100170 <STM32_PINMUX('I', 5, AF12)>, /* NBL3 */
171 <STM32_PINMUX('I', 4, AF12)>, /* NBL2 */
172 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
173 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100174
Patrice Chotard24dffa52019-02-19 16:49:05 +0100175 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
176 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100177
Patrice Chotard24dffa52019-02-19 16:49:05 +0100178 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
179 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
180 <STM32_PINMUX('F',15, AF12)>, /* A9 */
181 <STM32_PINMUX('F',14, AF12)>, /* A8 */
182 <STM32_PINMUX('F',13, AF12)>, /* A7 */
183 <STM32_PINMUX('F',12, AF12)>, /* A6 */
184 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
185 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
186 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
187 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
188 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
189 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100190
Patrice Chotard24dffa52019-02-19 16:49:05 +0100191 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
192 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
193 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
194 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
195 <STM32_PINMUX('H', 2, AF12)>, /* SDCKE0 */
196 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100197 slew-rate = <2>;
198 };
199 };
200
201 qspi_pins: qspi@0 {
202 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100203 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
204 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
205 <STM32_PINMUX('C', 9, AF9)>, /* BK1_IO0 */
206 <STM32_PINMUX('C',10, AF9)>, /* BK1_IO1 */
207 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
208 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100209 slew-rate = <2>;
210 };
211 };
Patrice Chotard25d02962019-06-25 10:06:05 +0200212
Patrice Chotard62f56162020-11-06 08:11:58 +0100213 usart1_pins_a: usart1-0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700214 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200215 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700216 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200217 };
218 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700219 bootph-all;
Patrice Chotard25d02962019-06-25 10:06:05 +0200220 };
221 };
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100222};
223
224&qspi {
Patrice Chotard910e9022021-11-15 11:39:14 +0100225 reg = <0xa0001000 0x1000>, <0x90000000 0x4000000>;
Patrice Chotard62f56162020-11-06 08:11:58 +0100226 flash0: mx66l51235l@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100227 #address-cells = <1>;
228 #size-cells = <1>;
Patrice Chotarde8906c62019-04-29 17:39:29 +0200229 compatible = "jedec,spi-nor";
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100230 spi-max-frequency = <108000000>;
Patrice Chotardf12765d92019-04-30 11:32:42 +0200231 spi-tx-bus-width = <4>;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100232 spi-rx-bus-width = <4>;
233 reg = <0>;
234 };
235};