summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml
blob: 991f3c71cf8228ac9c86cd76f78d55a096a7909c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

description: Describes the size and offset of the RO and RW regions

compatible: "cros-ec,flash-layout"

include: base.yaml

properties:
  type:
    type: string
    required: true
    description: >-
      A property required by the binman utility, defined here only to
      prevent Zephyr's binding generator from erroring about
      additional properties.

      The property should be set to the value "section" (done by
      binman.dtsi) and should not be used anywhere in C code.

      See README.entries in binman for a description of what binman
      uses this for.
  offset:
    type: int
    required: true
    description: >-
      The offset of the flash region from the base of the flash.
  size:
    type: int
    required: true
    description: >-
      The size of the flash region, in bytes.
  read-only:
    type: boolean
    required: false
    description: >-
      Set if the section should be read-only.