2018-07-31 18:31:44 +02:00
|
|
|
# Copyright (c) 2018, SiFive Inc.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-06-19 00:03:49 +02:00
|
|
|
|
dts: edtlib: Sanity-check the final merged binding only
Sanity-checking each !included file separately was inherited from the
old scripts. It makes it messy to check that combinations of fields make
sense, e.g. to check 'const:' or 'default:' against 'type:', since those
fields might come from different files (this is handy, since it makes
sense to just add/change a 'const:' value, for example).
Drop the requirement that each !included file is a complete binding in
itself, and treat them as binding fragments instead. Only check the
final merged binding.
This also means that !included files no longer need to have a
'description:' or 'title:' (those have always been unused for !included
files), so remove those, and add comments that explain what the
fragments are for instead. That should demystify bindings a bit.
Also fix the descriptions of i2c.yaml, i2s.yaml, spi.yaml, and
uart.yaml. They're for controllers, not devices. These are copy-paste
error from the corresponding device .yaml files.
Piggyback some indentation consistency nits in binding-template.yaml.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-08-15 14:06:15 +02:00
|
|
|
# Common fields for the RISC-V platform-local interrupt controller
|
2018-07-31 18:31:44 +02:00
|
|
|
|
2019-08-22 01:10:12 +02:00
|
|
|
include: [interrupt-controller.yaml, base.yaml]
|
2019-06-07 18:12:49 +02:00
|
|
|
|
2018-07-31 18:31:44 +02:00
|
|
|
properties:
|
|
|
|
reg:
|
2023-01-03 20:21:25 +01:00
|
|
|
required: true
|
2018-07-31 18:31:44 +02:00
|
|
|
|
|
|
|
riscv,max-priority:
|
2023-01-03 20:21:25 +01:00
|
|
|
type: int
|
|
|
|
description: maximum interrupt priority
|
|
|
|
required: true
|
2018-07-31 18:31:44 +02:00
|
|
|
|
2019-08-09 21:54:26 +02:00
|
|
|
"#interrupt-cells":
|
2023-01-03 20:21:25 +01:00
|
|
|
const: 2
|
2019-08-09 21:54:26 +02:00
|
|
|
|
2019-09-26 20:34:13 +02:00
|
|
|
interrupt-cells:
|
2018-07-31 18:31:44 +02:00
|
|
|
- irq
|
2020-11-25 18:14:29 +01:00
|
|
|
- priority
|