~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 9957646a466477f7f158b25fc0215267083e1791 (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
163
164
165
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Copyright (c) 2021, Linaro Limited. All rights reserved.
//

/ {
	aliases {
		spi_nor = &spi_nor;
		i2c0 = &i2c0;
	};

	spi_nor: spi@54800000 {
		compatible = "socionext,synquacer-spi";
		reg = <0x00 0x54800000 0x00 0x1000>;
		interrupts = <0x00 0x9c 0x04 0x00 0x9d 0x04 0x00 0x9e 0x04>;
		clocks = <&clk_alw_1_8>;
		clock-names = "iHCLK";
		socionext,use-rtm;
		socionext,set-aces;
		#address-cells = <1>;
		#size-cells = <0>;
		status = "okay";

		flash0: flash@0 {
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "jedec,spi-nor";
			reg = <0>; /* Chip select 0 */
			spi-max-frequency = <31250000>;
			spi-rx-bus-width = <0x1>;
			spi-tx-bus-width = <0x1>;

			partitions {
				compatible = "fixed-partitions";
				#address-cells = <1>;
				#size-cells = <1>;

				partition@0 {
					label = "BootStrap-BL1";
					reg = <0x0 0x70000>;
					read-only;
				};

				partition@70000 {
					label = "Flash-Writer";
					reg = <0x70000 0x90000>;
					read-only;
				};

				partition@100000 {
					label = "SCP-BL2";
					reg = <0x100000 0x80000>;
					read-only;
				};

				partition@180000 {
					label = "FIP-TFA";
					reg = <0x180000 0x78000>;
				};

				partition@1f8000 {
					label = "Stage2Tables";
					reg = <0x1f8000 0x8000>;
				};

				partition@200000 {
					label = "U-Boot";
					reg = <0x200000 0x100000>;
				};

				partition@300000 {
					label = "UBoot-Env";
					reg = <0x300000 0x100000>;
				};

				partition@500000 {
					label = "MDATA-Pri";
					reg = <0x500000 0x1000>;
				};

				partition@530000 {
					label = "MDATA-Sec";
					reg = <0x530000 0x1000>;
				};

				/* FWU Multi bank update partitions */
				partition@600000 {
					label = "FIP-Bank0";
					reg = <0x600000 0x400000>;
				};

				partition@a00000 {
					label = "FIP-Bank1";
					reg = <0xa00000 0x400000>;
				};
			};
		};
	};

	i2c0: i2c@51200000 {
		compatible = "socionext,synquacer-i2c";
		reg = <0x0 0x51200000 0x0 0x1000>;
		interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
		clocks = <&clk_i2c>;
		clock-names = "pclk";
		clock-frequency = <400000>;
		#address-cells = <1>;
		#size-cells = <0>;
		status = "okay";

		pcf8563: rtc@51 {
			compatible = "nxp,pcf8563";
			reg = <0x51>;
		};
	};

	firmware {
		optee {
			status = "okay";
		};

		fwu-mdata {
			compatible = "u-boot,fwu-mdata-mtd";
			fwu-mdata-store = <&flash0>;
			mdata-parts = "MDATA-Pri", "MDATA-Sec";

			fwu-bank0 {
				id = <0>;
				label = "FIP-Bank0";
				fwu-image0 {
					id = <0>;
					offset = <0x0>;
					size = <0x400000>;
					uuid = "5a66a702-99fd-4fef-a392-c26e261a2828";
				};
			};
			fwu-bank1 {
				id = <1>;
				label = "FIP-Bank1";
				fwu-image0 {
					id = <0>;
					offset = <0x0>;
					size = <0x400000>;
					uuid = "a8f868a1-6e5c-4757-878d-ce63375ef2c0";
				};
			};
		};
	};
};

&smmu {
	status = "okay";
};

&pcie0 {
	status = "okay";
};

&pcie1 {
	status = "okay";
};

&sdhci {
	status = "okay";
};