• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision156cb2af92c244fae15c8fbdab293d88d451edcf (tree)
Time2022-07-26 15:23:54
AuthorMichal Simek <michal.simek@amd....>
CommiterMichal Simek

Log Message

arm64: zynqmp: Used fixed-partitions for QSPI in k26

Using fixed partitions is recommended way how to describe QSPI. Also add
label for qspi flash memory to be able to reference it in future.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/a84f7ce8d6472fce66539ba29d31fbaae511d94b.1655732762.git.michal.simek@amd.com

Change Summary

Incremental Difference

--- a/arch/arm/dts/zynqmp-sm-k26-revA.dts
+++ b/arch/arm/dts/zynqmp-sm-k26-revA.dts
@@ -130,7 +130,7 @@
130130
131131 &qspi { /* MIO 0-5 - U143 */
132132 status = "okay";
133- flash@0 { /* MT25QU512A */
133+ spi_flash: flash@0 { /* MT25QU512A */
134134 compatible = "mt25qu512a", "jedec,spi-nor"; /* 64MB */
135135 #address-cells = <1>;
136136 #size-cells = <1>;
@@ -138,83 +138,90 @@
138138 spi-tx-bus-width = <4>;
139139 spi-rx-bus-width = <4>;
140140 spi-max-frequency = <40000000>; /* 40MHz */
141- partition@0 {
142- label = "Image Selector";
143- reg = <0x0 0x80000>; /* 512KB */
144- read-only;
145- lock;
146- };
147- partition@80000 {
148- label = "Image Selector Golden";
149- reg = <0x80000 0x80000>; /* 512KB */
150- read-only;
151- lock;
152- };
153- partition@100000 {
154- label = "Persistent Register";
155- reg = <0x100000 0x20000>; /* 128KB */
156- };
157- partition@120000 {
158- label = "Persistent Register Backup";
159- reg = <0x120000 0x20000>; /* 128KB */
160- };
161- partition@140000 {
162- label = "Open_1";
163- reg = <0x140000 0xC0000>; /* 768KB */
164- };
165- partition@200000 {
166- label = "Image A (FSBL, PMU, ATF, U-Boot)";
167- reg = <0x200000 0xD00000>; /* 13MB */
168- };
169- partition@f00000 {
170- label = "ImgSel Image A Catch";
171- reg = <0xF00000 0x80000>; /* 512KB */
172- read-only;
173- lock;
174- };
175- partition@f80000 {
176- label = "Image B (FSBL, PMU, ATF, U-Boot)";
177- reg = <0xF80000 0xD00000>; /* 13MB */
178- };
179- partition@1c80000 {
180- label = "ImgSel Image B Catch";
181- reg = <0x1C80000 0x80000>; /* 512KB */
182- read-only;
183- lock;
184- };
185- partition@1d00000 {
186- label = "Open_2";
187- reg = <0x1D00000 0x100000>; /* 1MB */
188- };
189- partition@1e00000 {
190- label = "Recovery Image";
191- reg = <0x1E00000 0x200000>; /* 2MB */
192- read-only;
193- lock;
194- };
195- partition@2000000 {
196- label = "Recovery Image Backup";
197- reg = <0x2000000 0x200000>; /* 2MB */
198- read-only;
199- lock;
200- };
201- partition@2200000 {
202- label = "U-Boot storage variables";
203- reg = <0x2200000 0x20000>; /* 128KB */
204- };
205- partition@2220000 {
206- label = "U-Boot storage variables backup";
207- reg = <0x2220000 0x20000>; /* 128KB */
208- };
209- partition@2240000 {
210- label = "SHA256";
211- reg = <0x2240000 0x10000>; /* 256B but 64KB sector */
212- read-only;
213- lock;
214- };
215- partition@2250000 {
216- label = "User";
217- reg = <0x2250000 0x1db0000>; /* 29.5 MB */
141+
142+ partitions {
143+ compatible = "fixed-partitions";
144+ #address-cells = <1>;
145+ #size-cells = <1>;
146+
147+ partition@0 {
148+ label = "Image Selector";
149+ reg = <0x0 0x80000>; /* 512KB */
150+ read-only;
151+ lock;
152+ };
153+ partition@80000 {
154+ label = "Image Selector Golden";
155+ reg = <0x80000 0x80000>; /* 512KB */
156+ read-only;
157+ lock;
158+ };
159+ partition@100000 {
160+ label = "Persistent Register";
161+ reg = <0x100000 0x20000>; /* 128KB */
162+ };
163+ partition@120000 {
164+ label = "Persistent Register Backup";
165+ reg = <0x120000 0x20000>; /* 128KB */
166+ };
167+ partition@140000 {
168+ label = "Open_1";
169+ reg = <0x140000 0xC0000>; /* 768KB */
170+ };
171+ partition@200000 {
172+ label = "Image A (FSBL, PMU, ATF, U-Boot)";
173+ reg = <0x200000 0xD00000>; /* 13MB */
174+ };
175+ partition@f00000 {
176+ label = "ImgSel Image A Catch";
177+ reg = <0xF00000 0x80000>; /* 512KB */
178+ read-only;
179+ lock;
180+ };
181+ partition@f80000 {
182+ label = "Image B (FSBL, PMU, ATF, U-Boot)";
183+ reg = <0xF80000 0xD00000>; /* 13MB */
184+ };
185+ partition@1c80000 {
186+ label = "ImgSel Image B Catch";
187+ reg = <0x1C80000 0x80000>; /* 512KB */
188+ read-only;
189+ lock;
190+ };
191+ partition@1d00000 {
192+ label = "Open_2";
193+ reg = <0x1D00000 0x100000>; /* 1MB */
194+ };
195+ partition@1e00000 {
196+ label = "Recovery Image";
197+ reg = <0x1E00000 0x200000>; /* 2MB */
198+ read-only;
199+ lock;
200+ };
201+ partition@2000000 {
202+ label = "Recovery Image Backup";
203+ reg = <0x2000000 0x200000>; /* 2MB */
204+ read-only;
205+ lock;
206+ };
207+ partition@2200000 {
208+ label = "U-Boot storage variables";
209+ reg = <0x2200000 0x20000>; /* 128KB */
210+ };
211+ partition@2220000 {
212+ label = "U-Boot storage variables backup";
213+ reg = <0x2220000 0x20000>; /* 128KB */
214+ };
215+ partition@2240000 {
216+ label = "SHA256";
217+ reg = <0x2240000 0x10000>; /* 256B but 64KB sector */
218+ read-only;
219+ lock;
220+ };
221+ partition@2250000 {
222+ label = "User";
223+ reg = <0x2250000 0x1db0000>; /* 29.5 MB */
224+ };
218225 };
219226 };
220227 };