Commit 3d21a460 authored by Rob Herring's avatar Rob Herring

dt-bindings: Remove cases of 'allOf' containing a '$ref'

json-schema versions draft7 and earlier have a weird behavior in that
any keywords combined with a '$ref' are ignored (silently). The correct
form was to put a '$ref' under an 'allOf'. This behavior is now changed
in the 2019-09 json-schema spec and '$ref' can be mixed with other
keywords. The json-schema library doesn't yet support this, but the
tooling now does a fixup for this and either way works.

This has been a constant source of review comments, so let's change this
treewide so everyone copies the simpler syntax.

Scripted with ruamel.yaml with some manual fixups. Some minor whitespace
changes from the script.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-By: default avatarVinod Koul <vkoul@kernel.org>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de> # for I2C
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio
Reviewed-by: Stephen Boyd <sboyd@kernel.org> # clock
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent ea5b8b5e
...@@ -131,25 +131,22 @@ properties: ...@@ -131,25 +131,22 @@ properties:
property, describing the physical location of the children nodes. property, describing the physical location of the children nodes.
0 means motherboard site, while 1 and 2 are daughterboard sites, and 0 means motherboard site, while 1 and 2 are daughterboard sites, and
0xf means "sisterboard" which is the site containing the main CPU tile. 0xf means "sisterboard" which is the site containing the main CPU tile.
allOf: $ref: '/schemas/types.yaml#/definitions/uint32'
- $ref: '/schemas/types.yaml#/definitions/uint32' minimum: 0
- minimum: 0
maximum: 15 maximum: 15
arm,vexpress,position: arm,vexpress,position:
description: When daughterboards are stacked on one site, their position description: When daughterboards are stacked on one site, their position
in the stack be be described this attribute. in the stack be be described this attribute.
allOf: $ref: '/schemas/types.yaml#/definitions/uint32'
- $ref: '/schemas/types.yaml#/definitions/uint32' minimum: 0
- minimum: 0
maximum: 3 maximum: 3
arm,vexpress,dcc: arm,vexpress,dcc:
description: When describing tiles consisting of more than one DCC, its description: When describing tiles consisting of more than one DCC, its
number can be specified with this attribute. number can be specified with this attribute.
allOf: $ref: '/schemas/types.yaml#/definitions/uint32'
- $ref: '/schemas/types.yaml#/definitions/uint32' minimum: 0
- minimum: 0
maximum: 3 maximum: 3
patternProperties: patternProperties:
...@@ -162,8 +159,7 @@ patternProperties: ...@@ -162,8 +159,7 @@ patternProperties:
"simple-bus". If the compatible is placed in the "motherboard" node, "simple-bus". If the compatible is placed in the "motherboard" node,
it is stricter and always has two compatibles. it is stricter and always has two compatibles.
type: object type: object
allOf: $ref: '/schemas/simple-bus.yaml'
- $ref: '/schemas/simple-bus.yaml'
properties: properties:
compatible: compatible:
...@@ -195,11 +191,11 @@ patternProperties: ...@@ -195,11 +191,11 @@ patternProperties:
- const: simple-bus - const: simple-bus
arm,v2m-memory-map: arm,v2m-memory-map:
description: This describes the memory map type. description: This describes the memory map type.
allOf: $ref: '/schemas/types.yaml#/definitions/string'
- $ref: '/schemas/types.yaml#/definitions/string' enum:
- enum:
- rs1 - rs1
- rs2 - rs2
required: required:
- compatible - compatible
required: required:
......
...@@ -140,16 +140,14 @@ patternProperties: ...@@ -140,16 +140,14 @@ patternProperties:
maxItems: 1 maxItems: 1
arm,trig-in-sigs: arm,trig-in-sigs:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
maxItems: 32 maxItems: 32
description: description:
List of CTI trigger in signal numbers in use by a trig-conns node. List of CTI trigger in signal numbers in use by a trig-conns node.
arm,trig-in-types: arm,trig-in-types:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
maxItems: 32 maxItems: 32
description: description:
...@@ -159,16 +157,14 @@ patternProperties: ...@@ -159,16 +157,14 @@ patternProperties:
completely, then the types will default to GEN_IO. completely, then the types will default to GEN_IO.
arm,trig-out-sigs: arm,trig-out-sigs:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
maxItems: 32 maxItems: 32
description: description:
List of CTI trigger out signal numbers in use by a trig-conns node. List of CTI trigger out signal numbers in use by a trig-conns node.
arm,trig-out-types: arm,trig-out-types:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
maxItems: 32 maxItems: 32
description: description:
...@@ -178,8 +174,7 @@ patternProperties: ...@@ -178,8 +174,7 @@ patternProperties:
or omitted completely, then the types will default to GEN_IO. or omitted completely, then the types will default to GEN_IO.
arm,trig-filters: arm,trig-filters:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
maxItems: 32 maxItems: 32
description: description:
...@@ -187,8 +182,7 @@ patternProperties: ...@@ -187,8 +182,7 @@ patternProperties:
active, unless filtering is disabled on the driver. active, unless filtering is disabled on the driver.
arm,trig-conn-name: arm,trig-conn-name:
allOf: $ref: /schemas/types.yaml#/definitions/string
- $ref: /schemas/types.yaml#/definitions/string
description: description:
Defines a connection name that will be displayed, if the cpu or Defines a connection name that will be displayed, if the cpu or
arm,cs-dev-assoc properties are not being used in this connection. arm,cs-dev-assoc properties are not being used in this connection.
......
...@@ -171,9 +171,8 @@ properties: ...@@ -171,9 +171,8 @@ properties:
- qcom,scorpion - qcom,scorpion
enable-method: enable-method:
allOf: $ref: '/schemas/types.yaml#/definitions/string'
- $ref: '/schemas/types.yaml#/definitions/string' oneOf:
- oneOf:
# On ARM v8 64-bit this property is required # On ARM v8 64-bit this property is required
- enum: - enum:
- psci - psci
......
...@@ -70,9 +70,8 @@ properties: ...@@ -70,9 +70,8 @@ properties:
description: Cycles of latency for Data RAM accesses. Specifies 3 cells of description: Cycles of latency for Data RAM accesses. Specifies 3 cells of
read, write and setup latencies. Minimum valid values are 1. Controllers read, write and setup latencies. Minimum valid values are 1. Controllers
without setup latency control should use a value of 0. without setup latency control should use a value of 0.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 2
- minItems: 2
maxItems: 3 maxItems: 3
items: items:
minimum: 0 minimum: 0
...@@ -83,9 +82,8 @@ properties: ...@@ -83,9 +82,8 @@ properties:
read, write and setup latencies. Controllers without setup latency control read, write and setup latencies. Controllers without setup latency control
should use 0. Controllers without separate read and write Tag RAM latency should use 0. Controllers without separate read and write Tag RAM latency
values should only use the first cell. values should only use the first cell.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1
- minItems: 1
maxItems: 3 maxItems: 3
items: items:
minimum: 0 minimum: 0
...@@ -93,18 +91,16 @@ properties: ...@@ -93,18 +91,16 @@ properties:
arm,dirty-latency: arm,dirty-latency:
description: Cycles of latency for Dirty RAMs. This is a single cell. description: Cycles of latency for Dirty RAMs. This is a single cell.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 1
- minimum: 1
maximum: 8 maximum: 8
arm,filter-ranges: arm,filter-ranges:
description: <start length> Starting address and length of window to description: <start length> Starting address and length of window to
filter. Addresses in the filter window are directed to the M1 port. Other filter. Addresses in the filter window are directed to the M1 port. Other
addresses will go to the M0 port. addresses will go to the M0 port.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array items:
- items:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
...@@ -131,36 +127,31 @@ properties: ...@@ -131,36 +127,31 @@ properties:
arm,double-linefill: arm,double-linefill:
description: Override double linefill enable setting. Enable if description: Override double linefill enable setting. Enable if
non-zero, disable if zero. non-zero, disable if zero.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,double-linefill-incr: arm,double-linefill-incr:
description: Override double linefill on INCR read. Enable description: Override double linefill on INCR read. Enable
if non-zero, disable if zero. if non-zero, disable if zero.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,double-linefill-wrap: arm,double-linefill-wrap:
description: Override double linefill on WRAP read. Enable description: Override double linefill on WRAP read. Enable
if non-zero, disable if zero. if non-zero, disable if zero.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,prefetch-drop: arm,prefetch-drop:
description: Override prefetch drop enable setting. Enable if non-zero, description: Override prefetch drop enable setting. Enable if non-zero,
disable if zero. disable if zero.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,prefetch-offset: arm,prefetch-offset:
description: Override prefetch offset value. description: Override prefetch offset value.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2, 3, 4, 5, 6, 7, 15, 23, 31]
- enum: [ 0, 1, 2, 3, 4, 5, 6, 7, 15, 23, 31 ]
arm,shared-override: arm,shared-override:
description: The default behavior of the L220 or PL310 cache description: The default behavior of the L220 or PL310 cache
...@@ -193,35 +184,31 @@ properties: ...@@ -193,35 +184,31 @@ properties:
description: | description: |
Data prefetch. Value: <0> (forcibly disable), <1> Data prefetch. Value: <0> (forcibly disable), <1>
(forcibly enable), property absent (retain settings set by firmware) (forcibly enable), property absent (retain settings set by firmware)
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
prefetch-instr: prefetch-instr:
description: | description: |
Instruction prefetch. Value: <0> (forcibly disable), Instruction prefetch. Value: <0> (forcibly disable),
<1> (forcibly enable), property absent (retain settings set by <1> (forcibly enable), property absent (retain settings set by
firmware) firmware)
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,dynamic-clock-gating: arm,dynamic-clock-gating:
description: | description: |
L2 dynamic clock gating. Value: <0> (forcibly L2 dynamic clock gating. Value: <0> (forcibly
disable), <1> (forcibly enable), property absent (OS specific behavior, disable), <1> (forcibly enable), property absent (OS specific behavior,
preferably retain firmware settings) preferably retain firmware settings)
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,standby-mode: arm,standby-mode:
description: L2 standby mode enable. Value <0> (forcibly disable), description: L2 standby mode enable. Value <0> (forcibly disable),
<1> (forcibly enable), property absent (OS specific behavior, <1> (forcibly enable), property absent (OS specific behavior,
preferably retain firmware settings) preferably retain firmware settings)
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
arm,early-bresp-disable: arm,early-bresp-disable:
description: Disable the CA9 optimization Early BRESP (PL310) description: Disable the CA9 optimization Early BRESP (PL310)
......
...@@ -69,10 +69,8 @@ properties: ...@@ -69,10 +69,8 @@ properties:
method: method:
description: The method of calling the PSCI firmware. description: The method of calling the PSCI firmware.
allOf: $ref: /schemas/types.yaml#/definitions/string-array
- $ref: /schemas/types.yaml#/definitions/string-array enum:
- enum:
# SMC #0, with the register assignments specified in this binding.
- smc - smc
# HVC #0, with the register assignments specified in this binding. # HVC #0, with the register assignments specified in this binding.
- hvc - hvc
...@@ -107,8 +105,8 @@ properties: ...@@ -107,8 +105,8 @@ properties:
patternProperties: patternProperties:
"^power-domain-": "^power-domain-":
allOf: $ref: "../power/power-domain.yaml#"
- $ref: "../power/power-domain.yaml#"
type: object type: object
description: | description: |
ARM systems can have multiple cores, sometimes in an hierarchical ARM systems can have multiple cores, sometimes in an hierarchical
......
...@@ -22,9 +22,8 @@ properties: ...@@ -22,9 +22,8 @@ properties:
Adaptive Supply Voltage bin selection. This can be used Adaptive Supply Voltage bin selection. This can be used
to determine the ASV bin of an SoC if respective information to determine the ASV bin of an SoC if respective information
is missing in the CHIPID registers or in the OTP memory. is missing in the CHIPID registers or in the OTP memory.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2, 3]
- enum: [ 0, 1, 2, 3 ]
required: required:
- compatible - compatible
......
...@@ -31,12 +31,11 @@ properties: ...@@ -31,12 +31,11 @@ properties:
maxItems: 1 maxItems: 1
allwinner,sram: allwinner,sram:
allOf:
- $ref: /schemas/types.yaml#definitions/phandle-array
- maxItems: 1
description: description:
The SRAM that needs to be claimed to access the display engine The SRAM that needs to be claimed to access the display engine
bus. bus.
$ref: /schemas/types.yaml#definitions/phandle-array
maxItems: 1
ranges: true ranges: true
......
...@@ -24,9 +24,8 @@ properties: ...@@ -24,9 +24,8 @@ properties:
clock-div: clock-div:
description: Fixed divider description: Fixed divider
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 1
- minimum: 1
clock-mult: clock-mult:
description: Fixed multiplier description: Fixed multiplier
......
...@@ -27,8 +27,8 @@ properties: ...@@ -27,8 +27,8 @@ properties:
description: Size of the connector, should be specified in case of description: Size of the connector, should be specified in case of
non-fullsize 'usb-a-connector' or 'usb-b-connector' compatible non-fullsize 'usb-a-connector' or 'usb-b-connector' compatible
connectors. connectors.
allOf: $ref: /schemas/types.yaml#definitions/string
- $ref: /schemas/types.yaml#definitions/string
enum: enum:
- mini - mini
- micro - micro
...@@ -57,8 +57,8 @@ properties: ...@@ -57,8 +57,8 @@ properties:
power-role: power-role:
description: Determines the power role that the Type C connector will description: Determines the power role that the Type C connector will
support. "dual" refers to Dual Role Port (DRP). support. "dual" refers to Dual Role Port (DRP).
allOf: $ref: /schemas/types.yaml#definitions/string
- $ref: /schemas/types.yaml#definitions/string
enum: enum:
- source - source
- sink - sink
...@@ -66,8 +66,8 @@ properties: ...@@ -66,8 +66,8 @@ properties:
try-power-role: try-power-role:
description: Preferred power role. description: Preferred power role.
allOf: $ref: /schemas/types.yaml#definitions/string
- $ref: /schemas/types.yaml#definitions/string
enum: enum:
- source - source
- sink - sink
...@@ -76,8 +76,8 @@ properties: ...@@ -76,8 +76,8 @@ properties:
data-role: data-role:
description: Data role if Type C connector supports USB data. "dual" refers description: Data role if Type C connector supports USB data. "dual" refers
Dual Role Device (DRD). Dual Role Device (DRD).
allOf: $ref: /schemas/types.yaml#definitions/string
- $ref: /schemas/types.yaml#definitions/string
enum: enum:
- host - host
- device - device
...@@ -95,8 +95,7 @@ properties: ...@@ -95,8 +95,7 @@ properties:
defined in dt-bindings/usb/pd.h. defined in dt-bindings/usb/pd.h.
minItems: 1 minItems: 1
maxItems: 7 maxItems: 7
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
sink-pdos: sink-pdos:
description: An array of u32 with each entry providing supported power sink description: An array of u32 with each entry providing supported power sink
...@@ -108,8 +107,7 @@ properties: ...@@ -108,8 +107,7 @@ properties:
in dt-bindings/usb/pd.h. in dt-bindings/usb/pd.h.
minItems: 1 minItems: 1
maxItems: 7 maxItems: 7
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
op-sink-microwatt: op-sink-microwatt:
description: Sink required operating power in microwatt, if source can't description: Sink required operating power in microwatt, if source can't
......
...@@ -36,11 +36,10 @@ properties: ...@@ -36,11 +36,10 @@ properties:
dma-maxburst: dma-maxburst:
description: Set number of maximum dma burst supported description: Set number of maximum dma burst supported
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0 maximum: 2
- maximum: 2 default: 0
- default: 0
required: required:
- compatible - compatible
......
...@@ -66,9 +66,8 @@ properties: ...@@ -66,9 +66,8 @@ properties:
- allwinner,sun50i-h6-display-engine - allwinner,sun50i-h6-display-engine
allwinner,pipelines: allwinner,pipelines:
allOf: $ref: /schemas/types.yaml#/definitions/phandle-array
- $ref: /schemas/types.yaml#/definitions/phandle-array minItems: 1
- minItems: 1
maxItems: 2 maxItems: 2
description: | description: |
Available display engine frontends (DE 1.0) or mixers (DE Available display engine frontends (DE 1.0) or mixers (DE
......
...@@ -71,11 +71,10 @@ properties: ...@@ -71,11 +71,10 @@ properties:
maxItems: 4 maxItems: 4
clock-output-names: clock-output-names:
allOf:
- $ref: /schemas/types.yaml#/definitions/string-array
- maxItems: 1
description: description:
Name of the LCD pixel clock created. Name of the LCD pixel clock created.
$ref: /schemas/types.yaml#/definitions/string-array
maxItems: 1
dmas: dmas:
maxItems: 1 maxItems: 1
......
...@@ -48,9 +48,8 @@ properties: ...@@ -48,9 +48,8 @@ properties:
rotation: rotation:
description: description:
Display rotation in degrees counter clockwise (0,90,180,270) Display rotation in degrees counter clockwise (0,90,180,270)
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 90, 180, 270]
- enum: [ 0, 90, 180, 270 ]
# Display Timings # Display Timings
panel-timing: panel-timing:
...@@ -58,16 +57,14 @@ properties: ...@@ -58,16 +57,14 @@ properties:
Most display panels are restricted to a single resolution and Most display panels are restricted to a single resolution and
require specific display timings. The panel-timing subnode expresses those require specific display timings. The panel-timing subnode expresses those
timings. timings.
allOf: $ref: panel-timing.yaml#
- $ref: panel-timing.yaml#
display-timings: display-timings:
description: description:
Some display panels supports several resolutions with different timing. Some display panels supports several resolutions with different timing.
The display-timings bindings supports specifying several timings and The display-timings bindings supports specifying several timings and
optional specify which is the native mode. optional specify which is the native mode.
allOf: $ref: display-timings.yaml#
- $ref: display-timings.yaml#
# Connectivity # Connectivity
port: port:
......
...@@ -72,14 +72,12 @@ properties: ...@@ -72,14 +72,12 @@ properties:
hfront-porch: hfront-porch:
description: Horizontal front porch panel timing description: Horizontal front porch panel timing
oneOf: oneOf:
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- maxItems: 1 maxItems: 1
items: items:
description: typical number of pixels description: typical number of pixels
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array - $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of pixels description: min, typ, max number of pixels
...@@ -87,14 +85,12 @@ properties: ...@@ -87,14 +85,12 @@ properties:
hback-porch: hback-porch:
description: Horizontal back porch timing description: Horizontal back porch timing
oneOf: oneOf:
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- maxItems: 1 maxItems: 1
items: items:
description: typical number of pixels description: typical number of pixels
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array - $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of pixels description: min, typ, max number of pixels
...@@ -102,14 +98,12 @@ properties: ...@@ -102,14 +98,12 @@ properties:
hsync-len: hsync-len:
description: Horizontal sync length panel timing description: Horizontal sync length panel timing
oneOf: oneOf:
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- maxItems: 1 maxItems: 1
items: items:
description: typical number of pixels description: typical number of pixels
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array - $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of pixels description: min, typ, max number of pixels
...@@ -117,14 +111,12 @@ properties: ...@@ -117,14 +111,12 @@ properties:
vfront-porch: vfront-porch:
description: Vertical front porch panel timing description: Vertical front porch panel timing
oneOf: oneOf:
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- maxItems: 1 maxItems: 1
items: items:
description: typical number of lines description: typical number of lines
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array - $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of lines description: min, typ, max number of lines
...@@ -132,14 +124,12 @@ properties: ...@@ -132,14 +124,12 @@ properties:
vback-porch: vback-porch:
description: Vertical back porch panel timing description: Vertical back porch panel timing
oneOf: oneOf:
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- maxItems: 1 maxItems: 1
items: items:
description: typical number of lines description: typical number of lines
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array - $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of lines description: min, typ, max number of lines
...@@ -147,14 +137,12 @@ properties: ...@@ -147,14 +137,12 @@ properties:
vsync-len: vsync-len:
description: Vertical sync length panel timing description: Vertical sync length panel timing
oneOf: oneOf:
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- maxItems: 1 maxItems: 1
items: items:
description: typical number of lines description: typical number of lines
- allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array - $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
items: items:
description: min, typ, max number of lines description: min, typ, max number of lines
......
...@@ -88,9 +88,8 @@ properties: ...@@ -88,9 +88,8 @@ properties:
- "#size-cells" - "#size-cells"
ti,am65x-oldi-io-ctrl: ti,am65x-oldi-io-ctrl:
allOf: $ref: "/schemas/types.yaml#/definitions/phandle-array"
- $ref: "/schemas/types.yaml#/definitions/phandle-array" maxItems: 1
- maxItems: 1
description: description:
phandle to syscon device node mapping OLDI IO_CTRL registers. phandle to syscon device node mapping OLDI IO_CTRL registers.
The mapped range should point to OLDI_DAT0_IO_CTRL, map it and The mapped range should point to OLDI_DAT0_IO_CTRL, map it and
......
...@@ -31,8 +31,7 @@ properties: ...@@ -31,8 +31,7 @@ properties:
kernel. i.e. first channel corresponds to LSB. kernel. i.e. first channel corresponds to LSB.
The first item in the array is for channels 0-31, the second is for The first item in the array is for channels 0-31, the second is for
channels 32-63, etc. channels 32-63, etc.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
items: items:
minItems: 1 minItems: 1
# Should be enough # Should be enough
......
...@@ -78,25 +78,21 @@ properties: ...@@ -78,25 +78,21 @@ properties:
ti,sci: ti,sci:
description: phandle to TI-SCI compatible System controller node description: phandle to TI-SCI compatible System controller node
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
ti,sci-dev-id: ti,sci-dev-id:
description: TI-SCI device id of UDMAP description: TI-SCI device id of UDMAP
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
ti,ringacc: ti,ringacc:
description: phandle to the ring accelerator node description: phandle to the ring accelerator node
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
ti,sci-rm-range-tchan: ti,sci-rm-range-tchan:
description: | description: |
Array of UDMA tchan resource subtypes for resource allocation for this Array of UDMA tchan resource subtypes for resource allocation for this
host host
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
# Should be enough # Should be enough
maxItems: 255 maxItems: 255
...@@ -105,8 +101,7 @@ properties: ...@@ -105,8 +101,7 @@ properties:
description: | description: |
Array of UDMA rchan resource subtypes for resource allocation for this Array of UDMA rchan resource subtypes for resource allocation for this
host host
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
# Should be enough # Should be enough
maxItems: 255 maxItems: 255
...@@ -115,8 +110,7 @@ properties: ...@@ -115,8 +110,7 @@ properties:
description: | description: |
Array of UDMA rflow resource subtypes for resource allocation for this Array of UDMA rflow resource subtypes for resource allocation for this
host host
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1 minItems: 1
# Should be enough # Should be enough
maxItems: 255 maxItems: 255
...@@ -142,8 +136,7 @@ then: ...@@ -142,8 +136,7 @@ then:
properties: properties:
ti,udma-atype: ti,udma-atype:
description: ATYPE value which should be used by non slave channels description: ATYPE value which should be used by non slave channels
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
required: required:
- ti,udma-atype - ti,udma-atype
......
...@@ -118,14 +118,13 @@ properties: ...@@ -118,14 +118,13 @@ properties:
maxItems: 1 maxItems: 1
pagesize: pagesize:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
The length of the pagesize for writing. Please consult the The length of the pagesize for writing. Please consult the
manual of your device, that value varies a lot. A wrong value manual of your device, that value varies a lot. A wrong value
may result in data loss! If not specified, a safety value of may result in data loss! If not specified, a safety value of
'1' is used which will be very slow. '1' is used which will be very slow.
enum: [ 1, 8, 16, 32, 64, 128, 258 ] $ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 8, 16, 32, 64, 128, 258]
default: 1 default: 1
read-only: read-only:
...@@ -148,18 +147,16 @@ properties: ...@@ -148,18 +147,16 @@ properties:
wp-gpios: true wp-gpios: true
address-width: address-width:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
Number of address bits. Number of address bits.
$ref: /schemas/types.yaml#/definitions/uint32
default: 8 default: 8
enum: [ 8, 16 ] enum: [ 8, 16 ]
num-addresses: num-addresses:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
Total number of i2c slave addresses this device takes. Total number of i2c slave addresses this device takes.
$ref: /schemas/types.yaml#/definitions/uint32
default: 1 default: 1
minimum: 1 minimum: 1
maximum: 8 maximum: 8
......
...@@ -138,12 +138,8 @@ properties: ...@@ -138,12 +138,8 @@ properties:
# 'description'. # 'description'.
vendor,int-property: vendor,int-property:
description: Vendor specific properties must have a description description: Vendor specific properties must have a description
# 'allOf' is the json-schema way of subclassing a schema. Here the base $ref: /schemas/types.yaml#/definitions/uint32
# type schema is referenced and then additional constraints on the values enum: [2, 4, 6, 8, 10]
# are added.
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [2, 4, 6, 8, 10]
vendor,bool-property: vendor,bool-property:
description: Vendor specific properties must have a description. Boolean description: Vendor specific properties must have a description. Boolean
...@@ -154,11 +150,10 @@ properties: ...@@ -154,11 +150,10 @@ properties:
vendor,string-array-property: vendor,string-array-property:
description: Vendor specific properties should reference a type in the description: Vendor specific properties should reference a type in the
core schema. core schema.
allOf: $ref: /schemas/types.yaml#/definitions/string-array
- $ref: /schemas/types.yaml#/definitions/string-array items:
- items: - enum: [foo, bar]
- enum: [ foo, bar ] - enum: [baz, boo]
- enum: [ baz, boo ]
vendor,property-in-standard-units-microvolt: vendor,property-in-standard-units-microvolt:
description: Vendor specific properties having a standard unit suffix description: Vendor specific properties having a standard unit suffix
......
...@@ -22,8 +22,7 @@ properties: ...@@ -22,8 +22,7 @@ properties:
const: google,extcon-usbc-cros-ec const: google,extcon-usbc-cros-ec
google,usb-port-id: google,usb-port-id:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
description: the port id description: the port id
minimum: 0 minimum: 0
maximum: 255 maximum: 255
......
...@@ -34,8 +34,7 @@ properties: ...@@ -34,8 +34,7 @@ properties:
description: description:
Value specifying the number of pulses per revolution of the controlled Value specifying the number of pulses per revolution of the controlled
FAN. FAN.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 2, 4] enum: [1, 2, 4]
required: required:
......
...@@ -38,9 +38,8 @@ properties: ...@@ -38,9 +38,8 @@ properties:
the accumulated values, this entry can also have two items which sets the accumulated values, this entry can also have two items which sets
energy1/charge1 and energy2/charger2 respectively. Check table 12 of the energy1/charge1 and energy2/charger2 respectively. Check table 12 of the
datasheet for more information on the supported options. datasheet for more information on the supported options.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 2
- minItems: 2
maxItems: 2 maxItems: 2
items: items:
enum: [0, 1, 2, 3] enum: [0, 1, 2, 3]
...@@ -50,8 +49,7 @@ properties: ...@@ -50,8 +49,7 @@ properties:
description: description:
This property controls the Accumulation Dead band which allows to set the This property controls the Accumulation Dead band which allows to set the
level of current below which no accumulation takes place. level of current below which no accumulation takes place.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
maximum: 255 maximum: 255
default: 0 default: 0
...@@ -61,8 +59,7 @@ properties: ...@@ -61,8 +59,7 @@ properties:
active high, setting it to zero makets it active low. When this property active high, setting it to zero makets it active low. When this property
is present, the GPIO is automatically configured as output and set to is present, the GPIO is automatically configured as output and set to
control a fan as a function of measured temperature. control a fan as a function of measured temperature.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
enum: [0, 1] enum: [0, 1]
default: 0 default: 0
...@@ -74,9 +71,8 @@ properties: ...@@ -74,9 +71,8 @@ properties:
registers. Check table 13 of the datasheet for more information on the registers. Check table 13 of the datasheet for more information on the
supported options. This property cannot be used together with supported options. This property cannot be used together with
adi,gpio-out-pol. adi,gpio-out-pol.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 2
- minItems: 2
maxItems: 2 maxItems: 2
items: items:
enum: [0, 1, 2] enum: [0, 1, 2]
......
...@@ -46,18 +46,16 @@ patternProperties: ...@@ -46,18 +46,16 @@ patternProperties:
set to 1 the attenuator is bypassed if set to 0 the attenuator is set to 1 the attenuator is bypassed if set to 0 the attenuator is
not bypassed. If the property is absent then the attenuator not bypassed. If the property is absent then the attenuator
retains it's configuration from the bios/bootloader. retains it's configuration from the bios/bootloader.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [0, 1]
"^adi,pwm-active-state$": "^adi,pwm-active-state$":
description: | description: |
Integer array, represents the active state of the pwm outputs If set to 0 Integer array, represents the active state of the pwm outputs If set to 0
the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
uses a logic high output for 100% duty cycle. uses a logic high output for 100% duty cycle.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 3
- minItems: 3
maxItems: 3 maxItems: 3
items: items:
enum: [0, 1] enum: [0, 1]
......
...@@ -45,16 +45,14 @@ properties: ...@@ -45,16 +45,14 @@ properties:
The gain value for the PGA function. This is 8, 4, 2 or 1. The gain value for the PGA function. This is 8, 4, 2 or 1.
The PGA gain affect the shunt voltage range. The PGA gain affect the shunt voltage range.
The range will be equal to: pga-gain * 40mV The range will be equal to: pga-gain * 40mV
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 2, 4, 8] enum: [1, 2, 4, 8]
default: 8 default: 8
ti,bus-range-microvolt: ti,bus-range-microvolt:
description: | description: |
This is the operating range of the bus voltage in microvolt This is the operating range of the bus voltage in microvolt
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
enum: [16000000, 32000000] enum: [16000000, 32000000]
default: 32000000 default: 32000000
...@@ -63,9 +61,8 @@ properties: ...@@ -63,9 +61,8 @@ properties:
Array of three(TMP513) or two(TMP512) n-Factor value for each remote Array of three(TMP513) or two(TMP512) n-Factor value for each remote
temperature channel. temperature channel.
See datasheet Table 11 for n-Factor range list and value interpretation. See datasheet Table 11 for n-Factor range list and value interpretation.
allOf: $ref: /schemas/types.yaml#definitions/uint32-array
- $ref: /schemas/types.yaml#definitions/uint32-array minItems: 2
- minItems: 2
maxItems: 3 maxItems: 3
items: items:
default: 0x00 default: 0x00
......
...@@ -31,9 +31,8 @@ allOf: ...@@ -31,9 +31,8 @@ allOf:
Fast Mode Plus speed is selected by slave. Fast Mode Plus speed is selected by slave.
Format is phandle to syscfg / register offset within Format is phandle to syscfg / register offset within
syscfg / register bitmask for FMP bit. syscfg / register bitmask for FMP bit.
allOf: $ref: "/schemas/types.yaml#/definitions/phandle-array"
- $ref: "/schemas/types.yaml#/definitions/phandle-array" items:
- items:
minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
......
...@@ -83,9 +83,8 @@ patternProperties: ...@@ -83,9 +83,8 @@ patternProperties:
1: REFIN2(+)/REFIN2(−). 1: REFIN2(+)/REFIN2(−).
3: AVDD 3: AVDD
If this field is left empty, internal reference is selected. If this field is left empty, internal reference is selected.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 3]
- enum: [0, 1, 3]
diff-channels: diff-channels:
description: see Documentation/devicetree/bindings/iio/adc/adc.txt description: see Documentation/devicetree/bindings/iio/adc/adc.txt
......
...@@ -18,8 +18,7 @@ properties: ...@@ -18,8 +18,7 @@ properties:
vref-supply: vref-supply:
description: phandle to an external regulator providing the reference voltage description: phandle to an external regulator providing the reference voltage
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
reg: reg:
description: spi chipselect number according to the usual spi bindings description: spi chipselect number according to the usual spi bindings
......
...@@ -38,10 +38,9 @@ properties: ...@@ -38,10 +38,9 @@ properties:
microchip,device-addr: microchip,device-addr:
description: Device address when multiple MCP3911 chips are present on the same SPI bus. description: Device address when multiple MCP3911 chips are present on the same SPI bus.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2, 3]
- enum: [0, 1, 2, 3] default: 0
- default: 0
vref-supply: vref-supply:
description: | description: |
......
...@@ -76,8 +76,7 @@ properties: ...@@ -76,8 +76,7 @@ properties:
description: description:
Phandle to system configuration controller. It can be used to control the Phandle to system configuration controller. It can be used to control the
analog circuitry on stm32mp1. analog circuitry on stm32mp1.
allOf: $ref: "/schemas/types.yaml#/definitions/phandle-array"
- $ref: "/schemas/types.yaml#/definitions/phandle-array"
interrupt-controller: true interrupt-controller: true
...@@ -247,8 +246,7 @@ patternProperties: ...@@ -247,8 +246,7 @@ patternProperties:
Resolution (bits) to use for conversions: Resolution (bits) to use for conversions:
- can be 6, 8, 10 or 12 on stm32f4 - can be 6, 8, 10 or 12 on stm32f4
- can be 8, 10, 12, 14 or 16 on stm32h7 and stm32mp1 - can be 8, 10, 12, 14 or 16 on stm32h7 and stm32mp1
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
st,adc-channels: st,adc-channels:
description: | description: |
...@@ -256,8 +254,7 @@ patternProperties: ...@@ -256,8 +254,7 @@ patternProperties:
- 16 channels, numbered from 0 to 15 (for in0..in15) on stm32f4 - 16 channels, numbered from 0 to 15 (for in0..in15) on stm32f4
- 20 channels, numbered from 0 to 19 (for in0..in19) on stm32h7 and - 20 channels, numbered from 0 to 19 (for in0..in19) on stm32h7 and
stm32mp1. stm32mp1.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
st,adc-diff-channels: st,adc-diff-channels:
description: | description: |
...@@ -270,9 +267,8 @@ patternProperties: ...@@ -270,9 +267,8 @@ patternProperties:
required. Both properties can be used together. Some channels can be required. Both properties can be used together. Some channels can be
used as single-ended and some other ones as differential (mixed). But used as single-ended and some other ones as differential (mixed). But
channels can't be configured both as single-ended and differential. channels can't be configured both as single-ended and differential.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
items: items:
- description: | - description: |
"vinp" indicates positive input number "vinp" indicates positive input number
...@@ -291,8 +287,7 @@ patternProperties: ...@@ -291,8 +287,7 @@ patternProperties:
array that matches "st,adc-channels" and/or "st,adc-diff-channels" array that matches "st,adc-channels" and/or "st,adc-diff-channels"
list, to set sample time resp. for all channels, or independently for list, to set sample time resp. for all channels, or independently for
each channel. each channel.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
allOf: allOf:
- if: - if:
......
...@@ -95,16 +95,14 @@ patternProperties: ...@@ -95,16 +95,14 @@ patternProperties:
On stm32h7 and stm32mp1: On stm32h7 and stm32mp1:
- For st,stm32-dfsdm-adc: up to 8 channels numbered from 0 to 7. - For st,stm32-dfsdm-adc: up to 8 channels numbered from 0 to 7.
- For st,stm32-dfsdm-dmic: 1 channel numbered from 0 to 7. - For st,stm32-dfsdm-dmic: 1 channel numbered from 0 to 7.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array items:
- items:
minimum: 0 minimum: 0
maximum: 7 maximum: 7
st,adc-channel-names: st,adc-channel-names:
description: List of single-ended channel names. description: List of single-ended channel names.
allOf: $ref: /schemas/types.yaml#/definitions/string-array
- $ref: /schemas/types.yaml#/definitions/string-array
st,filter-order: st,filter-order:
description: | description: |
...@@ -112,9 +110,8 @@ patternProperties: ...@@ -112,9 +110,8 @@ patternProperties:
- 0: FastSinC - 0: FastSinC
- [1-5]: order 1 to 5. - [1-5]: order 1 to 5.
For audio purpose it is recommended to use order 3 to 5. For audio purpose it is recommended to use order 3 to 5.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 items:
- items:
minimum: 0 minimum: 0
maximum: 5 maximum: 5
...@@ -130,8 +127,7 @@ patternProperties: ...@@ -130,8 +127,7 @@ patternProperties:
- "MANCH_F": manchester codec, rising edge = logic 1, falling edge = logic 0 - "MANCH_F": manchester codec, rising edge = logic 1, falling edge = logic 0
items: items:
enum: [ SPI_R, SPI_F, MANCH_R, MANCH_F ] enum: [ SPI_R, SPI_F, MANCH_R, MANCH_F ]
allOf: $ref: /schemas/types.yaml#/definitions/non-unique-string-array
- $ref: /schemas/types.yaml#/definitions/non-unique-string-array
st,adc-channel-clk-src: st,adc-channel-clk-src:
description: | description: |
...@@ -142,8 +138,7 @@ patternProperties: ...@@ -142,8 +138,7 @@ patternProperties:
- "CLKOUT_R": internal SPI clock divided by 2 (rising edge). - "CLKOUT_R": internal SPI clock divided by 2 (rising edge).
items: items:
enum: [ CLKIN, CLKOUT, CLKOUT_F, CLKOUT_R ] enum: [ CLKIN, CLKOUT, CLKOUT_F, CLKOUT_R ]
allOf: $ref: /schemas/types.yaml#/definitions/non-unique-string-array
- $ref: /schemas/types.yaml#/definitions/non-unique-string-array
st,adc-alt-channel: st,adc-alt-channel:
description: description:
......
...@@ -33,9 +33,8 @@ properties: ...@@ -33,9 +33,8 @@ properties:
amstaos,proximity-diodes: amstaos,proximity-diodes:
description: Proximity diodes to enable description: Proximity diodes to enable
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1
- minItems: 1
maxItems: 2 maxItems: 2
items: items:
minimum: 0 minimum: 0
......
...@@ -42,9 +42,8 @@ properties: ...@@ -42,9 +42,8 @@ properties:
0 - 50/60Hz rejection 0 - 50/60Hz rejection
1 - 60Hz rejection 1 - 60Hz rejection
2 - 50Hz rejection 2 - 50Hz rejection
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 2 maximum: 2
'#address-cells': '#address-cells':
...@@ -91,8 +90,7 @@ patternProperties: ...@@ -91,8 +90,7 @@ patternProperties:
7 - Type T Thermocouple 7 - Type T Thermocouple
8 - Type B Thermocouple 8 - Type B Thermocouple
9 - Custom Thermocouple 9 - Custom Thermocouple
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1 minimum: 1
maximum: 9 maximum: 9
...@@ -121,8 +119,7 @@ patternProperties: ...@@ -121,8 +119,7 @@ patternProperties:
more details look at table 69 and 70. more details look at table 69 and 70.
Note should be signed, but dtc doesn't currently maintain the Note should be signed, but dtc doesn't currently maintain the
sign. sign.
allOf: $ref: /schemas/types.yaml#/definitions/uint64-matrix
- $ref: /schemas/types.yaml#/definitions/uint64-matrix
minItems: 3 minItems: 3
maxItems: 64 maxItems: 64
items: items:
...@@ -138,8 +135,7 @@ patternProperties: ...@@ -138,8 +135,7 @@ patternProperties:
properties: properties:
adi,sensor-type: adi,sensor-type:
description: Identifies the sensor as a diode. description: Identifies the sensor as a diode.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
const: 28 const: 28
adi,single-ended: adi,single-ended:
...@@ -196,8 +192,7 @@ patternProperties: ...@@ -196,8 +192,7 @@ patternProperties:
16 - RTD PT-1000 (0.00375) 16 - RTD PT-1000 (0.00375)
17 - RTD NI-120 17 - RTD NI-120
18 - RTD Custom 18 - RTD Custom
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 10 minimum: 10
maximum: 18 maximum: 18
...@@ -210,9 +205,8 @@ patternProperties: ...@@ -210,9 +205,8 @@ patternProperties:
description: description:
Identifies the number of wires used by the RTD. Setting this Identifies the number of wires used by the RTD. Setting this
property to 5 means 4 wires with Kelvin Rsense. property to 5 means 4 wires with Kelvin Rsense.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [2, 3, 4, 5]
- enum: [2, 3, 4, 5]
adi,rsense-share: adi,rsense-share:
description: description:
...@@ -237,9 +231,8 @@ patternProperties: ...@@ -237,9 +231,8 @@ patternProperties:
description: description:
This property set the RTD curve used and the corresponding This property set the RTD curve used and the corresponding
Callendar-VanDusen constants. Look at table 30 of the datasheet. Callendar-VanDusen constants. Look at table 30 of the datasheet.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 3 maximum: 3
adi,custom-rtd: adi,custom-rtd:
...@@ -247,8 +240,7 @@ patternProperties: ...@@ -247,8 +240,7 @@ patternProperties:
This is a table, where each entry should be a pair of This is a table, where each entry should be a pair of
resistance(ohm)-temperature(K). The entries added here are in uohm resistance(ohm)-temperature(K). The entries added here are in uohm
and uK. For more details values look at table 74 and 75. and uK. For more details values look at table 74 and 75.
allOf: $ref: /schemas/types.yaml#/definitions/uint64-matrix
- $ref: /schemas/types.yaml#/definitions/uint64-matrix
items: items:
minItems: 3 minItems: 3
maxItems: 64 maxItems: 64
...@@ -280,8 +272,7 @@ patternProperties: ...@@ -280,8 +272,7 @@ patternProperties:
25 - Thermistor Spectrum 1003k 1kohm 25 - Thermistor Spectrum 1003k 1kohm
26 - Thermistor Custom Steinhart-Hart 26 - Thermistor Custom Steinhart-Hart
27 - Custom Thermistor 27 - Custom Thermistor
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 19 minimum: 19
maximum: 27 maximum: 27
...@@ -314,10 +305,9 @@ patternProperties: ...@@ -314,10 +305,9 @@ patternProperties:
This property controls the magnitude of the excitation current This property controls the magnitude of the excitation current
applied to the thermistor. Value 0 set's the sensor in auto-range applied to the thermistor. Value 0 set's the sensor in auto-range
mode. mode.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000,
- enum: [0, 250, 500, 1000, 5000, 10000, 25000, 50000, 100000, 500000, 1000000]
250000, 500000, 1000000]
adi,custom-thermistor: adi,custom-thermistor:
description: description:
...@@ -325,8 +315,7 @@ patternProperties: ...@@ -325,8 +315,7 @@ patternProperties:
resistance(ohm)-temperature(K). The entries added here are in uohm resistance(ohm)-temperature(K). The entries added here are in uohm
and uK only for custom thermistors. For more details look at table and uK only for custom thermistors. For more details look at table
78 and 79. 78 and 79.
allOf: $ref: /schemas/types.yaml#/definitions/uint64-matrix
- $ref: /schemas/types.yaml#/definitions/uint64-matrix
minItems: 3 minItems: 3
maxItems: 64 maxItems: 64
items: items:
...@@ -339,8 +328,7 @@ patternProperties: ...@@ -339,8 +328,7 @@ patternProperties:
be programmed into the device memory using this property. For be programmed into the device memory using this property. For
Steinhart sensors the coefficients are given in the raw Steinhart sensors the coefficients are given in the raw
format. Look at table 82 for more information. format. Look at table 82 for more information.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
items: items:
minItems: 6 minItems: 6
maxItems: 6 maxItems: 6
...@@ -358,8 +346,7 @@ patternProperties: ...@@ -358,8 +346,7 @@ patternProperties:
properties: properties:
adi,sensor-type: adi,sensor-type:
description: Identifies the sensor as a direct adc. description: Identifies the sensor as a direct adc.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
const: 30 const: 30
adi,single-ended: adi,single-ended:
...@@ -379,8 +366,7 @@ patternProperties: ...@@ -379,8 +366,7 @@ patternProperties:
adi,sensor-type: adi,sensor-type:
description: Identifies the sensor as a rsense. description: Identifies the sensor as a rsense.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
const: 29 const: 29
adi,rsense-val-milli-ohms: adi,rsense-val-milli-ohms:
......
...@@ -42,9 +42,8 @@ patternProperties: ...@@ -42,9 +42,8 @@ patternProperties:
description: Keycode to emit description: Keycode to emit
channel: channel:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [0, 1]
description: ADC Channel this key is attached to description: ADC Channel this key is attached to
voltage: voltage:
......
...@@ -20,8 +20,7 @@ patternProperties: ...@@ -20,8 +20,7 @@ patternProperties:
if: if:
type: object type: object
then: then:
allOf: $ref: input.yaml#
- $ref: input.yaml#
properties: properties:
gpios: gpios:
...@@ -41,8 +40,8 @@ patternProperties: ...@@ -41,8 +40,8 @@ patternProperties:
description: description:
Specify event type this button/key generates. If not specified defaults to Specify event type this button/key generates. If not specified defaults to
<1> == EV_KEY. <1> == EV_KEY.
allOf: $ref: /schemas/types.yaml#definitions/uint32
- $ref: /schemas/types.yaml#definitions/uint32
default: 1 default: 1
linux,input-value: linux,input-value:
...@@ -57,14 +56,13 @@ patternProperties: ...@@ -57,14 +56,13 @@ patternProperties:
linux,input-value = <0xffffffff>; /* -1 */ linux,input-value = <0xffffffff>; /* -1 */
allOf: $ref: /schemas/types.yaml#definitions/uint32
- $ref: /schemas/types.yaml#definitions/uint32
debounce-interval: debounce-interval:
description: description:
Debouncing interval time in milliseconds. If not specified defaults to 5. Debouncing interval time in milliseconds. If not specified defaults to 5.
allOf: $ref: /schemas/types.yaml#definitions/uint32
- $ref: /schemas/types.yaml#definitions/uint32
default: 5 default: 5
wakeup-source: wakeup-source:
...@@ -81,9 +79,8 @@ patternProperties: ...@@ -81,9 +79,8 @@ patternProperties:
EV_ACT_ANY - both asserted and deasserted EV_ACT_ANY - both asserted and deasserted
EV_ACT_ASSERTED - asserted EV_ACT_ASSERTED - asserted
EV_ACT_DEASSERTED - deasserted EV_ACT_DEASSERTED - deasserted
allOf: $ref: /schemas/types.yaml#definitions/uint32
- $ref: /schemas/types.yaml#definitions/uint32 enum: [0, 1, 2]
enum: [ 0, 1, 2 ]
linux,can-disable: linux,can-disable:
description: description:
......
...@@ -18,9 +18,8 @@ properties: ...@@ -18,9 +18,8 @@ properties:
description: description:
Specifies an array of numeric keycode values to be used for reporting Specifies an array of numeric keycode values to be used for reporting
button presses. button presses.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array items:
- items:
minimum: 0 minimum: 0
maximum: 0xff maximum: 0xff
......
...@@ -30,9 +30,8 @@ properties: ...@@ -30,9 +30,8 @@ properties:
- azoteq,iqs625-keys - azoteq,iqs625-keys
linux,keycodes: linux,keycodes:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1
- minItems: 1
maxItems: 16 maxItems: 16
description: | description: |
Specifies the numeric keycodes associated with each available touch or Specifies the numeric keycodes associated with each available touch or
......
...@@ -61,33 +61,29 @@ properties: ...@@ -61,33 +61,29 @@ properties:
gain: gain:
description: Allows setting the sensitivity in the range from 0 to 31. description: Allows setting the sensitivity in the range from 0 to 31.
Note that lower values indicate higher sensitivity. Note that lower values indicate higher sensitivity.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0 maximum: 31
- maximum: 31
offset: offset:
description: Allows setting the edge compensation in the range from 0 to 31. description: Allows setting the edge compensation in the range from 0 to 31.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0 maximum: 31
- maximum: 31
offset-x: offset-x:
description: Same as offset, but applies only to the horizontal position. description: Same as offset, but applies only to the horizontal position.
Range from 0 to 80, only supported by evervision,ev-ft5726 devices. Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0 maximum: 80
- maximum: 80
offset-y: offset-y:
description: Same as offset, but applies only to the vertical position. description: Same as offset, but applies only to the vertical position.
Range from 0 to 80, only supported by evervision,ev-ft5726 devices. Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0 maximum: 80
- maximum: 80
touchscreen-size-x: true touchscreen-size-x: true
touchscreen-size-y: true touchscreen-size-y: true
......
...@@ -91,18 +91,16 @@ properties: ...@@ -91,18 +91,16 @@ properties:
description: description:
If using padding pages, specifies the stride of consecutive If using padding pages, specifies the stride of consecutive
redistributors. Must be a multiple of 64kB. redistributors. Must be a multiple of 64kB.
allOf: $ref: /schemas/types.yaml#/definitions/uint64
- $ref: /schemas/types.yaml#/definitions/uint64 multipleOf: 0x10000
- multipleOf: 0x10000
exclusiveMinimum: 0 exclusiveMinimum: 0
"#redistributor-regions": "#redistributor-regions":
description: description:
The number of independent contiguous regions occupied by the The number of independent contiguous regions occupied by the
redistributors. Required if more than one such region is present. redistributors. Required if more than one such region is present.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 maximum: 4096
- maximum: 4096 # Should be enough?
msi-controller: msi-controller:
description: description:
...@@ -114,9 +112,8 @@ properties: ...@@ -114,9 +112,8 @@ properties:
A list of pairs <intid span>, where "intid" is the first SPI of a range A list of pairs <intid span>, where "intid" is the first SPI of a range
that can be used an MBI, and "span" the size of that range. Multiple that can be used an MBI, and "span" the size of that range. Multiple
ranges can be provided. ranges can be provided.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
...@@ -125,9 +122,8 @@ properties: ...@@ -125,9 +122,8 @@ properties:
Address property. Base address of an alias of the GICD region containing Address property. Base address of an alias of the GICD region containing
only the {SET,CLR}SPI registers to be used if isolation is required, only the {SET,CLR}SPI registers to be used if isolation is required,
and if supported by the HW. and if supported by the HW.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array items:
- items:
minItems: 1 minItems: 1
maxItems: 2 maxItems: 2
...@@ -188,9 +184,8 @@ patternProperties: ...@@ -188,9 +184,8 @@ patternProperties:
description: description:
(u32, u32) tuple describing the untranslated (u32, u32) tuple describing the untranslated
address and size of the pre-ITS window. address and size of the pre-ITS window.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array items:
- items:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
......
...@@ -54,12 +54,10 @@ properties: ...@@ -54,12 +54,10 @@ properties:
and each bit in the cell refers to a children interrupt fron 0 to 31. and each bit in the cell refers to a children interrupt fron 0 to 31.
If a CPU interrupt line didn't connected with liointc, then keep it's If a CPU interrupt line didn't connected with liointc, then keep it's
cell with zero. cell with zero.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 4
- minItems: 4
maxItems: 4 maxItems: 4
required: required:
- compatible - compatible
- reg - reg
......
...@@ -56,8 +56,7 @@ properties: ...@@ -56,8 +56,7 @@ properties:
'#global-interrupts': '#global-interrupts':
description: The number of global interrupts exposed by the device. description: The number of global interrupts exposed by the device.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 260 # 2 secure, 2 non-secure, and up to 256 perf counters maximum: 260 # 2 secure, 2 non-secure, and up to 256 perf counters
......
...@@ -41,8 +41,7 @@ properties: ...@@ -41,8 +41,7 @@ properties:
Color of the LED. Use one of the LED_COLOR_ID_* prefixed definitions from Color of the LED. Use one of the LED_COLOR_ID_* prefixed definitions from
the header include/dt-bindings/leds/common.h. If there is no matching the header include/dt-bindings/leds/common.h. If there is no matching
LED_COLOR_ID available, add a new one. LED_COLOR_ID available, add a new one.
allOf: $ref: /schemas/types.yaml#definitions/uint32
- $ref: /schemas/types.yaml#definitions/uint32
minimum: 0 minimum: 0
maximum: 8 maximum: 8
...@@ -67,8 +66,7 @@ properties: ...@@ -67,8 +66,7 @@ properties:
produced where the LED momentarily turns off (or on). The "keep" setting produced where the LED momentarily turns off (or on). The "keep" setting
will keep the LED at whatever its current state is, without producing a will keep the LED at whatever its current state is, without producing a
glitch. glitch.
allOf: $ref: /schemas/types.yaml#definitions/string
- $ref: /schemas/types.yaml#definitions/string
enum: enum:
- on - on
- off - off
...@@ -79,8 +77,8 @@ properties: ...@@ -79,8 +77,8 @@ properties:
description: description:
This parameter, if present, is a string defining the trigger assigned to This parameter, if present, is a string defining the trigger assigned to
the LED. the LED.
allOf: $ref: /schemas/types.yaml#definitions/string
- $ref: /schemas/types.yaml#definitions/string
enum: enum:
# LED will act as a back-light, controlled by the framebuffer system # LED will act as a back-light, controlled by the framebuffer system
- backlight - backlight
...@@ -111,8 +109,7 @@ properties: ...@@ -111,8 +109,7 @@ properties:
brightness and duration (in ms). The exact format is brightness and duration (in ms). The exact format is
described in: described in:
Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
allOf: $ref: /schemas/types.yaml#definitions/uint32-matrix
- $ref: /schemas/types.yaml#definitions/uint32-matrix
items: items:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
......
...@@ -24,8 +24,7 @@ patternProperties: ...@@ -24,8 +24,7 @@ patternProperties:
"(^led-[0-9a-f]$|led)": "(^led-[0-9a-f]$|led)":
type: object type: object
allOf: $ref: common.yaml#
- $ref: common.yaml#
properties: properties:
gpios: gpios:
......
...@@ -34,9 +34,8 @@ patternProperties: ...@@ -34,9 +34,8 @@ patternProperties:
#- $ref: "common.yaml#" #- $ref: "common.yaml#"
rohm,led-compatible: rohm,led-compatible:
description: LED identification string description: LED identification string
allOf: $ref: "/schemas/types.yaml#/definitions/string"
- $ref: "/schemas/types.yaml#/definitions/string" enum:
- enum:
- bd71828-ambled - bd71828-ambled
- bd71828-grnled - bd71828-grnled
function: function:
......
...@@ -49,9 +49,8 @@ properties: ...@@ -49,9 +49,8 @@ properties:
st,proc-id: st,proc-id:
description: Processor id using the mailbox (0 or 1) description: Processor id using the mailbox (0 or 1)
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1]
- enum: [ 0, 1 ]
required: required:
- compatible - compatible
......
...@@ -77,13 +77,11 @@ properties: ...@@ -77,13 +77,11 @@ properties:
amlogic,ao-sysctrl: amlogic,ao-sysctrl:
description: should point to the AOBUS sysctrl node description: should point to the AOBUS sysctrl node
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
amlogic,canvas: amlogic,canvas:
description: should point to a canvas provider node description: should point to a canvas provider node
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
allOf: allOf:
- if: - if:
......
...@@ -35,8 +35,7 @@ properties: ...@@ -35,8 +35,7 @@ properties:
hdmi-phandle: hdmi-phandle:
description: phandle to the HDMI controller description: phandle to the HDMI controller
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
allOf: allOf:
- if: - if:
......
...@@ -67,8 +67,7 @@ properties: ...@@ -67,8 +67,7 @@ properties:
otherwise it's continuous. otherwise it's continuous.
link-frequencies: link-frequencies:
allOf: $ref: /schemas/types.yaml#/definitions/uint64-array
- $ref: /schemas/types.yaml#/definitions/uint64-array
description: description:
Allowed data bus frequencies. Allowed data bus frequencies.
......
...@@ -18,9 +18,8 @@ properties: ...@@ -18,9 +18,8 @@ properties:
description: description:
Specifies the scancode/key mapping table defined in-kernel for Specifies the scancode/key mapping table defined in-kernel for
the remote controller. the remote controller.
allOf: $ref: '/schemas/types.yaml#/definitions/string'
- $ref: '/schemas/types.yaml#/definitions/string' enum:
- enum:
- rc-adstech-dvb-t-pci - rc-adstech-dvb-t-pci
- rc-alink-dtu-m - rc-alink-dtu-m
- rc-anysee - rc-anysee
......
...@@ -116,10 +116,9 @@ properties: ...@@ -116,10 +116,9 @@ properties:
#The per-board settings for Gen3 and RZ/G2 platforms: #The per-board settings for Gen3 and RZ/G2 platforms:
renesas,id: renesas,id:
description: VIN channel number description: VIN channel number
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0 maximum: 15
- maximum: 15
ports: ports:
type: object type: object
......
...@@ -62,9 +62,8 @@ patternProperties: ...@@ -62,9 +62,8 @@ patternProperties:
type: boolean type: boolean
samsung,srom-timing: samsung,srom-timing:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array items:
- items:
minItems: 6 minItems: 6
maxItems: 6 maxItems: 6
description: | description: |
......
...@@ -73,10 +73,9 @@ patternProperties: ...@@ -73,10 +73,9 @@ patternProperties:
timings timings
nvidia,emc-auto-cal-interval: nvidia,emc-auto-cal-interval:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
pad calibration interval in microseconds pad calibration interval in microseconds
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 2097151 maximum: 2097151
...@@ -136,11 +135,10 @@ patternProperties: ...@@ -136,11 +135,10 @@ patternProperties:
value of the EMC_XM2DQSPADCTRL2 register for this set of timings value of the EMC_XM2DQSPADCTRL2 register for this set of timings
nvidia,emc-zcal-cnt-long: nvidia,emc-zcal-cnt-long:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
number of EMC clocks to wait before issuing any commands after number of EMC clocks to wait before issuing any commands after
clock change clock change
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 1023 maximum: 1023
...@@ -150,12 +148,11 @@ patternProperties: ...@@ -150,12 +148,11 @@ patternProperties:
value of the EMC_ZCAL_INTERVAL register for this set of timings value of the EMC_ZCAL_INTERVAL register for this set of timings
nvidia,emc-configuration: nvidia,emc-configuration:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
description: description:
EMC timing characterization data. These are the registers (see EMC timing characterization data. These are the registers (see
section "15.6.2 EMC Registers" in the TRM) whose values need to section "15.6.2 EMC Registers" in the TRM) whose values need to
be specified, according to the board documentation. be specified, according to the board documentation.
$ref: /schemas/types.yaml#/definitions/uint32-array
items: items:
- description: EMC_RC - description: EMC_RC
- description: EMC_RFC - description: EMC_RFC
......
...@@ -60,8 +60,7 @@ patternProperties: ...@@ -60,8 +60,7 @@ patternProperties:
maximum: 1066000000 maximum: 1066000000
nvidia,emem-configuration: nvidia,emem-configuration:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
description: | description: |
Values to be written to the EMEM register block. See section Values to be written to the EMEM register block. See section
"15.6.1 MC Registers" in the TRM. "15.6.1 MC Registers" in the TRM.
......
...@@ -56,10 +56,9 @@ patternProperties: ...@@ -56,10 +56,9 @@ patternProperties:
maximum: 900000000 maximum: 900000000
nvidia,emc-auto-cal-interval: nvidia,emc-auto-cal-interval:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
Pad calibration interval in microseconds. Pad calibration interval in microseconds.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 2097151 maximum: 2097151
...@@ -79,11 +78,10 @@ patternProperties: ...@@ -79,11 +78,10 @@ patternProperties:
Mode Register 0. Mode Register 0.
nvidia,emc-zcal-cnt-long: nvidia,emc-zcal-cnt-long:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
Number of EMC clocks to wait before issuing any commands after Number of EMC clocks to wait before issuing any commands after
sending ZCAL_MRW_CMD. sending ZCAL_MRW_CMD.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 1023 maximum: 1023
...@@ -98,12 +96,11 @@ patternProperties: ...@@ -98,12 +96,11 @@ patternProperties:
FBIO "read" FIFO periodic resetting enabled. FBIO "read" FIFO periodic resetting enabled.
nvidia,emc-configuration: nvidia,emc-configuration:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
description: description:
EMC timing characterization data. These are the registers EMC timing characterization data. These are the registers
(see section "18.13.2 EMC Registers" in the TRM) whose values (see section "18.13.2 EMC Registers" in the TRM) whose values
need to be specified, according to the board documentation. need to be specified, according to the board documentation.
$ref: /schemas/types.yaml#/definitions/uint32-array
items: items:
- description: EMC_RC - description: EMC_RC
- description: EMC_RFC - description: EMC_RFC
......
...@@ -77,8 +77,7 @@ patternProperties: ...@@ -77,8 +77,7 @@ patternProperties:
maximum: 900000000 maximum: 900000000
nvidia,emem-configuration: nvidia,emem-configuration:
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
description: | description: |
Values to be written to the EMEM register block. See section Values to be written to the EMEM register block. See section
"18.13.1 MC Registers" in the TRM. "18.13.1 MC Registers" in the TRM.
......
...@@ -31,19 +31,19 @@ properties: ...@@ -31,19 +31,19 @@ properties:
description: A touchscreen is attached to the controller description: A touchscreen is attached to the controller
allwinner,tp-sensitive-adjust: allwinner,tp-sensitive-adjust:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 15 maximum: 15
default: 15 default: 15
description: Sensitivity of pen down detection description: Sensitivity of pen down detection
allwinner,filter-type: allwinner,filter-type:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 3 maximum: 3
default: 1 default: 1
description: | description: |
Select median and averaging filter. Sample used for median / Select median and averaging filter. Sample used for median /
averaging filter: averaging filter:
......
...@@ -67,18 +67,17 @@ properties: ...@@ -67,18 +67,17 @@ properties:
description: description:
One or two <index level filter> to describe break input One or two <index level filter> to describe break input
configurations. configurations.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
items: items:
- description: | - description: |
"index" indicates on which break input (0 or 1) the "index" indicates on which break input (0 or 1) the
configuration should be applied. configuration should be applied.
enum: [ 0 , 1] enum: [0, 1]
- description: | - description: |
"level" gives the active level (0=low or 1=high) of the "level" gives the active level (0=low or 1=high) of the
input signal for this configuration input signal for this configuration
enum: [ 0, 1 ] enum: [0, 1]
- description: | - description: |
"filter" gives the filtering value (up to 15) to be applied. "filter" gives the filtering value (up to 15) to be applied.
maximum: 15 maximum: 15
......
...@@ -29,8 +29,7 @@ properties: ...@@ -29,8 +29,7 @@ properties:
onkey: onkey:
type: object type: object
allOf: $ref: ../input/input.yaml
- $ref: ../input/input.yaml
properties: properties:
compatible: compatible:
...@@ -68,8 +67,7 @@ properties: ...@@ -68,8 +67,7 @@ properties:
watchdog: watchdog:
type: object type: object
allOf: $ref: ../watchdog/watchdog.yaml
- $ref: ../watchdog/watchdog.yaml
properties: properties:
compatible: compatible:
...@@ -190,8 +188,7 @@ properties: ...@@ -190,8 +188,7 @@ properties:
description: STPMIC1 voltage regulators supplies description: STPMIC1 voltage regulators supplies
"^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$": "^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$":
allOf: $ref: ../regulator/regulator.yaml
- $ref: ../regulator/regulator.yaml
"^ldo[1-2,5-6]$": "^ldo[1-2,5-6]$":
type: object type: object
......
...@@ -52,9 +52,8 @@ properties: ...@@ -52,9 +52,8 @@ properties:
description: | description: |
The size (in bytes) of the IO accesses that should be performed The size (in bytes) of the IO accesses that should be performed
on the device. on the device.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 4, 8]
- enum: [ 1, 2, 4, 8 ]
hwlocks: hwlocks:
maxItems: 1 maxItems: 1
......
...@@ -41,8 +41,8 @@ properties: ...@@ -41,8 +41,8 @@ properties:
patternProperties: patternProperties:
"^sdhci@[0-9a-f]+$": "^sdhci@[0-9a-f]+$":
type: object type: object
allOf: $ref: mmc-controller.yaml
- $ref: mmc-controller.yaml
properties: properties:
compatible: compatible:
enum: enum:
......
...@@ -36,91 +36,80 @@ properties: ...@@ -36,91 +36,80 @@ properties:
cdns,phy-input-delay-sd-highspeed: cdns,phy-input-delay-sd-highspeed:
description: Value of the delay in the input path for SD high-speed timing description: Value of the delay in the input path for SD high-speed timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-legacy: cdns,phy-input-delay-legacy:
description: Value of the delay in the input path for legacy timing description: Value of the delay in the input path for legacy timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-sd-uhs-sdr12: cdns,phy-input-delay-sd-uhs-sdr12:
description: Value of the delay in the input path for SD UHS SDR12 timing description: Value of the delay in the input path for SD UHS SDR12 timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-sd-uhs-sdr25: cdns,phy-input-delay-sd-uhs-sdr25:
description: Value of the delay in the input path for SD UHS SDR25 timing description: Value of the delay in the input path for SD UHS SDR25 timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-sd-uhs-sdr50: cdns,phy-input-delay-sd-uhs-sdr50:
description: Value of the delay in the input path for SD UHS SDR50 timing description: Value of the delay in the input path for SD UHS SDR50 timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-sd-uhs-ddr50: cdns,phy-input-delay-sd-uhs-ddr50:
description: Value of the delay in the input path for SD UHS DDR50 timing description: Value of the delay in the input path for SD UHS DDR50 timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-mmc-highspeed: cdns,phy-input-delay-mmc-highspeed:
description: Value of the delay in the input path for MMC high-speed timing description: Value of the delay in the input path for MMC high-speed timing
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x1f
- maximum: 0x1f
cdns,phy-input-delay-mmc-ddr: cdns,phy-input-delay-mmc-ddr:
description: Value of the delay in the input path for eMMC high-speed DDR timing description: Value of the delay in the input path for eMMC high-speed DDR timing
allOf:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- minimum: 0
- maximum: 0x1f
# PHY DLL clock delays: # PHY DLL clock delays:
# Each delay property represents the fraction of the clock period. # Each delay property represents the fraction of the clock period.
# The approximate delay value will be # The approximate delay value will be
# (<delay property value>/128)*sdmclk_clock_period. # (<delay property value>/128)*sdmclk_clock_period.
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 0x1f
cdns,phy-dll-delay-sdclk: cdns,phy-dll-delay-sdclk:
description: | description: |
Value of the delay introduced on the sdclk output for all modes except Value of the delay introduced on the sdclk output for all modes except
HS200, HS400 and HS400_ES. HS200, HS400 and HS400_ES.
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x7f
- maximum: 0x7f
cdns,phy-dll-delay-sdclk-hsmmc: cdns,phy-dll-delay-sdclk-hsmmc:
description: | description: |
Value of the delay introduced on the sdclk output for HS200, HS400 and Value of the delay introduced on the sdclk output for HS200, HS400 and
HS400_ES speed modes. HS400_ES speed modes.
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x7f
- maximum: 0x7f
cdns,phy-dll-delay-strobe: cdns,phy-dll-delay-strobe:
description: | description: |
Value of the delay introduced on the dat_strobe input used in Value of the delay introduced on the dat_strobe input used in
HS400 / HS400_ES speed modes. HS400 / HS400_ES speed modes.
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0 maximum: 0x7f
- maximum: 0x7f
required: required:
- compatible - compatible
......
...@@ -76,20 +76,18 @@ properties: ...@@ -76,20 +76,18 @@ properties:
# Other properties # Other properties
bus-width: bus-width:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [1, 4, 8]
default: 1
description: description:
Number of data lines. Number of data lines.
$ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 4, 8]
default: 1
max-frequency: max-frequency:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 400000
- maximum: 200000000
description: description:
Maximum operating frequency of the bus. Maximum operating frequency of the bus.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 400000
maximum: 200000000
disable-wp: disable-wp:
$ref: /schemas/types.yaml#/definitions/flag $ref: /schemas/types.yaml#/definitions/flag
...@@ -212,13 +210,12 @@ properties: ...@@ -212,13 +210,12 @@ properties:
eMMC HS400 enhanced strobe mode is supported eMMC HS400 enhanced strobe mode is supported
dsr: dsr:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 0
- maximum: 0xffff
description: description:
Value the card Driver Stage Register (DSR) should be programmed Value the card Driver Stage Register (DSR) should be programmed
with. with.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 0xffff
no-sdio: no-sdio:
$ref: /schemas/types.yaml#/definitions/flag $ref: /schemas/types.yaml#/definitions/flag
...@@ -238,25 +235,23 @@ properties: ...@@ -238,25 +235,23 @@ properties:
initialization. initialization.
fixed-emmc-driver-type: fixed-emmc-driver-type:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 0
- maximum: 4
description: description:
For non-removable eMMC, enforce this driver type. The value is For non-removable eMMC, enforce this driver type. The value is
the driver type as specified in the eMMC specification (table the driver type as specified in the eMMC specification (table
206 in spec version 5.1) 206 in spec version 5.1)
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 4
post-power-on-delay-ms: post-power-on-delay-ms:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- default: 10
description: description:
It was invented for MMC pwrseq-simple which could be referred to It was invented for MMC pwrseq-simple which could be referred to
mmc-pwrseq-simple.txt. But now it\'s reused as a tunable delay mmc-pwrseq-simple.txt. But now it\'s reused as a tunable delay
waiting for I/O signalling and card power supply to be stable, waiting for I/O signalling and card power supply to be stable,
regardless of whether pwrseq-simple is used. Default to 10ms if regardless of whether pwrseq-simple is used. Default to 10ms if
no available. no available.
$ref: /schemas/types.yaml#/definitions/uint32
default: 10
supports-cqe: supports-cqe:
$ref: /schemas/types.yaml#/definitions/flag $ref: /schemas/types.yaml#/definitions/flag
...@@ -333,8 +328,8 @@ patternProperties: ...@@ -333,8 +328,8 @@ patternProperties:
- reg - reg
"^clk-phase-(legacy|sd-hs|mmc-(hs|hs[24]00|ddr52)|uhs-(sdr(12|25|50|104)|ddr50))$": "^clk-phase-(legacy|sd-hs|mmc-(hs|hs[24]00|ddr52)|uhs-(sdr(12|25|50|104)|ddr50))$":
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
items: items:
......
...@@ -76,8 +76,7 @@ properties: ...@@ -76,8 +76,7 @@ properties:
high speed modes. high speed modes.
rockchip,default-sample-phase: rockchip,default-sample-phase:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 360 maximum: 360
default: 0 default: 0
...@@ -87,8 +86,7 @@ properties: ...@@ -87,8 +86,7 @@ properties:
If not specified 0 deg will be used. If not specified 0 deg will be used.
rockchip,desired-num-phases: rockchip,desired-num-phases:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 360 maximum: 360
default: 360 default: 360
......
...@@ -27,39 +27,35 @@ properties: ...@@ -27,39 +27,35 @@ properties:
clock to this at probe time. clock to this at probe time.
fifo-depth: fifo-depth:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
The maximum size of the tx/rx fifo's. If this property is not The maximum size of the tx/rx fifo's. If this property is not
specified, the default value of the fifo size is determined from the specified, the default value of the fifo size is determined from the
controller registers. controller registers.
$ref: /schemas/types.yaml#/definitions/uint32
card-detect-delay: card-detect-delay:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- default: 0
description: description:
Delay in milli-seconds before detecting card after card Delay in milli-seconds before detecting card after card
insert event. The default value is 0. insert event. The default value is 0.
$ref: /schemas/types.yaml#/definitions/uint32
default: 0
data-addr: data-addr:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
description: description:
Override fifo address with value provided by DT. The default FIFO reg Override fifo address with value provided by DT. The default FIFO reg
offset is assumed as 0x100 (version < 0x240A) and 0x200(version >= 0x240A) offset is assumed as 0x100 (version < 0x240A) and 0x200(version >= 0x240A)
by driver. If the controller does not follow this rule, please use by driver. If the controller does not follow this rule, please use
this property to set fifo address in device tree. this property to set fifo address in device tree.
$ref: /schemas/types.yaml#/definitions/uint32
fifo-watermark-aligned: fifo-watermark-aligned:
allOf:
- $ref: /schemas/types.yaml#/definitions/flag
description: description:
Data done irq is expected if data length is less than Data done irq is expected if data length is less than
watermark in PIO mode. But fifo watermark is requested to be aligned watermark in PIO mode. But fifo watermark is requested to be aligned
with data length in some SoC so that TX/RX irq can be generated with with data length in some SoC so that TX/RX irq can be generated with
data done irq. Add this watermark quirk to mark this requirement and data done irq. Add this watermark quirk to mark this requirement and
force fifo watermark setting accordingly. force fifo watermark setting accordingly.
$ref: /schemas/types.yaml#/definitions/flag
dmas: dmas:
maxItems: 1 maxItems: 1
......
...@@ -75,9 +75,8 @@ patternProperties: ...@@ -75,9 +75,8 @@ patternProperties:
allwinner,rb: allwinner,rb:
description: description:
Contains the native Ready/Busy IDs. Contains the native Ready/Busy IDs.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1
- minItems: 1
maxItems: 2 maxItems: 2
items: items:
minimum: 0 minimum: 0
......
...@@ -47,29 +47,26 @@ patternProperties: ...@@ -47,29 +47,26 @@ patternProperties:
Contains the native Ready/Busy IDs. Contains the native Ready/Busy IDs.
nand-ecc-mode: nand-ecc-mode:
allOf:
- $ref: /schemas/types.yaml#/definitions/string
- enum: [ none, soft, hw, hw_syndrome, hw_oob_first, on-die ]
description: description:
Desired ECC engine, either hardware (most of the time Desired ECC engine, either hardware (most of the time
embedded in the NAND controller) or software correction embedded in the NAND controller) or software correction
(Linux will handle the calculations). soft_bch is deprecated (Linux will handle the calculations). soft_bch is deprecated
and should be replaced by soft and nand-ecc-algo. and should be replaced by soft and nand-ecc-algo.
$ref: /schemas/types.yaml#/definitions/string
enum: [none, soft, hw, hw_syndrome, hw_oob_first, on-die]
nand-ecc-algo: nand-ecc-algo:
allOf:
- $ref: /schemas/types.yaml#/definitions/string
- enum: [ hamming, bch, rs ]
description: description:
Desired ECC algorithm. Desired ECC algorithm.
$ref: /schemas/types.yaml#/definitions/string
enum: [hamming, bch, rs]
nand-bus-width: nand-bus-width:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [ 8, 16 ]
- default: 8
description: description:
Bus width to the NAND chip Bus width to the NAND chip
$ref: /schemas/types.yaml#/definitions/uint32
enum: [8, 16]
default: 8
nand-on-flash-bbt: nand-on-flash-bbt:
$ref: /schemas/types.yaml#/definitions/flag $ref: /schemas/types.yaml#/definitions/flag
...@@ -83,18 +80,16 @@ patternProperties: ...@@ -83,18 +80,16 @@ patternProperties:
build a volatile BBT in RAM. build a volatile BBT in RAM.
nand-ecc-strength: nand-ecc-strength:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 1
description: description:
Maximum number of bits that can be corrected per ECC step. Maximum number of bits that can be corrected per ECC step.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
nand-ecc-step-size: nand-ecc-step-size:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 1
description: description:
Number of data bytes covered by a single ECC step. Number of data bytes covered by a single ECC step.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
nand-ecc-maximize: nand-ecc-maximize:
$ref: /schemas/types.yaml#/definitions/flag $ref: /schemas/types.yaml#/definitions/flag
......
...@@ -76,13 +76,12 @@ properties: ...@@ -76,13 +76,12 @@ properties:
Please refer to 2.4.1 Message RAM Configuration in Bosch Please refer to 2.4.1 Message RAM Configuration in Bosch
M_CAN user manual for details. M_CAN user manual for details.
allOf: $ref: /schemas/types.yaml#/definitions/int32-array
- $ref: /schemas/types.yaml#/definitions/int32-array
- items:
items: items:
- description: The 'offset' is an address offset of the Message RAM items:
where the following elements start from. This is usually - description: The 'offset' is an address offset of the Message RAM where
set to 0x0 if you're using a private Message RAM. the following elements start from. This is usually set to 0x0 if
you're using a private Message RAM.
default: 0 default: 0
- description: 11-bit Filter 0-128 elements / 0-128 words - description: 11-bit Filter 0-128 elements / 0-128 words
minimum: 0 minimum: 0
......
...@@ -14,25 +14,23 @@ properties: ...@@ -14,25 +14,23 @@ properties:
pattern: "^ethernet(@.*)?$" pattern: "^ethernet(@.*)?$"
local-mac-address: local-mac-address:
allOf:
- $ref: /schemas/types.yaml#definitions/uint8-array
- items:
- minItems: 6
maxItems: 6
description: description:
Specifies the MAC address that was assigned to the network device. Specifies the MAC address that was assigned to the network device.
$ref: /schemas/types.yaml#definitions/uint8-array
mac-address: items:
allOf:
- $ref: /schemas/types.yaml#definitions/uint8-array
- items:
- minItems: 6 - minItems: 6
maxItems: 6 maxItems: 6
mac-address:
description: description:
Specifies the MAC address that was last used by the boot Specifies the MAC address that was last used by the boot
program; should be used in cases where the MAC address assigned program; should be used in cases where the MAC address assigned
to the device by the boot program is different from the to the device by the boot program is different from the
local-mac-address property. local-mac-address property.
$ref: /schemas/types.yaml#definitions/uint8-array
items:
- minItems: 6
maxItems: 6
max-frame-size: max-frame-size:
$ref: /schemas/types.yaml#definitions/uint32 $ref: /schemas/types.yaml#definitions/uint32
...@@ -133,15 +131,14 @@ properties: ...@@ -133,15 +131,14 @@ properties:
is used for components that can have configurable fifo sizes. is used for components that can have configurable fifo sizes.
managed: managed:
allOf:
- $ref: /schemas/types.yaml#definitions/string
- default: auto
enum:
- auto
- in-band-status
description: description:
Specifies the PHY management type. If auto is set and fixed-link Specifies the PHY management type. If auto is set and fixed-link
is not specified, it uses MDIO for management. is not specified, it uses MDIO for management.
$ref: /schemas/types.yaml#definitions/string
default: auto
enum:
- auto
- in-band-status
fixed-link: fixed-link:
allOf: allOf:
...@@ -183,11 +180,10 @@ properties: ...@@ -183,11 +180,10 @@ properties:
then: then:
properties: properties:
speed: speed:
allOf:
- $ref: /schemas/types.yaml#definitions/uint32
- enum: [10, 100, 1000]
description: description:
Link speed. Link speed.
$ref: /schemas/types.yaml#definitions/uint32
enum: [10, 100, 1000]
full-duplex: full-duplex:
$ref: /schemas/types.yaml#definitions/flag $ref: /schemas/types.yaml#definitions/flag
......
...@@ -20,15 +20,13 @@ allOf: ...@@ -20,15 +20,13 @@ allOf:
properties: properties:
qca,clk-out-frequency: qca,clk-out-frequency:
description: Clock output frequency in Hertz. description: Clock output frequency in Hertz.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [25000000, 50000000, 62500000, 125000000]
- enum: [ 25000000, 50000000, 62500000, 125000000 ]
qca,clk-out-strength: qca,clk-out-strength:
description: Clock output driver strength. description: Clock output driver strength.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2]
- enum: [ 0, 1, 2 ]
qca,keep-pll-enabled: qca,keep-pll-enabled:
description: | description: |
...@@ -52,17 +50,14 @@ properties: ...@@ -52,17 +50,14 @@ properties:
type: object type: object
description: description:
Initial data for the VDDIO regulator. Set this to 1.5V or 1.8V. Initial data for the VDDIO regulator. Set this to 1.5V or 1.8V.
allOf: $ref: /schemas/regulator/regulator.yaml
- $ref: /schemas/regulator/regulator.yaml
vddh-regulator: vddh-regulator:
type: object type: object
description: description:
Dummy subnode to model the external connection of the PHY VDDH Dummy subnode to model the external connection of the PHY VDDH
regulator to VDDIO. regulator to VDDIO.
allOf: $ref: /schemas/regulator/regulator.yaml
- $ref: /schemas/regulator/regulator.yaml
examples: examples:
- | - |
......
...@@ -87,16 +87,14 @@ properties: ...@@ -87,16 +87,14 @@ properties:
- const: config - const: config
qcom,smem-states: qcom,smem-states:
allOf: $ref: /schemas/types.yaml#/definitions/phandle-array
- $ref: /schemas/types.yaml#/definitions/phandle-array
description: State bits used in by the AP to signal the modem. description: State bits used in by the AP to signal the modem.
items: items:
- description: Whether the "ipa-clock-enabled" state bit is valid - description: Whether the "ipa-clock-enabled" state bit is valid
- description: Whether the IPA clock is enabled (if valid) - description: Whether the IPA clock is enabled (if valid)
qcom,smem-state-names: qcom,smem-state-names:
allOf: $ref: /schemas/types.yaml#/definitions/string-array
- $ref: /schemas/types.yaml#/definitions/string-array
description: The names of the state bits used for SMP2P output description: The names of the state bits used for SMP2P output
items: items:
- const: ipa-clock-enabled-valid - const: ipa-clock-enabled-valid
......
...@@ -204,14 +204,13 @@ properties: ...@@ -204,14 +204,13 @@ properties:
snps,reset-delays-us: snps,reset-delays-us:
deprecated: true deprecated: true
allOf:
- $ref: /schemas/types.yaml#definitions/uint32-array
- minItems: 3
maxItems: 3
description: description:
Triplet of delays. The 1st cell is reset pre-delay in micro Triplet of delays. The 1st cell is reset pre-delay in micro
seconds. The 2nd cell is reset pulse in micro seconds. The 3rd seconds. The 2nd cell is reset pulse in micro seconds. The 3rd
cell is reset post-delay in micro seconds. cell is reset post-delay in micro seconds.
$ref: /schemas/types.yaml#definitions/uint32-array
minItems: 3
maxItems: 3
snps,aal: snps,aal:
$ref: /schemas/types.yaml#definitions/flag $ref: /schemas/types.yaml#definitions/flag
...@@ -306,27 +305,24 @@ allOf: ...@@ -306,27 +305,24 @@ allOf:
then: then:
properties: properties:
snps,pbl: snps,pbl:
allOf:
- $ref: /schemas/types.yaml#definitions/uint32
- enum: [2, 4, 8]
description: description:
Programmable Burst Length (tx and rx) Programmable Burst Length (tx and rx)
$ref: /schemas/types.yaml#definitions/uint32
enum: [2, 4, 8]
snps,txpbl: snps,txpbl:
allOf:
- $ref: /schemas/types.yaml#definitions/uint32
- enum: [2, 4, 8]
description: description:
Tx Programmable Burst Length. If set, DMA tx will use this Tx Programmable Burst Length. If set, DMA tx will use this
value rather than snps,pbl. value rather than snps,pbl.
$ref: /schemas/types.yaml#definitions/uint32
enum: [2, 4, 8]
snps,rxpbl: snps,rxpbl:
allOf:
- $ref: /schemas/types.yaml#definitions/uint32
- enum: [2, 4, 8]
description: description:
Rx Programmable Burst Length. If set, DMA rx will use this Rx Programmable Burst Length. If set, DMA rx will use this
value rather than snps,pbl. value rather than snps,pbl.
$ref: /schemas/types.yaml#definitions/uint32
enum: [2, 4, 8]
snps,no-pbl-x8: snps,no-pbl-x8:
$ref: /schemas/types.yaml#definitions/flag $ref: /schemas/types.yaml#definitions/flag
......
...@@ -66,8 +66,7 @@ properties: ...@@ -66,8 +66,7 @@ properties:
- eth-ck - eth-ck
st,syscon: st,syscon:
allOf: $ref: "/schemas/types.yaml#/definitions/phandle-array"
- $ref: "/schemas/types.yaml#/definitions/phandle-array"
description: description:
Should be phandle/offset pair. The phandle to the syscon node which Should be phandle/offset pair. The phandle to the syscon node which
encompases the glue register, and the offset of the control register encompases the glue register, and the offset of the control register
......
...@@ -105,8 +105,7 @@ properties: ...@@ -105,8 +105,7 @@ properties:
description: label associated with this port description: label associated with this port
ti,dual-emac-pvid: ti,dual-emac-pvid:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1 minimum: 1
maximum: 1024 maximum: 1024
description: description:
...@@ -150,10 +149,9 @@ properties: ...@@ -150,10 +149,9 @@ properties:
patternProperties: patternProperties:
"^mdio@": "^mdio@":
type: object type: object
allOf:
- $ref: "ti,davinci-mdio.yaml#"
description: description:
CPSW MDIO bus. CPSW MDIO bus.
$ref: "ti,davinci-mdio.yaml#"
required: required:
......
...@@ -40,9 +40,8 @@ properties: ...@@ -40,9 +40,8 @@ properties:
ti,hwmods: ti,hwmods:
description: TI hwmod name description: TI hwmod name
deprecated: true deprecated: true
allOf: $ref: /schemas/types.yaml#/definitions/string-array
- $ref: /schemas/types.yaml#/definitions/string-array items:
- items:
const: davinci_mdio const: davinci_mdio
if: if:
......
...@@ -103,8 +103,7 @@ properties: ...@@ -103,8 +103,7 @@ properties:
type: object type: object
description: CPSW2G NUSS external ports description: CPSW2G NUSS external ports
allOf: $ref: ethernet-controller.yaml#
- $ref: ethernet-controller.yaml#
properties: properties:
reg: reg:
...@@ -139,8 +138,8 @@ properties: ...@@ -139,8 +138,8 @@ properties:
patternProperties: patternProperties:
"^mdio@[0-9a-f]+$": "^mdio@[0-9a-f]+$":
type: object type: object
allOf: $ref: "ti,davinci-mdio.yaml#"
- $ref: "ti,davinci-mdio.yaml#"
description: description:
CPSW MDIO bus. CPSW MDIO bus.
......
...@@ -18,8 +18,7 @@ properties: ...@@ -18,8 +18,7 @@ properties:
description: description:
Set into the no BAR match register to configure the number of least Set into the no BAR match register to configure the number of least
significant bits kept during inbound (PCIe -> AXI) address translations significant bits kept during inbound (PCIe -> AXI) address translations
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 0 minimum: 0
maximum: 64 maximum: 64
default: 32 default: 32
......
...@@ -12,8 +12,7 @@ maintainers: ...@@ -12,8 +12,7 @@ maintainers:
properties: properties:
cdns,max-outbound-regions: cdns,max-outbound-regions:
description: maximum number of outbound regions description: maximum number of outbound regions
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1 minimum: 1
maximum: 32 maximum: 32
default: 32 default: 32
......
...@@ -71,10 +71,9 @@ properties: ...@@ -71,10 +71,9 @@ properties:
max-link-speed: max-link-speed:
description: Specify PCI Gen for link capability. description: Specify PCI Gen for link capability.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 3, 4]
- enum: [ 1, 2, 3, 4 ] default: 1
- default: 1
bus-range: bus-range:
description: Range of bus numbers associated with this controller. description: Range of bus numbers associated with this controller.
......
...@@ -18,21 +18,18 @@ properties: ...@@ -18,21 +18,18 @@ properties:
max-functions: max-functions:
description: Maximum number of functions that can be configured description: Maximum number of functions that can be configured
allOf: $ref: /schemas/types.yaml#/definitions/uint8
- $ref: /schemas/types.yaml#/definitions/uint8
minimum: 1 minimum: 1
default: 1 default: 1
maximum: 255 maximum: 255
max-link-speed: max-link-speed:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
enum: [ 1, 2, 3, 4 ] enum: [ 1, 2, 3, 4 ]
num-lanes: num-lanes:
description: maximum number of lanes description: maximum number of lanes
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1 minimum: 1
default: 1 default: 1
maximum: 16 maximum: 16
......
...@@ -77,24 +77,21 @@ patternProperties: ...@@ -77,24 +77,21 @@ patternProperties:
description: description:
Specifies the type of PHY for which the group of PHY lanes is used. Specifies the type of PHY for which the group of PHY lanes is used.
Refer include/dt-bindings/phy/phy.h. Constants from the header should be used. Refer include/dt-bindings/phy/phy.h. Constants from the header should be used.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 3, 4, 5, 6]
- enum: [1, 2, 3, 4, 5, 6]
cdns,num-lanes: cdns,num-lanes:
description: description:
Number of DisplayPort lanes. Number of DisplayPort lanes.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 4]
- enum: [1, 2, 4]
default: 4 default: 4
cdns,max-bit-rate: cdns,max-bit-rate:
description: description:
Maximum DisplayPort link bit rate to use, in Mbps Maximum DisplayPort link bit rate to use, in Mbps
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [2160, 2430, 2700, 3240, 4320, 5400, 8100]
- enum: [2160, 2430, 2700, 3240, 4320, 5400, 8100]
default: 8100 default: 8100
required: required:
......
...@@ -83,9 +83,8 @@ then: ...@@ -83,9 +83,8 @@ then:
It is a 6 bit value that specifies offset to be It is a 6 bit value that specifies offset to be
added to PHY refgen RESCODE via IMP_CTRL1 register. It is a PHY added to PHY refgen RESCODE via IMP_CTRL1 register. It is a PHY
tuning parameter that may vary for different boards of same SOC. tuning parameter that may vary for different boards of same SOC.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 63 maximum: 63
default: 0 default: 0
...@@ -93,9 +92,8 @@ then: ...@@ -93,9 +92,8 @@ then:
description: description:
It is a 6 bit value that specifies bias-ctrl-value. It is a PHY It is a 6 bit value that specifies bias-ctrl-value. It is a PHY
tuning parameter that may vary for different boards of same SOC. tuning parameter that may vary for different boards of same SOC.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 63 maximum: 63
default: 32 default: 32
...@@ -103,9 +101,8 @@ then: ...@@ -103,9 +101,8 @@ then:
description: description:
It is a 2 bit value that specifies charge-ctrl-value. It is a PHY It is a 2 bit value that specifies charge-ctrl-value. It is a PHY
tuning parameter that may vary for different boards of same SOC. tuning parameter that may vary for different boards of same SOC.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 3 maximum: 3
default: 0 default: 0
...@@ -115,9 +112,8 @@ then: ...@@ -115,9 +112,8 @@ then:
output current. output current.
Possible range is - 15mA to 24mA (stepsize of 600 uA). Possible range is - 15mA to 24mA (stepsize of 600 uA).
See dt-bindings/phy/phy-qcom-qusb2.h for applicable values. See dt-bindings/phy/phy-qcom-qusb2.h for applicable values.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 15 maximum: 15
default: 3 default: 3
...@@ -126,11 +122,10 @@ then: ...@@ -126,11 +122,10 @@ then:
It is a 2 bit value that specifies pre-emphasis level. It is a 2 bit value that specifies pre-emphasis level.
Possible range is 0 to 15% (stepsize of 5%). Possible range is 0 to 15% (stepsize of 5%).
See dt-bindings/phy/phy-qcom-qusb2.h for applicable values. See dt-bindings/phy/phy-qcom-qusb2.h for applicable values.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 3 maximum: 3
default: 0 default: 2
qcom,preemphasis-width: qcom,preemphasis-width:
description: description:
...@@ -138,9 +133,8 @@ then: ...@@ -138,9 +133,8 @@ then:
pre-emphasis (specified using qcom,preemphasis-level) must be in pre-emphasis (specified using qcom,preemphasis-level) must be in
effect. Duration could be half-bit of full-bit. effect. Duration could be half-bit of full-bit.
See dt-bindings/phy/phy-qcom-qusb2.h for applicable values. See dt-bindings/phy/phy-qcom-qusb2.h for applicable values.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 1 maximum: 1
default: 0 default: 0
...@@ -148,11 +142,10 @@ then: ...@@ -148,11 +142,10 @@ then:
description: description:
It is a 2 bit value tuning parameter that control disconnect It is a 2 bit value tuning parameter that control disconnect
threshold and may vary for different boards of same SOC. threshold and may vary for different boards of same SOC.
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 minimum: 0
- minimum: 0
maximum: 3 maximum: 3
default: 1 default: 0
required: required:
- compatible - compatible
......
...@@ -84,13 +84,12 @@ properties: ...@@ -84,13 +84,12 @@ properties:
gpio-line-names: true gpio-line-names: true
input-debounce: input-debounce:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 1
maxItems: 5
description: description:
Debouncing periods in microseconds, one period per interrupt Debouncing periods in microseconds, one period per interrupt
bank found in the controller bank found in the controller
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 5
patternProperties: patternProperties:
# It's pretty scary, but the basic idea is that: # It's pretty scary, but the basic idea is that:
...@@ -115,9 +114,8 @@ patternProperties: ...@@ -115,9 +114,8 @@ patternProperties:
bias-pull-down: true bias-pull-down: true
drive-strength: drive-strength:
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [10, 20, 30, 40]
- enum: [ 10, 20, 30, 40 ]
required: required:
- pins - pins
......
...@@ -33,26 +33,23 @@ patternProperties: ...@@ -33,26 +33,23 @@ patternProperties:
then: then:
patternProperties: patternProperties:
"^function|groups$": "^function|groups$":
allOf: $ref: "/schemas/types.yaml#/definitions/string"
- $ref: "/schemas/types.yaml#/definitions/string" enum: [ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15,
- enum: [ ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, DDCCLK, DDCDAT,
ADC15, ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EXTRST, FLACK, FLBUSY, FLWP, GPID, GPID0, GPID2, GPID4, GPID6, GPIE0,
DDCCLK, DDCDAT, EXTRST, FLACK, FLBUSY, FLWP, GPID, GPID0, GPID2, GPIE2, GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, I2C14, I2C3, I2C4,
GPID4, GPID6, GPIE0, GPIE2, GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C5, I2C6, I2C7, I2C8, I2C9, LPCPD, LPCPME, LPCRST, LPCSMI, MAC1LINK,
I2C13, I2C14, I2C3, I2C4, I2C5, I2C6, I2C7, I2C8, I2C9, LPCPD, MAC2LINK, MDIO1, MDIO2, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2,
LPCPME, LPCRST, LPCSMI, MAC1LINK, MAC2LINK, MDIO1, MDIO2, NCTS1, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4,
NCTS2, NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDTS4, NRI1, NRI2, NRI3, NRI4, NRTS1, NRTS2, NRTS3, OSCCLK, PWM0,
NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NDTS4, NRI1, NRI2, PWM1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1,
NRI3, NRI4, NRTS1, NRTS2, NRTS3, OSCCLK, PWM0, PWM1, PWM2, PWM3, RMII2, ROM16, ROM8, ROMCS1, ROMCS2, ROMCS3, ROMCS4, RXD1, RXD2, RXD3,
PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1, RMII2, ROM16, RXD4, SALT1, SALT2, SALT3, SALT4, SD1, SD2, SGPMCK, SGPMI, SGPMLD,
ROM8, ROMCS1, ROMCS2, ROMCS3, ROMCS4, RXD1, RXD2, RXD3, RXD4,
SALT1, SALT2, SALT3, SALT4, SD1, SD2, SGPMCK, SGPMI, SGPMLD,
SGPMO, SGPSCK, SGPSI0, SGPSI1, SGPSLD, SIOONCTRL, SIOPBI, SIOPBO, SGPMO, SGPSCK, SGPSI0, SGPSI1, SGPSLD, SIOONCTRL, SIOPBI, SIOPBO,
SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1DEBUG, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1DEBUG, SPI1PASSTHRU,
SPI1PASSTHRU, SPICS1, TIMER3, TIMER4, TIMER5, TIMER6, TIMER7, SPICS1, TIMER3, TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, TXD2,
TIMER8, TXD1, TXD2, TXD3, TXD4, UART6, USB11D1, USB11H2, USB2D1, TXD3, TXD4, UART6, USB11D1, USB11H2, USB2D1, USB2H1, USBCKI, VGABIOS_ROM,
USB2H1, USBCKI, VGABIOS_ROM, VGAHS, VGAVS, VPI18, VPI24, VPI30, VGAHS, VGAVS, VPI18, VPI24, VPI30, VPO12, VPO24, WDTRST1, WDTRST2]
VPO12, VPO24, WDTRST1, WDTRST2 ]
required: required:
- compatible - compatible
......
...@@ -29,8 +29,7 @@ properties: ...@@ -29,8 +29,7 @@ properties:
aspeed,external-nodes: aspeed,external-nodes:
minItems: 2 minItems: 2
maxItems: 2 maxItems: 2
allOf: $ref: /schemas/types.yaml#/definitions/phandle-array
- $ref: /schemas/types.yaml#/definitions/phandle-array
description: | description: |
A cell of phandles to external controller nodes: A cell of phandles to external controller nodes:
0: compatible with "aspeed,ast2500-gfx", "syscon" 0: compatible with "aspeed,ast2500-gfx", "syscon"
...@@ -43,28 +42,25 @@ patternProperties: ...@@ -43,28 +42,25 @@ patternProperties:
then: then:
patternProperties: patternProperties:
"^function|groups$": "^function|groups$":
allOf: $ref: "/schemas/types.yaml#/definitions/string"
- $ref: "/schemas/types.yaml#/definitions/string" enum: [ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15,
- enum: [ ACPI, ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, DDCCLK, DDCDAT,
ADC15, ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, ESPI, FWSPICS1, FWSPICS2, GPID0, GPID2, GPID4, GPID6, GPIE0, GPIE2,
DDCCLK, DDCDAT, ESPI, FWSPICS1, FWSPICS2, GPID0, GPID2, GPID4, GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, I2C14, I2C3, I2C4, I2C5,
GPID6, GPIE0, GPIE2, GPIE4, GPIE6, I2C10, I2C11, I2C12, I2C13, I2C6, I2C7, I2C8, I2C9, LAD0, LAD1, LAD2, LAD3, LCLK, LFRAME, LPCHC,
I2C14, I2C3, I2C4, I2C5, I2C6, I2C7, I2C8, I2C9, LAD0, LAD1, LPCPD, LPCPLUS, LPCPME, LPCRST, LPCSMI, LSIRQ, MAC1LINK, MAC2LINK,
LAD2, LAD3, LCLK, LFRAME, LPCHC, LPCPD, LPCPLUS, LPCPME, LPCRST, MDIO1, MDIO2, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4,
LPCSMI, LSIRQ, MAC1LINK, MAC2LINK, MDIO1, MDIO2, NCTS1, NCTS2, NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2,
NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NRI3, NRI4, NRTS1, NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PNOR, PWM0,
NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4, NRTS1, PWM1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1,
NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PNOR, PWM0, PWM1, PWM2, RMII2, RXD1, RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13,
PWM3, PWM4, PWM5, PWM6, PWM7, RGMII1, RGMII2, RMII1, RMII2, RXD1, SALT14, SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8, SALT9, SCL1,
RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13, SALT14, SCL2, SD1, SD2, SDA1, SDA2, SGPS1, SGPS2, SIOONCTRL, SIOPBI, SIOPBO,
SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8, SALT9, SCL1, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1CS1, SPI1DEBUG,
SCL2, SD1, SD2, SDA1, SDA2, SGPS1, SGPS2, SIOONCTRL, SIOPBI, SPI1PASSTHRU, SPI2CK, SPI2CS0, SPI2CS1, SPI2MISO, SPI2MOSI, TIMER3,
SIOPBO, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1CS1, TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, TXD2, TXD3, TXD4, UART6,
SPI1DEBUG, SPI1PASSTHRU, SPI2CK, SPI2CS0, SPI2CS1, SPI2MISO, USB11BHID, USB2AD, USB2AH, USB2BD, USB2BH, USBCKI, VGABIOSROM, VGAHS,
SPI2MOSI, TIMER3, TIMER4, TIMER5, TIMER6, TIMER7, TIMER8, TXD1, VGAVS, VPI24, VPO, WDTRST1, WDTRST2]
TXD2, TXD3, TXD4, UART6, USB11BHID, USB2AD, USB2AH, USB2BD,
USB2BH, USBCKI, VGABIOSROM, VGAHS, VGAVS, VPI24, VPO, WDTRST1,
WDTRST2, ]
required: required:
- compatible - compatible
......
...@@ -30,64 +30,58 @@ patternProperties: ...@@ -30,64 +30,58 @@ patternProperties:
then: then:
properties: properties:
function: function:
allOf: $ref: "/schemas/types.yaml#/definitions/string"
- $ref: "/schemas/types.yaml#/definitions/string" enum: [ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, ADC2,
- enum: [ ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EMMC, ESPI, ESPIALT,
ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EMMC, FSI1, FSI2, FWSPIABR, FWSPID, FWSPIWP, GPIT0, GPIT1, GPIT2, GPIT3,
ESPI, ESPIALT, FSI1, FSI2, FWSPIABR, FWSPID, FWSPIWP, GPIT0, GPIT4, GPIT5, GPIT6, GPIT7, GPIU0, GPIU1, GPIU2, GPIU3, GPIU4, GPIU5,
GPIT1, GPIT2, GPIT3, GPIT4, GPIT5, GPIT6, GPIT7, GPIU0, GPIU1, GPIU6, GPIU7, I2C1, I2C10, I2C11, I2C12, I2C13, I2C14, I2C15, I2C16,
GPIU2, GPIU3, GPIU4, GPIU5, GPIU6, GPIU7, I2C1, I2C10, I2C11, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7, I2C8, I2C9, I3C3, I3C4, I3C5,
I2C12, I2C13, I2C14, I2C15, I2C16, I2C2, I2C3, I2C4, I2C5, I2C6, I3C6, JTAGM, LHPD, LHSIRQ, LPC, LPCHC, LPCPD, LPCPME, LPCSMI, LSIRQ,
I2C7, I2C8, I2C9, I3C3, I3C4, I3C5, I3C6, JTAGM, LHPD, LHSIRQ, MACLINK1, MACLINK2, MACLINK3, MACLINK4, MDIO1, MDIO2, MDIO3, MDIO4,
LPC, LPCHC, LPCPD, LPCPME, LPCSMI, LSIRQ, MACLINK1, MACLINK2, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2,
MACLINK3, MACLINK4, MDIO1, MDIO2, MDIO3, MDIO4, NCTS1, NCTS2, NDSR3, NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4,
NCTS3, NCTS4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NRTS1, NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PWM0, PWM1, PWM10, PWM11,
NDSR4, NDTR1, NDTR2, NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4, NRTS1, PWM12, PWM13, PWM14, PWM15, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, PWM8,
NRTS2, NRTS3, NRTS4, OSCCLK, PEWAKE, PWM0, PWM1, PWM10, PWM11, PWM9, RGMII1, RGMII2, RGMII3, RGMII4, RMII1, RMII2, RMII3, RMII4,
PWM12, PWM13, PWM14, PWM15, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, RXD1, RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT13, SALT14,
PWM8, PWM9, RGMII1, RGMII2, RGMII3, RGMII4, RMII1, RMII2, RMII3, SALT15, SALT16, SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT8,
RMII4, RXD1, RXD2, RXD3, RXD4, SALT1, SALT10, SALT11, SALT12, SALT9, SD1, SD2, SGPM1, SGPS1, SIOONCTRL, SIOPBI, SIOPBO, SIOPWREQ,
SALT13, SALT14, SALT15, SALT16, SALT2, SALT3, SALT4, SALT5, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1ABR, SPI1CS1, SPI1WP, SPI2,
SALT6, SALT7, SALT8, SALT9, SD1, SD2, SGPM1, SGPS1, SIOONCTRL, SPI2CS1, SPI2CS2, TACH0, TACH1, TACH10, TACH11, TACH12, TACH13, TACH14,
SIOPBI, SIOPBO, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, TACH15, TACH2, TACH3, TACH4, TACH5, TACH6, TACH7, TACH8, TACH9, THRU0,
SPI1ABR, SPI1CS1, SPI1WP, SPI2, SPI2CS1, SPI2CS2, TACH0, TACH1, THRU1, THRU2, THRU3, TXD1, TXD2, TXD3, TXD4, UART10, UART11, UART12,
TACH10, TACH11, TACH12, TACH13, TACH14, TACH15, TACH2, TACH3, UART13, UART6, UART7, UART8, UART9, USBAD, USBADP, USB2AH, USB2AHP,
TACH4, TACH5, TACH6, TACH7, TACH8, TACH9, THRU0, THRU1, THRU2, USB2BD, USB2BH, VB, VGAHS, VGAVS, WDTRST1, WDTRST2, WDTRST3, WDTRST4]
THRU3, TXD1, TXD2, TXD3, TXD4, UART10, UART11, UART12, UART13,
UART6, UART7, UART8, UART9, USBAD, USBADP, USB2AH, USB2AHP,
USB2BD, USB2BH, VB, VGAHS, VGAVS, WDTRST1, WDTRST2, WDTRST3,
WDTRST4, ]
groups: groups:
allOf: $ref: "/schemas/types.yaml#/definitions/string"
- $ref: "/schemas/types.yaml#/definitions/string" enum: [ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, ADC2,
- enum: [ ADC0, ADC1, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EMMCG1, EMMCG4,
ADC2, ADC3, ADC4, ADC5, ADC6, ADC7, ADC8, ADC9, BMCINT, EMMCG1, EMMCG8, ESPI, ESPIALT, FSI1, FSI2, FWSPIABR, FWSPID, FWQSPID, FWSPIWP,
EMMCG4, EMMCG8, ESPI, ESPIALT, FSI1, FSI2, FWSPIABR, FWSPID, GPIT0, GPIT1, GPIT2, GPIT3, GPIT4, GPIT5, GPIT6, GPIT7, GPIU0, GPIU1,
FWQSPID, FWSPIWP, GPIT0, GPIT1, GPIT2, GPIT3, GPIT4, GPIT5, GPIU2, GPIU3, GPIU4, GPIU5, GPIU6, GPIU7, HVI3C3, HVI3C4, I2C1, I2C10,
GPIT6, GPIT7, GPIU0, GPIU1, GPIU2, GPIU3, GPIU4, GPIU5, GPIU6, I2C11, I2C12, I2C13, I2C14, I2C15, I2C16, I2C2, I2C3, I2C4, I2C5,
GPIU7, HVI3C3, HVI3C4, I2C1, I2C10, I2C11, I2C12, I2C13, I2C14, I2C6, I2C7, I2C8, I2C9, I3C3, I3C4, I3C5, I3C6, JTAGM, LHPD, LHSIRQ,
I2C15, I2C16, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7, I2C8, I2C9, LPC, LPCHC, LPCPD, LPCPME, LPCSMI, LSIRQ, MACLINK1, MACLINK2, MACLINK3,
I3C3, I3C4, I3C5, I3C6, JTAGM, LHPD, LHSIRQ, LPC, LPCHC, LPCPD, MACLINK4, MDIO1, MDIO2, MDIO3, MDIO4, NCTS1, NCTS2, NCTS3, NCTS4,
LPCPME, LPCSMI, LSIRQ, MACLINK1, MACLINK2, MACLINK3, MACLINK4, NDCD1, NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2,
MDIO1, MDIO2, MDIO3, MDIO4, NCTS1, NCTS2, NCTS3, NCTS4, NDCD1,
NDCD2, NDCD3, NDCD4, NDSR1, NDSR2, NDSR3, NDSR4, NDTR1, NDTR2,
NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4, NRTS1, NRTS2, NRTS3, NRTS4, NDTR3, NDTR4, NRI1, NRI2, NRI3, NRI4, NRTS1, NRTS2, NRTS3, NRTS4,
OSCCLK, PEWAKE, PWM0, PWM1, PWM10G0, PWM10G1, PWM11G0, PWM11G1, OSCCLK, PEWAKE, PWM0, PWM1, PWM10G0, PWM10G1, PWM11G0, PWM11G1, PWM12G0,
PWM12G0, PWM12G1, PWM13G0, PWM13G1, PWM14G0, PWM14G1, PWM15G0, PWM12G1, PWM13G0, PWM13G1, PWM14G0, PWM14G1, PWM15G0, PWM15G1, PWM2,
PWM15G1, PWM2, PWM3, PWM4, PWM5, PWM6, PWM7, PWM8G0, PWM8G1, PWM3, PWM4, PWM5, PWM6, PWM7, PWM8G0, PWM8G1, PWM9G0, PWM9G1, QSPI1,
PWM9G0, PWM9G1, QSPI1, QSPI2, RGMII1, RGMII2, RGMII3, RGMII4, QSPI2, RGMII1, RGMII2, RGMII3, RGMII4, RMII1, RMII2, RMII3, RMII4,
RMII1, RMII2, RMII3, RMII4, RXD1, RXD2, RXD3, RXD4, SALT1, RXD1, RXD2, RXD3, RXD4, SALT1, SALT10G0, SALT10G1, SALT11G0, SALT11G1,
SALT10G0, SALT10G1, SALT11G0, SALT11G1, SALT12G0, SALT12G1, SALT12G0, SALT12G1, SALT13G0, SALT13G1, SALT14G0, SALT14G1, SALT15G0,
SALT13G0, SALT13G1, SALT14G0, SALT14G1, SALT15G0, SALT15G1, SALT15G1, SALT16G0, SALT16G1, SALT2, SALT3, SALT4, SALT5, SALT6,
SALT16G0, SALT16G1, SALT2, SALT3, SALT4, SALT5, SALT6, SALT7, SALT7, SALT8, SALT9G0, SALT9G1, SD1, SD2, SD3, SGPM1, SGPS1, SIOONCTRL,
SALT8, SALT9G0, SALT9G1, SD1, SD2, SD3, SGPM1, SGPS1, SIOONCTRL, SIOPBI, SIOPBO, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1ABR,
SIOPBI, SIOPBO, SIOPWREQ, SIOPWRGD, SIOS3, SIOS5, SIOSCI, SPI1, SPI1CS1, SPI1WP, SPI2, SPI2CS1, SPI2CS2, TACH0, TACH1, TACH10, TACH11,
SPI1ABR, SPI1CS1, SPI1WP, SPI2, SPI2CS1, SPI2CS2, TACH0, TACH1, TACH12, TACH13, TACH14, TACH15, TACH2, TACH3, TACH4, TACH5, TACH6,
TACH10, TACH11, TACH12, TACH13, TACH14, TACH15, TACH2, TACH3, TACH7, TACH8, TACH9, THRU0, THRU1, THRU2, THRU3, TXD1, TXD2, TXD3,
TACH4, TACH5, TACH6, TACH7, TACH8, TACH9, THRU0, THRU1, THRU2, TXD4, UART10, UART11, UART12G0, UART12G1, UART13G0, UART13G1, UART6,
THRU3, TXD1, TXD2, TXD3, TXD4, UART10, UART11, UART12G0, UART7, UART8, UART9, USBA, USBB, VB, VGAHS, VGAVS, WDTRST1, WDTRST2,
UART12G1, UART13G0, UART13G1, UART6, UART7, UART8, UART9, USBA, WDTRST3, WDTRST4]
USBB, VB, VGAHS, VGAVS, WDTRST1, WDTRST2, WDTRST3, WDTRST4, ]
required: required:
- compatible - compatible
......
...@@ -37,9 +37,8 @@ patternProperties: ...@@ -37,9 +37,8 @@ patternProperties:
be found in <arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h>. The last be found in <arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h>. The last
integer CONFIG is the pad setting value like pull-up on this pin. Please integer CONFIG is the pad setting value like pull-up on this pin. Please
refer to i.MX8M Mini Reference Manual for detailed CONFIG settings. refer to i.MX8M Mini Reference Manual for detailed CONFIG settings.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
items: items:
- description: | - description: |
"mux_reg" indicates the offset of mux register. "mux_reg" indicates the offset of mux register.
......
...@@ -37,9 +37,8 @@ patternProperties: ...@@ -37,9 +37,8 @@ patternProperties:
be found in <arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h>. The last be found in <arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h>. The last
integer CONFIG is the pad setting value like pull-up on this pin. Please integer CONFIG is the pad setting value like pull-up on this pin. Please
refer to i.MX8M Nano Reference Manual for detailed CONFIG settings. refer to i.MX8M Nano Reference Manual for detailed CONFIG settings.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
items: items:
- description: | - description: |
"mux_reg" indicates the offset of mux register. "mux_reg" indicates the offset of mux register.
......
...@@ -37,9 +37,8 @@ patternProperties: ...@@ -37,9 +37,8 @@ patternProperties:
be found in <arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h>. The last be found in <arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h>. The last
integer CONFIG is the pad setting value like pull-up on this pin. Please integer CONFIG is the pad setting value like pull-up on this pin. Please
refer to i.MX8M Plus Reference Manual for detailed CONFIG settings. refer to i.MX8M Plus Reference Manual for detailed CONFIG settings.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
items: items:
- description: | - description: |
"mux_reg" indicates the offset of mux register. "mux_reg" indicates the offset of mux register.
......
...@@ -37,9 +37,8 @@ patternProperties: ...@@ -37,9 +37,8 @@ patternProperties:
be found in <arch/arm64/boot/dts/freescale/imx8mq-pinfunc.h>. The last be found in <arch/arm64/boot/dts/freescale/imx8mq-pinfunc.h>. The last
integer CONFIG is the pad setting value like pull-up on this pin. Please integer CONFIG is the pad setting value like pull-up on this pin. Please
refer to i.MX8M Quad Reference Manual for detailed CONFIG settings. refer to i.MX8M Quad Reference Manual for detailed CONFIG settings.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix items:
- items:
items: items:
- description: | - description: |
"mux_reg" indicates the offset of mux register. "mux_reg" indicates the offset of mux register.
......
...@@ -24,12 +24,10 @@ properties: ...@@ -24,12 +24,10 @@ properties:
patternProperties: patternProperties:
'-pins$': '-pins$':
type: object type: object
allOf:
- $ref: pincfg-node.yaml#
- $ref: pinmux-node.yaml#
description: description:
Pinctrl node's client devices use subnodes for desired pin configuration. Pinctrl node's client devices use subnodes for desired pin configuration.
Client device subnodes use below standard properties. Client device subnodes use below standard properties.
$ref: pinmux-node.yaml#
properties: properties:
function: true function: true
......
...@@ -122,11 +122,10 @@ properties: ...@@ -122,11 +122,10 @@ properties:
this, "pins" or "pinmux" has to be specified) this, "pins" or "pinmux" has to be specified)
pinmux: pinmux:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
description: description:
The list of numeric pin ids and their mux settings that properties in the The list of numeric pin ids and their mux settings that properties in the
node apply to (either this, "pins" or "groups" have to be specified) node apply to (either this, "pins" or "groups" have to be specified)
$ref: /schemas/types.yaml#/definitions/uint32-array
pinctrl-pin-array: pinctrl-pin-array:
$ref: /schemas/types.yaml#/definitions/uint32-array $ref: /schemas/types.yaml#/definitions/uint32-array
...@@ -49,8 +49,7 @@ patternProperties: ...@@ -49,8 +49,7 @@ patternProperties:
description: description:
Pinctrl node's client devices use subnodes for desired pin configuration. Pinctrl node's client devices use subnodes for desired pin configuration.
Client device subnodes use below standard properties. Client device subnodes use below standard properties.
allOf: $ref: "/schemas/pinctrl/pincfg-node.yaml"
- $ref: "/schemas/pinctrl/pincfg-node.yaml"
properties: properties:
pins: pins:
......
...@@ -37,21 +37,18 @@ properties: ...@@ -37,21 +37,18 @@ properties:
hwlocks: true hwlocks: true
st,syscfg: st,syscfg:
allOf:
- $ref: "/schemas/types.yaml#/definitions/phandle-array"
description: Should be phandle/offset/mask description: Should be phandle/offset/mask
- Phandle to the syscon node which includes IRQ mux selection. - Phandle to the syscon node which includes IRQ mux selection.
- The offset of the IRQ mux selection register. - The offset of the IRQ mux selection register.
- The field mask of IRQ mux, needed if different of 0xf. - The field mask of IRQ mux, needed if different of 0xf.
$ref: "/schemas/types.yaml#/definitions/phandle-array"
st,package: st,package:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [1, 2, 4, 8]
description: description:
Indicates the SOC package used. Indicates the SOC package used.
More details in include/dt-bindings/pinctrl/stm32-pinfunc.h More details in include/dt-bindings/pinctrl/stm32-pinfunc.h
$ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 2, 4, 8]
patternProperties: patternProperties:
'^gpio@[0-9a-f]*$': '^gpio@[0-9a-f]*$':
...@@ -78,9 +75,10 @@ patternProperties: ...@@ -78,9 +75,10 @@ patternProperties:
maximum: 16 maximum: 16
st,bank-name: st,bank-name:
allOf: description:
- $ref: "/schemas/types.yaml#/definitions/string" Should be a name string for this bank as specified in the datasheet.
- enum: $ref: "/schemas/types.yaml#/definitions/string"
enum:
- GPIOA - GPIOA
- GPIOB - GPIOB
- GPIOC - GPIOC
...@@ -93,18 +91,14 @@ patternProperties: ...@@ -93,18 +91,14 @@ patternProperties:
- GPIOJ - GPIOJ
- GPIOK - GPIOK
- GPIOZ - GPIOZ
description:
Should be a name string for this bank as specified in the datasheet.
st,bank-ioport: st,bank-ioport:
allOf:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- minimum: 0
- maximum: 11
description: description:
Should correspond to the EXTI IOport selection (EXTI line used Should correspond to the EXTI IOport selection (EXTI line used
to select GPIOs as interrupts). to select GPIOs as interrupts).
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 11
required: required:
- gpio-controller - gpio-controller
...@@ -125,8 +119,7 @@ patternProperties: ...@@ -125,8 +119,7 @@ patternProperties:
configuration, pullups, drive, output high/low and output speed. configuration, pullups, drive, output high/low and output speed.
properties: properties:
pinmux: pinmux:
allOf: $ref: "/schemas/types.yaml#/definitions/uint32-array"
- $ref: "/schemas/types.yaml#/definitions/uint32-array"
description: | description: |
Integer array, represents gpio pin number and mux setting. Integer array, represents gpio pin number and mux setting.
Supported pin number and mux varies for different SoCs, and are Supported pin number and mux varies for different SoCs, and are
...@@ -180,9 +173,8 @@ patternProperties: ...@@ -180,9 +173,8 @@ patternProperties:
1: Medium speed 1: Medium speed
2: Fast speed 2: Fast speed
3: High speed 3: High speed
allOf: $ref: /schemas/types.yaml#/definitions/uint32
- $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2, 3]
- enum: [0, 1, 2, 3]
required: required:
- pinmux - pinmux
......
...@@ -56,8 +56,7 @@ properties: ...@@ -56,8 +56,7 @@ properties:
amlogic,ao-sysctrl: amlogic,ao-sysctrl:
description: phandle to the AO sysctrl node description: phandle to the AO sysctrl node
allOf: $ref: /schemas/types.yaml#/definitions/phandle
- $ref: /schemas/types.yaml#/definitions/phandle
required: required:
- compatible - compatible
......
...@@ -78,10 +78,9 @@ properties: ...@@ -78,10 +78,9 @@ properties:
A list of PWM channels used as PWM outputs on particular platform. A list of PWM channels used as PWM outputs on particular platform.
It is an array of up to 5 elements being indices of PWM channels It is an array of up to 5 elements being indices of PWM channels
(from 0 to 4), the order does not matter. (from 0 to 4), the order does not matter.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array uniqueItems: true
- uniqueItems: true items:
- items:
minimum: 0 minimum: 0
maximum: 4 maximum: 4
......
...@@ -46,20 +46,18 @@ properties: ...@@ -46,20 +46,18 @@ properties:
0: LOW 0: LOW
1: HIGH 1: HIGH
Default is LOW if nothing else is specified. Default is LOW if nothing else is specified.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-array
- $ref: /schemas/types.yaml#/definitions/uint32-array maxItems: 8
- maxItems: 8
items: items:
enum: [ 0, 1 ] enum: [0, 1]
default: 0 default: 0
states: states:
description: Selection of available voltages/currents provided by this description: Selection of available voltages/currents provided by this
regulator and matching GPIO configurations to achieve them. If there are regulator and matching GPIO configurations to achieve them. If there are
no states in the "states" array, use a fixed regulator instead. no states in the "states" array, use a fixed regulator instead.
allOf: $ref: /schemas/types.yaml#/definitions/uint32-matrix
- $ref: /schemas/types.yaml#/definitions/uint32-matrix maxItems: 8
- maxItems: 8
items: items:
items: items:
- description: Voltage in microvolts - description: Voltage in microvolts
...@@ -81,9 +79,8 @@ properties: ...@@ -81,9 +79,8 @@ properties:
regulator-type: regulator-type:
description: Specifies what is being regulated. description: Specifies what is being regulated.
allOf: $ref: /schemas/types.yaml#/definitions/string
- $ref: /schemas/types.yaml#/definitions/string enum:
- enum:
- voltage - voltage
- current - current
default: voltage default: voltage
......
...@@ -27,13 +27,11 @@ properties: ...@@ -27,13 +27,11 @@ properties:
patternProperties: patternProperties:
"^buck[1-4]$": "^buck[1-4]$":
allOf: $ref: "regulator.yaml#"
- $ref: "regulator.yaml#"
type: object type: object
"^ldo[1-4]$": "^ldo[1-4]$":
allOf: $ref: "regulator.yaml#"
- $ref: "regulator.yaml#"
type: object type: object
additionalProperties: false additionalProperties: false
......
...@@ -21,17 +21,16 @@ properties: ...@@ -21,17 +21,16 @@ properties:
regulators: regulators:
type: object type: object
allOf: $ref: regulator.yaml#
- $ref: regulator.yaml#
description: | description: |
list of regulators provided by this controller, must be named list of regulators provided by this controller, must be named
after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5] after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5]
properties: properties:
mps,switch-freq: mps,switch-freq:
allOf: $ref: "/schemas/types.yaml#/definitions/uint8"
- $ref: "/schemas/types.yaml#/definitions/uint8" enum: [0, 1, 2, 3]
enum: [ 0, 1, 2, 3 ]
default: 2 default: 2
description: | description: |
switching frequency must be one of following corresponding value switching frequency must be one of following corresponding value
...@@ -40,32 +39,27 @@ properties: ...@@ -40,32 +39,27 @@ properties:
patternProperties: patternProperties:
"^ldo[1-4]$": "^ldo[1-4]$":
type: object type: object
allOf: $ref: regulator.yaml#
- $ref: regulator.yaml#
"^ldortc$": "^ldortc$":
type: object type: object
allOf: $ref: regulator.yaml#
- $ref: regulator.yaml#
"^buck[1-4]$": "^buck[1-4]$":
type: object type: object
allOf: $ref: regulator.yaml#
- $ref: regulator.yaml#
properties: properties:
mps,buck-softstart: mps,buck-softstart:
allOf: $ref: "/schemas/types.yaml#/definitions/uint8"
- $ref: "/schemas/types.yaml#/definitions/uint8" enum: [0, 1, 2, 3]
enum: [ 0, 1, 2, 3 ]
description: | description: |
defines the soft start time of this buck, must be one of the following defines the soft start time of this buck, must be one of the following
corresponding values 150us, 300us, 610us, 920us corresponding values 150us, 300us, 610us, 920us
mps,buck-phase-delay: mps,buck-phase-delay:
allOf: $ref: "/schemas/types.yaml#/definitions/uint8"
- $ref: "/schemas/types.yaml#/definitions/uint8" enum: [0, 1, 2, 3]
enum: [ 0, 1, 2, 3 ]
description: | description: |
defines the phase delay of this buck, must be one of the following defines the phase delay of this buck, must be one of the following
corresponding values 0deg, 90deg, 180deg, 270deg corresponding values 0deg, 90deg, 180deg, 270deg
......
...@@ -123,9 +123,8 @@ properties: ...@@ -123,9 +123,8 @@ properties:
0: Disable active discharge. 0: Disable active discharge.
1: Enable active discharge. 1: Enable active discharge.
Absence of this property will leave configuration to default. Absence of this property will leave configuration to default.
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" enum: [0, 1]
- enum: [ 0, 1 ]
regulator-coupled-with: regulator-coupled-with:
description: Regulators with which the regulator is coupled. The linkage description: Regulators with which the regulator is coupled. The linkage
......
...@@ -24,10 +24,9 @@ description: | ...@@ -24,10 +24,9 @@ description: |
patternProperties: patternProperties:
"^LDO[1-7]$": "^LDO[1-7]$":
type: object type: object
allOf:
- $ref: regulator.yaml#
description: description:
Properties for single LDO regulator. Properties for single LDO regulator.
$ref: regulator.yaml#
properties: properties:
regulator-name: regulator-name:
...@@ -39,10 +38,9 @@ patternProperties: ...@@ -39,10 +38,9 @@ patternProperties:
"^BUCK[1-7]$": "^BUCK[1-7]$":
type: object type: object
allOf:
- $ref: regulator.yaml#
description: description:
Properties for single BUCK regulator. Properties for single BUCK regulator.
$ref: regulator.yaml#
properties: properties:
regulator-name: regulator-name:
...@@ -51,40 +49,36 @@ patternProperties: ...@@ -51,40 +49,36 @@ patternProperties:
should be "buck1", ..., "buck7" should be "buck1", ..., "buck7"
rohm,dvs-run-voltage: rohm,dvs-run-voltage:
allOf:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- minimum: 0
maximum: 3300000
description: description:
PMIC default "RUN" state voltage in uV. See below table for PMIC default "RUN" state voltage in uV. See below table for
bucks which support this. 0 means disabled. bucks which support this. 0 means disabled.
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 3300000
rohm,dvs-idle-voltage: rohm,dvs-idle-voltage:
allOf:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- minimum: 0
maximum: 3300000
description: description:
PMIC default "IDLE" state voltage in uV. See below table for PMIC default "IDLE" state voltage in uV. See below table for
bucks which support this. 0 means disabled. bucks which support this. 0 means disabled.
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 3300000
rohm,dvs-suspend-voltage: rohm,dvs-suspend-voltage:
allOf:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- minimum: 0
maximum: 3300000
description: description:
PMIC default "SUSPEND" state voltage in uV. See below table for PMIC default "SUSPEND" state voltage in uV. See below table for
bucks which support this. 0 means disabled. bucks which support this. 0 means disabled.
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 3300000
rohm,dvs-lpsr-voltage: rohm,dvs-lpsr-voltage:
allOf:
- $ref: "/schemas/types.yaml#/definitions/uint32"
- minimum: 0
maximum: 3300000
description: description:
PMIC default "LPSR" state voltage in uV. See below table for PMIC default "LPSR" state voltage in uV. See below table for
bucks which support this. 0 means disabled. bucks which support this. 0 means disabled.
$ref: "/schemas/types.yaml#/definitions/uint32"
minimum: 0
maximum: 3300000
# Supported default DVS states: # Supported default DVS states:
# buck | run | idle | suspend | lpsr # buck | run | idle | suspend | lpsr
......
...@@ -30,8 +30,7 @@ description: | ...@@ -30,8 +30,7 @@ description: |
patternProperties: patternProperties:
"^LDO[1-7]$": "^LDO[1-7]$":
type: object type: object
allOf: $ref: regulator.yaml#
- $ref: regulator.yaml#
description: description:
Properties for single LDO regulator. Properties for single LDO regulator.
...@@ -45,8 +44,7 @@ patternProperties: ...@@ -45,8 +44,7 @@ patternProperties:
"^BUCK[1-8]$": "^BUCK[1-8]$":
type: object type: object
allOf: $ref: regulator.yaml#
- $ref: regulator.yaml#
description: description:
Properties for single BUCK regulator. Properties for single BUCK regulator.
...@@ -57,27 +55,24 @@ patternProperties: ...@@ -57,27 +55,24 @@ patternProperties:
should be "buck1", ..., "buck8" should be "buck1", ..., "buck8"
rohm,dvs-run-voltage: rohm,dvs-run-voltage:
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0
maximum: 1300000 maximum: 1300000
description: description:
PMIC default "RUN" state voltage in uV. See below table for PMIC default "RUN" state voltage in uV. See below table for
bucks which support this. 0 means disabled. bucks which support this. 0 means disabled.
rohm,dvs-idle-voltage: rohm,dvs-idle-voltage:
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0
maximum: 1300000 maximum: 1300000
description: description:
PMIC default "IDLE" state voltage in uV. See below table for PMIC default "IDLE" state voltage in uV. See below table for
bucks which support this. 0 means disabled. bucks which support this. 0 means disabled.
rohm,dvs-suspend-voltage: rohm,dvs-suspend-voltage:
allOf: $ref: "/schemas/types.yaml#/definitions/uint32"
- $ref: "/schemas/types.yaml#/definitions/uint32" minimum: 0
- minimum: 0
maximum: 1300000 maximum: 1300000
description: description:
PMIC default "SUSPEND" state voltage in uV. See below table for PMIC default "SUSPEND" state voltage in uV. See below table for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment