blob: 1b42d6cbbc19202c86ebbbf4f0577275e6f8a510 [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
Patrice Chotard01aabf92019-02-19 00:37:20 +010026 button1 {
27 compatible = "st,button1";
28 button-gpio = <&gpioi 11 0>;
29 };
30
31 led1 {
32 compatible = "st,led1";
33 led-gpio = <&gpioi 1 0>;
34 };
Dario Binacchif479f5d2023-09-03 22:48:46 +020035};
Patrice Chotard01aabf92019-02-19 00:37:20 +010036
Dario Binacchif479f5d2023-09-03 22:48:46 +020037&ltdc {
38 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
Dario Binacchif479f5d2023-09-03 22:48:46 +020039 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +010040};
41
Patrice Chotard01aabf92019-02-19 00:37:20 +010042&fmc {
43 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
44 bank1: bank@0 {
Simon Glass8c103c32023-02-13 08:56:33 -070045 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +010046 st,sdram-control = /bits/ 8 <NO_COL_8
47 NO_ROW_12
48 MWIDTH_16
49 BANKS_4
50 CAS_3
51 SDCLK_2
52 RD_BURST_EN
53 RD_PIPE_DL_0>;
54 st,sdram-timing = /bits/ 8 <TMRD_2
55 TXSR_6
56 TRAS_4
57 TRC_6
58 TWR_2
59 TRP_2
60 TRCD_2>;
61 /* refcount = (64msec/total_row_sdram)*freq - 20 */
62 st,sdram-refcount = < 1542 >;
63 };
64};
65
Dario Binacchi1e4d9952023-09-03 22:48:49 +020066&panel_rgb {
67 compatible = "simple-panel";
68
69 display-timings {
70 timing@0 {
71 clock-frequency = <9000000>;
72 hactive = <480>;
73 vactive = <272>;
74 hfront-porch = <2>;
75 hback-porch = <2>;
76 hsync-len = <41>;
77 vfront-porch = <2>;
78 vback-porch = <2>;
79 vsync-len = <10>;
80 hsync-active = <0>;
81 vsync-active = <0>;
82 de-active = <1>;
83 pixelclk-active = <1>;
84 };
85 };
86};
87
Patrice Chotard01aabf92019-02-19 00:37:20 +010088&pinctrl {
89 ethernet_mii: mii@0 {
90 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010091 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
92 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
93 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
94 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
95 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
96 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
97 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
98 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
99 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100100 slew-rate = <2>;
101 };
102 };
103
104 fmc_pins: fmc@0 {
Patrice Chotard01aabf92019-02-19 00:37:20 +0100105 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100106 pinmux = <STM32_PINMUX('D',10, AF12)>, /* D15 */
107 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
108 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
109 <STM32_PINMUX('E',15, AF12)>, /* D12 */
110 <STM32_PINMUX('E',14, AF12)>, /* D11 */
111 <STM32_PINMUX('E',13, AF12)>, /* D10 */
112 <STM32_PINMUX('E',12, AF12)>, /* D9 */
113 <STM32_PINMUX('E',11, AF12)>, /* D8 */
114 <STM32_PINMUX('E',10, AF12)>, /* D7 */
115 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
116 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
117 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
118 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
119 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
120 <STM32_PINMUX('D',15, AF12)>, /* D1 */
121 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100122
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100123 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
124 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100125
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100126 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
127 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100128
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100129 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
130 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
131 <STM32_PINMUX('F',15, AF12)>, /* A9 */
132 <STM32_PINMUX('F',14, AF12)>, /* A8 */
133 <STM32_PINMUX('F',13, AF12)>, /* A7 */
134 <STM32_PINMUX('F',12, AF12)>, /* A6 */
135 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
136 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
137 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
138 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
139 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
140 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100141
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100142 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
143 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
144 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
145 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
146 <STM32_PINMUX('C', 3, AF12)>, /* SDCKE0 */
147 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100148 slew-rate = <2>;
149 };
150 };
151
Patrice Chotard01aabf92019-02-19 00:37:20 +0100152 qspi_pins: qspi@0 {
153 pins {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100154 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
155 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
156 <STM32_PINMUX('D',11, AF9)>, /* BK1_IO0 */
157 <STM32_PINMUX('D',12, AF9)>, /* BK1_IO1 */
158 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
159 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotard01aabf92019-02-19 00:37:20 +0100160 slew-rate = <2>;
161 };
162 };
163
Patrice Chotard61c88ac2020-11-06 08:11:58 +0100164 usart1_pins_b: usart1-1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700165 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100166 pins1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700167 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100168 };
169 pins2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700170 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100171 };
172 };
173};
174
175&pwrcfg {
Simon Glass8c103c32023-02-13 08:56:33 -0700176 bootph-all;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100177};
178
179&qspi {
Patrice Chotard4aace3d2021-11-15 11:39:15 +0100180 reg = <0xa0001000 0x1000>, <0x90000000 0x1000000>;
Patrice Chotard61c88ac2020-11-06 08:11:58 +0100181 qflash0: n25q128a@0 {
Patrice Chotard01aabf92019-02-19 00:37:20 +0100182 #address-cells = <1>;
183 #size-cells = <1>;
Patrice Chotard2f2f68f2019-04-29 18:25:33 +0200184 compatible = "jedec,spi-nor";
Patrice Chotard01aabf92019-02-19 00:37:20 +0100185 spi-max-frequency = <108000000>;
Patrice Chotard7d549cc2019-04-29 18:23:31 +0200186 spi-tx-bus-width = <4>;
187 spi-rx-bus-width = <4>;
Patrice Chotard01aabf92019-02-19 00:37:20 +0100188 reg = <0>;
189 };
190};