aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
blob: 139940bd5d47bec0437a5dd2a80a63b81e5fa5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
/*
 * Copyright : STMicroelectronics 2018
 */

#include "stm32mp157c-ed1-u-boot.dtsi"

/ {
	aliases {
		gpio26 = &stmfx_pinctrl;
		i2c1 = &i2c2;
		i2c4 = &i2c5;
		pinctrl2 = &stmfx_pinctrl;
		spi0 = &qspi;
		usb0 = &usbotg_hs;
	};

	fwu-mdata {
		compatible = "u-boot,fwu-mdata-gpt";
		fwu-mdata-store = <&sdmmc1>;
	};
};

&flash0 {
	bootph-pre-ram;
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

#if defined(CONFIG_STM32MP15X_STM32IMAGE) || defined(CONFIG_SPL)
		partition@0 {
			label = "fsbl1";
			reg = <0x00000000 0x00040000>;
		};
		partition@80000 {
			label = "fsbl2";
			reg = <0x00040000 0x00040000>;
		};
		partition@100000 {
			label = "ssbl";
			reg = <0x00080000 0x00200000>;
		};
		partition@280000  {
			label = "u-boot-env";
			reg = <0x00280000 0x00080000>;
		};
		partition@300000 {
			label = "nor-user";
			reg = <0x00300000 0x03d00000>;
		};
#else
		partition@0 {
			label = "fsbl1";
			reg = <0x00000000 0x00040000>;
		};
		partition@40000 {
			label = "fsbl2";
			reg = <0x00040000 0x00040000>;
		};
		partition@100000 {
			label = "fip";
			reg = <0x00080000 0x00400000>;
		};
		partition@480000 {
			label = "u-boot-env";
			reg = <0x00480000 0x00080000>;
		};
		partition@500000 {
			label = "nor-user";
			reg = <0x00500000 0x03b00000>;
		};
#endif
	};
};

&fmc {
	nand-controller@4,0 {
		nand@0 {
			partitions {
				compatible = "fixed-partitions";
				#address-cells = <1>;
				#size-cells = <1>;

#if defined(CONFIG_STM32MP15X_STM32IMAGE) || defined(CONFIG_SPL)
				partition@0 {
					label = "fsbl";
					reg = <0x00000000 0x00200000>;
				};
				partition@200000 {
					label = "ssbl1";
					reg = <0x00200000 0x00200000>;
				};
				partition@400000 {
					label = "ssbl2";
					reg = <0x00400000 0x00200000>;
				};
				partition@600000 {
					label = "UBI";
					reg = <0x00600000 0x3fa00000>;
				};
#else
				partition@0 {
					label = "fsbl";
					reg = <0x00000000 0x00200000>;
				};
				partition@200000 {
					label = "fip1";
					reg = <0x00200000 0x00400000>;
				};
				partition@600000 {
					label = "fip2";
					reg = <0x00600000 0x00400000>;
				};
				partition@1200000 {
					label = "UBI";
					reg = <0x00a00000 0x3f600000>;
				};
#endif
			};
		};
	};
};

&qspi {
	bootph-pre-ram;
};

&qspi_clk_pins_a {
	bootph-pre-ram;
	pins {
		bootph-pre-ram;
	};
};

&qspi_bk1_pins_a {
	bootph-pre-ram;
	pins {
		bootph-pre-ram;
	};
};

&qspi_cs1_pins_a {
	bootph-pre-ram;
	pins {
		bootph-pre-ram;
	};
};

&qspi_bk2_pins_a {
	bootph-pre-ram;
	pins {
		bootph-pre-ram;
	};
};

&qspi_cs2_pins_a {
	bootph-pre-ram;
	pins {
		bootph-pre-ram;
	};
};