2018-02-28 17:37:41 +08:00
|
|
|
# Copyright (c) 2017 I-SENSE group of ICCS
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-06-19 06:03:49 +08: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 20:06:15 +08:00
|
|
|
# Common fields for I2C controllers
|
2017-06-29 22:20:30 +08:00
|
|
|
|
2019-08-22 07:10:12 +08:00
|
|
|
include: base.yaml
|
2019-06-08 00:12:49 +08:00
|
|
|
|
2019-09-16 22:42:18 +08:00
|
|
|
child-bus: i2c
|
2017-10-19 22:31:44 +08:00
|
|
|
|
2017-06-29 22:20:30 +08:00
|
|
|
properties:
|
2017-11-23 15:48:10 +08:00
|
|
|
"#address-cells":
|
2019-08-28 06:22:01 +08:00
|
|
|
required: true
|
2019-08-10 03:54:26 +08:00
|
|
|
const: 1
|
2017-11-23 15:48:10 +08:00
|
|
|
"#size-cells":
|
2019-08-28 06:22:01 +08:00
|
|
|
required: true
|
2019-08-10 03:54:26 +08:00
|
|
|
const: 0
|
2017-11-23 15:48:10 +08:00
|
|
|
clock-frequency :
|
2017-06-29 22:20:30 +08:00
|
|
|
type: int
|
2019-08-28 06:22:01 +08:00
|
|
|
required: false
|
2017-08-11 00:22:24 +08:00
|
|
|
description: Initial clock frequency in Hz
|
2017-11-23 15:48:10 +08:00
|
|
|
label:
|
2019-08-28 06:22:01 +08:00
|
|
|
required: true
|