Core devicetree property data types
Schema identifier ($id): "http://devicetree.org/schemas/types.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Schema for core devicetree data types. Binding schema can reference these types.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Reusable definitions (definitions) #
flag #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"boolean"Exact value (
const):true
Rule 2
Value type (
type):"null"
non-unique-string-array #
Value type (type): "array"
Array item rules (items) #
Value type (
type):"string"
Minimum number of items (minItems): 1
string-array #
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):#/definitions/non-unique-string-array
Rule 2
Items must be unique (
uniqueItems):true
string #
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):#/definitions/string-array
Rule 2
Maximum number of items (
maxItems):1
uint8 #
Value type (type): "integer"
Integer width in bits (typeSize): 8
Minimum value (minimum): 0
Maximum value (maximum): 255
uint8-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint8
uint8-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint8-array
int8 #
Value type (type): "integer"
Integer width in bits (typeSize): 8
Minimum value (minimum): -128
Maximum value (maximum): 127
int8-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int8
int8-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int8-array
uint16 #
Value type (type): "integer"
Integer width in bits (typeSize): 16
Minimum value (minimum): 0
Maximum value (maximum): 65535
uint16-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint16
uint16-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint16-array
int16 #
Value type (type): "integer"
Integer width in bits (typeSize): 16
Minimum value (minimum): -8192
Maximum value (maximum): 8191
int16-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int16
int16-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int16-array
uint32 #
Value type (type): "integer"
Integer width in bits (typeSize): 32
Minimum value (minimum): 0
Maximum value (maximum): 4294967295
uint32-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint32
uint32-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint32-array
int32 #
Value type (type): "integer"
Minimum value (minimum): -2147483648
Maximum value (maximum): 2147483647
int32-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int32
int32-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int32-array
int64 #
Value type (type): "integer"
Integer width in bits (typeSize): 64
Minimum value (minimum): -9223372036854775808
Maximum value (maximum): 9223372036854775807
int64-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int64
int64-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/int64-array
uint64 #
Value type (type): "integer"
Integer width in bits (typeSize): 64
Minimum value (minimum): 0
Maximum value (maximum): 18446744073709551615
uint64-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint64
uint64-matrix #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Shared schema rule (
$ref):#/definitions/uint64-array
phandle #
Shared schema rule ($ref): #/definitions/phandle-array
Maximum number of items (maxItems): 1
Array item rules (items) #
Maximum number of items (
maxItems):1
phandle-array #
Value type (type): "array"
Minimum number of items (minItems): 1
Array item rules (items) #
Value type (
type):"array"Minimum number of items (
minItems):1Maximum number of items (
maxItems):1024Array item rules (
items)Item 1
Exactly one of these rules must match (
oneOf)Rule 1
Value type (
type):"integer"Minimum value (
minimum):1Maximum value (
maximum):4294967295Rule 2
Value type (
type):"integer"Exact value (
const):0Array items beyond the listed positions (
additionalItems)Shared schema rule (
$ref):#/definitions/uint32
address #
Shared schema rule ($ref): #/definitions/uint32-matrix
Array item rules (items) #
Minimum number of items (
minItems):1Maximum number of items (
maxItems):5
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: BSD-2-Clause
Line 2: Copyright 2018 Linaro Ltd.
Line 187: At most 3 address cells and 2 size cells