2017-05-24 13:26:04 +08:00
|
|
|
---
|
|
|
|
title: <Title should describe what node you are describing>
|
|
|
|
version: 0.1
|
|
|
|
|
|
|
|
description: >
|
|
|
|
Describe in free form text w/ spanning lines what you
|
|
|
|
are describing
|
|
|
|
|
2017-10-19 22:31:44 +08:00
|
|
|
|
|
|
|
< parent | child >:
|
|
|
|
# parent/child is used to document implicit relation between nodes.
|
|
|
|
# This information is required to generate parent related bits in child
|
|
|
|
# attributes.
|
|
|
|
# In case parent has 'bus', slave inherits some information from master.
|
|
|
|
# parent and child should share same bus-type value.
|
|
|
|
bus: <bus-type>
|
|
|
|
|
2017-05-24 13:26:04 +08:00
|
|
|
# properties will be the contents of the device tree node
|
|
|
|
# property names must match the property names in the DT
|
|
|
|
|
|
|
|
properties:
|
|
|
|
|
|
|
|
# A typical property entry will look like the following
|
2017-11-23 15:48:10 +08:00
|
|
|
# <name of property as it is in device tree>
|
2017-05-24 13:26:04 +08:00
|
|
|
# category: <required | optional>
|
|
|
|
# type: <string | int | array>
|
|
|
|
# description: <description of property>
|
|
|
|
# generation: <define | structure>
|
|
|
|
|
|
|
|
# At a minimum, the compatible is required for matching nodes
|
2017-11-23 15:48:10 +08:00
|
|
|
compatible: <list of string compatible matches>
|
2017-05-24 13:26:04 +08:00
|
|
|
category: required
|
|
|
|
type: string
|
|
|
|
description: compatible of node
|
|
|
|
|
|
|
|
# reg is used to denote mmio registers
|
2017-11-23 15:48:10 +08:00
|
|
|
reg:
|
2017-05-24 13:26:04 +08:00
|
|
|
type: array
|
|
|
|
description: mmio register space
|
|
|
|
generation: define
|
|
|
|
category: required
|
|
|
|
|
|
|
|
# interrupts specifies the interrupts that the driver may utilize
|
2017-11-23 15:48:10 +08:00
|
|
|
interrupts:
|
2017-05-24 13:26:04 +08:00
|
|
|
type: array
|
|
|
|
category: required
|
|
|
|
description: required interrupts
|
|
|
|
generation: define
|
|
|
|
|
|
|
|
# If a node is a interrupt controller, gpio controller, pinmux device
|
|
|
|
# or any device which is referenced via phandle plus some number of cells
|
|
|
|
# then the cell fiels below must be present.
|
|
|
|
cell_string: <cell string prefix>
|
|
|
|
|
|
|
|
"#cells":
|
|
|
|
- cell0 # name of first cell
|
|
|
|
- cell1 # name of second cell
|
|
|
|
- cell2 # name of third cell
|
|
|
|
- and so on and so forth
|
|
|
|
...
|