# Copyright (C) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

# Common properties for Zephyr filesystem compatibles

include: base.yaml

properties:
  mount-point:
    type: string
    required: true
    description: |
      The absolute path used as the file system mount point.

  partition:
    type: phandle
    required: true
    description: |
      A reference to the file system's partition.

  automount:
    type: boolean
    description: |
      Mount file system on boot if present.

      During initialization the file system driver will attempt to mount
      this partition.

  read-only:
    type: boolean
    description: |
      Mount file system read-only if present.

      This adds the FS_MOUNT_FLAG_READ_ONLY option to be set in the
      mount descriptor generated for the file system.

  no-format:
    type: boolean
    description: |
      Do not format file system if mount fails.

      This causes the FS_MOUNT_FLAG_NO_FORMAT option to be set in the
      mount descriptor generated for the file system.

# Copyright (C) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

# Common properties for Zephyr filesystem compatibles

include: base.yaml

properties:
  mount-point:
    type: string
    required: true
    description: |
      The absolute path used as the file system mount point.

  partition:
    type: phandle
    required: true
    description: |
      A reference to the file system's partition.

  automount:
    type: boolean
    description: |
      Mount file system on boot if present.

      During initialization the file system driver will attempt to mount
      this partition.

  read-only:
    type: boolean
    description: |
      Mount file system read-only if present.

      This adds the FS_MOUNT_FLAG_READ_ONLY option to be set in the
      mount descriptor generated for the file system.

  no-format:
    type: boolean
    description: |
      Do not format file system if mount fails.

      This causes the FS_MOUNT_FLAG_NO_FORMAT option to be set in the
      mount descriptor generated for the file system.

  disk-access:
    type: boolean
    description: |
      Use disk-access for accessing storage media.

      This causes the FS_MOUNT_FLAG_USE_DISK_ACCESS option to be set in
      the mount descriptor generated for the file system.

Add "disk-access" property to fstab bindings
dts: Add "disk-access" property to fstab bindings

The commit adds "disk-access" property to fstab bindings to allow
selecting FS_MOUNT_FLAG_USE_DISK_ACCESS while defining file
systems in DTS.

Signed-off-by: Dominik Ermel <1a1d45a9cc0c98a37f8d0a0d2dbe3cacc0b2344f@nordicsemi.no>
