forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'devicetree-fixes-for-5.3' of git://git.kernel.org/pub/scm/…
…linux/kernel/git/robh/linux Pull Devicetree fixes from Rob Herring: "Fix several warnings/errors in validation of binding schemas" * tag 'devicetree-fixes-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: dt-bindings: pinctrl: stm32: Fix missing 'clocks' property in examples dt-bindings: iio: ad7124: Fix dtc warnings in example dt-bindings: iio: avia-hx711: Fix avdd-supply typo in example dt-bindings: pinctrl: aspeed: Fix AST2500 example errors dt-bindings: pinctrl: aspeed: Fix 'compatible' schema errors dt-bindings: riscv: Limit cpus schema to only check RiscV 'cpu' nodes dt-bindings: Ensure child nodes are of type 'object'
- Loading branch information
Showing
11 changed files
with
119 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ properties: | |
|
||
patternProperties: | ||
"^.*@[0-9a-fA-F]+$": | ||
type: object | ||
properties: | ||
reg: | ||
maxItems: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ properties: | |
|
||
patternProperties: | ||
"^nand@[a-f0-9]$": | ||
type: object | ||
properties: | ||
reg: | ||
description: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,97 +10,76 @@ maintainers: | |
- Paul Walmsley <[email protected]> | ||
- Palmer Dabbelt <[email protected]> | ||
|
||
allOf: | ||
- $ref: /schemas/cpus.yaml# | ||
|
||
properties: | ||
$nodename: | ||
const: cpus | ||
description: Container of cpu nodes | ||
|
||
'#address-cells': | ||
const: 1 | ||
description: | | ||
A single unsigned 32-bit integer uniquely identifies each RISC-V | ||
hart in a system. (See the "reg" node under the "cpu" node, | ||
below). | ||
'#size-cells': | ||
const: 0 | ||
compatible: | ||
items: | ||
- enum: | ||
- sifive,rocket0 | ||
- sifive,e5 | ||
- sifive,e51 | ||
- sifive,u54-mc | ||
- sifive,u54 | ||
- sifive,u5 | ||
- const: riscv | ||
description: | ||
Identifies that the hart uses the RISC-V instruction set | ||
and identifies the type of the hart. | ||
|
||
mmu-type: | ||
allOf: | ||
- $ref: "/schemas/types.yaml#/definitions/string" | ||
- enum: | ||
- riscv,sv32 | ||
- riscv,sv39 | ||
- riscv,sv48 | ||
description: | ||
Identifies the MMU address translation mode used on this | ||
hart. These values originate from the RISC-V Privileged | ||
Specification document, available from | ||
https://riscv.org/specifications/ | ||
|
||
riscv,isa: | ||
allOf: | ||
- $ref: "/schemas/types.yaml#/definitions/string" | ||
- enum: | ||
- rv64imac | ||
- rv64imafdc | ||
description: | ||
Identifies the specific RISC-V instruction set architecture | ||
supported by the hart. These are documented in the RISC-V | ||
User-Level ISA document, available from | ||
https://riscv.org/specifications/ | ||
|
||
timebase-frequency: | ||
type: integer | ||
minimum: 1 | ||
description: | ||
Specifies the clock frequency of the system timer in Hz. | ||
This value is common to all harts on a single system image. | ||
|
||
interrupt-controller: | ||
type: object | ||
description: Describes the CPU's local interrupt controller | ||
|
||
patternProperties: | ||
'^cpu@[0-9a-f]+$': | ||
properties: | ||
compatible: | ||
type: array | ||
items: | ||
- enum: | ||
- sifive,rocket0 | ||
- sifive,e5 | ||
- sifive,e51 | ||
- sifive,u54-mc | ||
- sifive,u54 | ||
- sifive,u5 | ||
- const: riscv | ||
description: | ||
Identifies that the hart uses the RISC-V instruction set | ||
and identifies the type of the hart. | ||
|
||
mmu-type: | ||
allOf: | ||
- $ref: "/schemas/types.yaml#/definitions/string" | ||
- enum: | ||
- riscv,sv32 | ||
- riscv,sv39 | ||
- riscv,sv48 | ||
description: | ||
Identifies the MMU address translation mode used on this | ||
hart. These values originate from the RISC-V Privileged | ||
Specification document, available from | ||
https://riscv.org/specifications/ | ||
|
||
riscv,isa: | ||
allOf: | ||
- $ref: "/schemas/types.yaml#/definitions/string" | ||
- enum: | ||
- rv64imac | ||
- rv64imafdc | ||
description: | ||
Identifies the specific RISC-V instruction set architecture | ||
supported by the hart. These are documented in the RISC-V | ||
User-Level ISA document, available from | ||
https://riscv.org/specifications/ | ||
'#interrupt-cells': | ||
const: 1 | ||
|
||
timebase-frequency: | ||
type: integer | ||
minimum: 1 | ||
description: | ||
Specifies the clock frequency of the system timer in Hz. | ||
This value is common to all harts on a single system image. | ||
|
||
interrupt-controller: | ||
type: object | ||
description: Describes the CPU's local interrupt controller | ||
|
||
properties: | ||
'#interrupt-cells': | ||
const: 1 | ||
|
||
compatible: | ||
const: riscv,cpu-intc | ||
|
||
interrupt-controller: true | ||
compatible: | ||
const: riscv,cpu-intc | ||
|
||
required: | ||
- '#interrupt-cells' | ||
- compatible | ||
- interrupt-controller | ||
interrupt-controller: true | ||
|
||
required: | ||
- riscv,isa | ||
- timebase-frequency | ||
- '#interrupt-cells' | ||
- compatible | ||
- interrupt-controller | ||
|
||
required: | ||
- riscv,isa | ||
- timebase-frequency | ||
- interrupt-controller | ||
|
||
examples: | ||
- | | ||
// Example 1: SiFive Freedom U540G Development Kit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ properties: | |
|
||
patternProperties: | ||
"^.*@[0-9a-f]+": | ||
type: object | ||
properties: | ||
reg: | ||
items: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ properties: | |
|
||
patternProperties: | ||
"^.*@[0-9a-f]+": | ||
type: object | ||
properties: | ||
reg: | ||
items: | ||
|