1# Copyright (c) 2022 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4description: Block storage device on flash partition 5 6compatible: "zephyr,flash-disk" 7 8include: base.yaml 9 10properties: 11 partition: 12 type: phandle 13 required: true 14 description: | 15 Backing storage flash map partition. 16 17 disk-name: 18 type: string 19 required: true 20 description: | 21 Disk name. 22 23 sector-size: 24 type: int 25 default: 512 26 description: | 27 Emulated block device sector size in bytes. 28 29 cache-size: 30 type: int 31 required: true 32 description: | 33 Size of statically allocated buffer size in bytes. The size should be 34 adequately chosen. On storage backends with uniform erase-blocks it 35 should be at least the erase-block-size, on storage backends with 36 non-uniform erase-blocks it should be at least the largest 37 erase-block-size. The cache-size property is ignored if the partition 38 is read-only. 39