Skip to content

Commit cc044fb

Browse files
vaishnavachathr-vignesh
authored andcommitted
arm64: dts: ti: k3-j7200-som: Describe OSPI flash partition info
Describe OSPI flash partition information in device tree so as to remove passing partition information in `mtdparts` commandline parameter. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
1 parent c1f5974 commit cc044fb

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
pinctrl-names = "default";
272272
pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
273273

274-
flash@0{
274+
flash@0 {
275275
compatible = "jedec,spi-nor";
276276
reg = <0x0>;
277277
spi-tx-bus-width = <8>;
@@ -284,5 +284,46 @@
284284
cdns,read-delay = <4>;
285285
#address-cells = <1>;
286286
#size-cells = <1>;
287+
288+
partitions {
289+
compatible = "fixed-partitions";
290+
#address-cells = <1>;
291+
#size-cells = <1>;
292+
293+
partition@0 {
294+
label = "ospi.tiboot3";
295+
reg = <0x0 0x100000>;
296+
};
297+
298+
partition@100000 {
299+
label = "ospi.tispl";
300+
reg = <0x100000 0x200000>;
301+
};
302+
303+
partition@300000 {
304+
label = "ospi.u-boot";
305+
reg = <0x300000 0x400000>;
306+
};
307+
308+
partition@700000 {
309+
label = "ospi.env";
310+
reg = <0x700000 0x40000>;
311+
};
312+
313+
partition@740000 {
314+
label = "ospi.env.backup";
315+
reg = <0x740000 0x40000>;
316+
};
317+
318+
partition@800000 {
319+
label = "ospi.rootfs";
320+
reg = <0x800000 0x37c0000>;
321+
};
322+
323+
partition@3fc0000 {
324+
label = "ospi.phypattern";
325+
reg = <0x3fc0000 0x40000>;
326+
};
327+
};
287328
};
288329
};

0 commit comments

Comments
 (0)