blob: 8ea4ea6c2480abad21f09dd5cba07168760a123f [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;
Patrice Chotard24dffa52019-02-19 16:49:05 +010022 mmc0 = &sdio1;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010023 spi0 = &qspi;
24 };
Dario Binacchi64c24082023-09-03 22:48:46 +020025};
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010026
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010027&fmc {
28 /* Memory configuration from sdram datasheet MT48LC_4M32_B2B5-6A */
29 bank1: bank@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070030 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010031 st,sdram-control = /bits/ 8 <NO_COL_8
32 NO_ROW_12
33 MWIDTH_16
34 BANKS_4
35 CAS_3
36 SDCLK_2
37 RD_BURST_EN
38 RD_PIPE_DL_0>;
39 st,sdram-timing = /bits/ 8 <TMRD_2
40 TXSR_6
41 TRAS_4
42 TRC_6
43 TWR_2
44 TRP_2
45 TRCD_2>;
46 /* refcount = (64msec/total_row_sdram)*freq - 20 */
47 st,sdram-refcount = < 1542 >;
48 };
49};
50
Patrice Chotarda5264332025-04-01 15:14:03 +020051&ltdc {
52 bootph-all;
53
54 clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
55};
56
Dario Binacchi6aa2dca2023-09-03 22:48:49 +020057&panel_rgb {
Patrice Chotarda5264332025-04-01 15:14:03 +020058 compatible = "rocktech,rk043fn48h", "simple-panel";
Dario Binacchi6aa2dca2023-09-03 22:48:49 +020059
60 display-timings {
61 timing@0 {
62 clock-frequency = <9000000>;
63 hactive = <480>;
64 vactive = <272>;
65 hfront-porch = <2>;
66 hback-porch = <2>;
67 hsync-len = <41>;
68 vfront-porch = <2>;
69 vback-porch = <2>;
70 vsync-len = <10>;
71 hsync-active = <0>;
72 vsync-active = <0>;
73 de-active = <1>;
74 pixelclk-active = <1>;
75 };
76 };
77};
78
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010079&pinctrl {
80 ethernet_mii: mii@0 {
81 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +010082 pinmux = <STM32_PINMUX('G',13, AF11)>, /* ETH_RMII_TXD0 */
83 <STM32_PINMUX('G',14, AF11)>, /* ETH_RMII_TXD1 */
84 <STM32_PINMUX('G',11, AF11)>, /* ETH_RMII_TX_EN */
85 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
86 <STM32_PINMUX('C', 1, AF11)>, /* ETH_MDC */
87 <STM32_PINMUX('A', 1, AF11)>, /* ETH_RMII_REF_CLK */
88 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RMII_CRS_DV */
89 <STM32_PINMUX('C', 4, AF11)>, /* ETH_RMII_RXD0 */
90 <STM32_PINMUX('C', 5, AF11)>; /* ETH_RMII_RXD1 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010091 slew-rate = <2>;
92 };
93 };
94
95 fmc_pins: fmc@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +010096 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +010097 pinmux = <STM32_PINMUX('D',10, AF12)>, /* D15 */
98 <STM32_PINMUX('D', 9, AF12)>, /* D14 */
99 <STM32_PINMUX('D', 8, AF12)>, /* D13 */
100 <STM32_PINMUX('E',15, AF12)>, /* D12 */
101 <STM32_PINMUX('E',14, AF12)>, /* D11 */
102 <STM32_PINMUX('E',13, AF12)>, /* D10 */
103 <STM32_PINMUX('E',12, AF12)>, /* D9 */
104 <STM32_PINMUX('E',11, AF12)>, /* D8 */
105 <STM32_PINMUX('E',10, AF12)>, /* D7 */
106 <STM32_PINMUX('E', 9, AF12)>, /* D6 */
107 <STM32_PINMUX('E', 8, AF12)>, /* D5 */
108 <STM32_PINMUX('E', 7, AF12)>, /* D4 */
109 <STM32_PINMUX('D', 1, AF12)>, /* D3 */
110 <STM32_PINMUX('D', 0, AF12)>, /* D2 */
111 <STM32_PINMUX('D',15, AF12)>, /* D1 */
112 <STM32_PINMUX('D',14, AF12)>, /* D0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100113
Patrice Chotard24dffa52019-02-19 16:49:05 +0100114 <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */
115 <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100116
Patrice Chotard24dffa52019-02-19 16:49:05 +0100117 <STM32_PINMUX('G', 5, AF12)>, /* BA1 */
118 <STM32_PINMUX('G', 4, AF12)>, /* BA0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100119
Patrice Chotard24dffa52019-02-19 16:49:05 +0100120 <STM32_PINMUX('G', 1, AF12)>, /* A11 */
121 <STM32_PINMUX('G', 0, AF12)>, /* A10 */
122 <STM32_PINMUX('F',15, AF12)>, /* A9 */
123 <STM32_PINMUX('F',14, AF12)>, /* A8 */
124 <STM32_PINMUX('F',13, AF12)>, /* A7 */
125 <STM32_PINMUX('F',12, AF12)>, /* A6 */
126 <STM32_PINMUX('F', 5, AF12)>, /* A5 */
127 <STM32_PINMUX('F', 4, AF12)>, /* A4 */
128 <STM32_PINMUX('F', 3, AF12)>, /* A3 */
129 <STM32_PINMUX('F', 2, AF12)>, /* A2 */
130 <STM32_PINMUX('F', 1, AF12)>, /* A1 */
131 <STM32_PINMUX('F', 0, AF12)>, /* A0 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100132
Patrice Chotard24dffa52019-02-19 16:49:05 +0100133 <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */
134 <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */
135 <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */
136 <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */
137 <STM32_PINMUX('C', 3, AF12)>, /* SDCKE0 */
138 <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100139 slew-rate = <2>;
140 };
141 };
142
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100143 qspi_pins: qspi@0 {
144 pins {
Patrice Chotard24dffa52019-02-19 16:49:05 +0100145 pinmux = <STM32_PINMUX('B', 2, AF9)>, /* CLK */
146 <STM32_PINMUX('B', 6, AF10)>, /* BK1_NCS */
147 <STM32_PINMUX('D',11, AF9)>, /* BK1_IO0 */
148 <STM32_PINMUX('D',12, AF9)>, /* BK1_IO1 */
149 <STM32_PINMUX('D',13, AF9)>, /* BK1_IO3 */
150 <STM32_PINMUX('E', 2, AF9)>; /* BK1_IO2 */
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100151 slew-rate = <2>;
152 };
153 };
154
Patrice Chotard62f56162020-11-06 08:11:58 +0100155 usart1_pins_b: usart1-1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700156 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100157 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700158 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100159 };
160 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700161 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100162 };
163 };
164};
165
166&pwrcfg {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700167 bootph-all;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100168};
169
170&qspi {
Patrice Chotardfcbddcb2021-11-15 11:39:15 +0100171 reg = <0xa0001000 0x1000>, <0x90000000 0x1000000>;
Patrice Chotard62f56162020-11-06 08:11:58 +0100172 qflash0: n25q128a@0 {
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100173 #address-cells = <1>;
174 #size-cells = <1>;
Patrice Chotardbc56e8f2019-04-29 18:25:33 +0200175 compatible = "jedec,spi-nor";
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100176 spi-max-frequency = <108000000>;
Patrice Chotard6b2fd612019-04-29 18:23:31 +0200177 spi-tx-bus-width = <4>;
178 spi-rx-bus-width = <4>;
Patrice Chotarddf2e02a2019-02-19 00:37:20 +0100179 reg = <0>;
180 };
181};