Rob Herring
0499220d6d
dt-bindings: Add missing array size constraints
...
DT properties which can have multiple entries need to specify what the
entries are and define how many entries there can be. In the case of
only a single entry, just 'maxItems: 1' is sufficient.
Add the missing entry constraints. These were found with a modified
meta-schema. Unfortunately, there are a few cases where the size
constraints are not defined such as common bindings, so the meta-schema
can't be part of the normal checks.
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Stephen Boyd <sboyd@kernel.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: MyungJoo Ham <myungjoo.ham@samsung.com >
Cc: Chanwoo Choi <cw00.choi@samsung.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Cc: Jonathan Cameron <jic23@kernel.org >
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Marc Zyngier <maz@kernel.org >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: Chen-Yu Tsai <wens@csie.org >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Jakub Kicinski <kuba@kernel.org >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Ohad Ben-Cohen <ohad@wizery.com >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Sebastian Reichel <sre@kernel.org >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > #for-iio
Acked-by: Chanwoo Choi <cw00.choi@samsung.com >
Reviewed-by: Suman Anna <s-anna@ti.com >
Acked-by: Paul Cercueil <paul@crapouillou.net >
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20210104230253.2805217-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-01-11 17:42:25 -06:00
Rob Herring
62298364bd
dt-bindings: Explicitly allow additional properties in board/SoC schemas
...
In order to add meta-schema checks for additional/unevaluatedProperties
being present, all schema need to make this explicit. As the top-level
board/SoC schemas always have additional properties, add
'additionalProperties: true'.
Acked-by: Krzysztof Kozlowski <krzk@kernel.org >
Acked-by: Viresh Kumar <viresh.kumar@linaro.org >
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be >
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20201005183830.486085-4-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2020-10-26 16:13:56 -05:00
Linus Torvalds
571d54ed91
Merge tag 'devicetree-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
...
Pull devicetree updates from Rob Herring:
- Convert various DT (non-binding) doc files to ReST
- Various improvements to device link code
- Fix __of_attach_node_sysfs refcounting bug
- Add support for 'memory-region-names' with reserved-memory binding
- Vendor prefixes for Protonic Holland, BeagleBoard.org, Alps, Check
Point, Würth Elektronik, U-Boot, Vaisala, Baikal Electronics,
Shanghai Awinic Technology Co., MikroTik, Silex Insight
- A bunch more binding conversions to DT schema. Only 3K to go.
- Add a minimum version check for schema tools
- Treewide dropping of 'allOf' usage with schema references. Not needed
in new json-schema spec.
- Some formatting clean-ups of schemas
* tag 'devicetree-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (194 commits)
dt-bindings: clock: Add documentation for X1830 bindings.
dt-bindings: mailbox: Convert imx mu to json-schema
dt-bindings: power: Convert imx gpcv2 to json-schema
dt-bindings: power: Convert imx gpc to json-schema
dt-bindings: Merge gpio-usb-b-connector with usb-connector
dt-bindings: timer: renesas: cmt: Convert to json-schema
dt-bindings: clock: Convert i.MX8QXP LPCG to json-schema
dt-bindings: timer: Convert i.MX GPT to json-schema
dt-bindings: thermal: rcar-thermal: Add device tree support for r8a7742
dt-bindings: serial: Add binding for UART pin swap
dt-bindings: geni-se: Add interconnect binding for GENI QUP
dt-bindings: geni-se: Convert QUP geni-se bindings to YAML
dt-bindings: vendor-prefixes: Add Silex Insight vendor prefix
dt-bindings: input: touchscreen: edt-ft5x06: change reg property
dt-bindings: usb: qcom,dwc3: Introduce interconnect properties for Qualcomm DWC3 driver
dt-bindings: timer: renesas: mtu2: Convert to json-schema
of/fdt: Remove redundant kbasename function call
dt-bindings: clock: Convert i.MX1 clock to json-schema
dt-bindings: clock: Convert i.MX21 clock to json-schema
dt-bindings: clock: Convert i.MX25 clock to json-schema
...
2020-06-04 20:11:25 -07:00
Masami Hiramatsu
82ab9b6705
dt-bindings: arm: Add Akebi96 board support
...
Add uniphier-ld20-akebi96 compatible string for
Akebi96 board support.
Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org >
2020-05-04 10:07:35 +09:00
Rob Herring
9f60a65bc5
dt-bindings: Clean-up schema indentation formatting
...
Fix various inconsistencies in schema indentation. Most of these are
list indentation which should be 2 spaces more than the start of the
enclosing keyword. This doesn't matter functionally, but affects running
scripts which do transforms on the schema files.
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Maxime Ripard <mripard@kernel.org >
Acked-by: Lee Jones <lee.jones@linaro.org >
Acked-By: Vinod Koul <vkoul@kernel.org >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Signed-off-by: Rob Herring <robh@kernel.org >
2020-04-16 16:59:22 -05:00
Masahiro Yamada
c5f3f6ab5b
dt-bindings: arm: Convert UniPhier System Cache to json-schema
...
Convert the UniPhier System Cache binding to DT schema format.
This is a full-custom outer cache (L2 and L3) used on UniPhier
ARM 32-bit SoCs.
While I was here, I added the interrupts property. This is not
used in Linux, but the hardware has interrupt lines at least.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Signed-off-by: Rob Herring <robh@kernel.org >
2020-03-04 14:00:09 -06:00
Masahiro Yamada
4dcd55fd70
dt-bindings: arm: Convert UniPhier board/SoC bindings to json-schema
...
Convert the Socionext UniPhier board/SoC binding to DT schema format.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Signed-off-by: Rob Herring <robh@kernel.org >
2020-02-26 16:06:17 -06:00
Rob Herring
e1ff7390f5
dt-bindings: Fix more $id value mismatches filenames
...
The path in the schema '$id' values are wrong. Fix them.
Signed-off-by: Rob Herring <robh@kernel.org >
2019-07-26 17:41:41 -06:00
Sugaya Taichi
f2a3aa163c
dt-bindings: Add documentation for Milbeaut SoCs
...
This adds a DT binding documentation for the M10V and its evaluation
board.
Signed-off-by: Sugaya Taichi <sugaya.taichi@socionext.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
2019-03-01 15:18:26 +01:00
Masahiro Yamada
1c36155a80
dt-bindings: uniphier: move cache-uniphier.txt to vendor directory
...
Now, the Socionext vendor directory is available at
Documentation/devicetree/bindings/arm/socionext/
Move cache-uniphier.txt over to it.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Reviewed-by: Rob Herring <robh@kernel.org >
2018-11-27 00:32:04 +09:00
Masahiro Yamada
4b5d90f408
dt-bindings: uniphier: add bindings for UniPhier SoC family
...
Document the list of SoCs and boards of UniPhier platform.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Reviewed-by: Rob Herring <robh@kernel.org >
2018-11-27 00:32:00 +09:00