Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: Add Facebook BMC flash layout

This is the layout used by Facebook BMC systems. It describes the fixed
flash layout of a 32MB mtd device.

Signed-off-by: Tao Ren <taoren@fb.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Tao Ren and committed by
Joel Stanley
b54a5b19 6d2e4688

+42
+42
arch/arm/boot/dts/facebook-bmc-flash-layout.dtsi
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 2 + // Copyright (c) 2018 Facebook Inc. 3 + 4 + partitions { 5 + compatible = "fixed-partitions"; 6 + #address-cells = <1>; 7 + #size-cells = <1>; 8 + 9 + u-boot@0 { 10 + reg = <0x0 0x60000>; 11 + label = "u-boot"; 12 + }; 13 + 14 + u-boot-env@60000 { 15 + reg = <0x60000 0x20000>; 16 + label = "env"; 17 + }; 18 + 19 + fit@80000 { 20 + reg = <0x80000 0x1b80000>; 21 + label = "fit"; 22 + }; 23 + 24 + /* 25 + * "data0" partition is used by several Facebook BMC platforms 26 + * as persistent data store. 27 + */ 28 + data0@1c00000 { 29 + reg = <0x1c00000 0x400000>; 30 + label = "data0"; 31 + }; 32 + 33 + /* 34 + * Although the master partition can be created by enabling 35 + * MTD_PARTITIONED_MASTER option, below "flash0" partition is 36 + * explicitly created to avoid breaking legacy applications. 37 + */ 38 + flash0@0 { 39 + reg = <0x0 0x2000000>; 40 + label = "flash0"; 41 + }; 42 + };