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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mmc: Document support for partition table in mmc-card

Document support for defining a partition table in the mmc-card node.

This is needed if the eMMC doesn't have a partition table written and
the bootloader of the device load data by using absolute offset of the
block device. This is common on embedded device that have eMMC installed
to save space and have non removable block devices.

If an OF partition table is detected, any partition table written in the
eMMC will be ignored and won't be parsed.

eMMC provide a generic disk for user data and if supported (JEDEC 4.4+)
also provide two additional disk ("boot1" and "boot2") for special usage
of boot operation where normally is stored the bootloader or boot info.
New JEDEC version also supports up to 4 GP partition for other usage
called "gp1", "gp2", "gp3", "gp4".

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241002221306.4403-7-ansuelsmth@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christian Marangi and committed by
Jens Axboe
f7a4b343 2e3a191e

+52
+52
Documentation/devicetree/bindings/mmc/mmc-card.yaml
··· 13 13 This documents describes the devicetree bindings for a mmc-host controller 14 14 child node describing a mmc-card / an eMMC. 15 15 16 + It's possible to define a fixed partition table for an eMMC for the user 17 + partition, the 2 BOOT partition (boot1/2) and the 4 GP (gp1/2/3/4) if supported 18 + by the eMMC. 19 + 16 20 properties: 17 21 compatible: 18 22 const: mmc-card ··· 29 25 description: 30 26 Use this to indicate that the mmc-card has a broken hpi 31 27 implementation, and that hpi should not be used. 28 + 29 + patternProperties: 30 + "^partitions(-boot[12]|-gp[14])?$": 31 + $ref: /schemas/mtd/partitions/partitions.yaml 32 + 33 + patternProperties: 34 + "^partition@[0-9a-f]+$": 35 + $ref: /schemas/mtd/partitions/partition.yaml 36 + 37 + properties: 38 + reg: 39 + description: Must be multiple of 512 as it's converted 40 + internally from bytes to SECTOR_SIZE (512 bytes) 41 + 42 + required: 43 + - reg 44 + 45 + unevaluatedProperties: false 32 46 33 47 required: 34 48 - compatible ··· 64 42 compatible = "mmc-card"; 65 43 reg = <0>; 66 44 broken-hpi; 45 + 46 + partitions { 47 + compatible = "fixed-partitions"; 48 + 49 + #address-cells = <1>; 50 + #size-cells = <1>; 51 + 52 + partition@0 { 53 + label = "kernel"; /* Kernel */ 54 + reg = <0x0 0x2000000>; /* 32 MB */ 55 + }; 56 + 57 + partition@2000000 { 58 + label = "rootfs"; 59 + reg = <0x2000000 0x40000000>; /* 1GB */ 60 + }; 61 + }; 62 + 63 + partitions-boot1 { 64 + compatible = "fixed-partitions"; 65 + 66 + #address-cells = <1>; 67 + #size-cells = <1>; 68 + 69 + partition@0 { 70 + label = "bl"; 71 + reg = <0x0 0x2000000>; /* 32MB */ 72 + read-only; 73 + }; 74 + }; 67 75 }; 68 76 }; 69 77