提交 15ffef1a 编写于 作者: R Rob Herring

dt-bindings: Ensure child nodes are of type 'object'

Properties which are child node definitions need to have an explict
type. Otherwise, a matching (DT) property can silently match when an
error is desired. Fix this up tree-wide. Once this is fixed, the
meta-schema will enforce this on any child node definitions.

Cc: Chen-Yu Tsai <wens@csie.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: linux-mtd@lists.infradead.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-stm32@st-md-mailman.stormreply.com
Cc: linux-spi@vger.kernel.org
Acked-by: NMiquel Raynal <miquel.raynal@bootlin.com>
Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
Acked-by: NMark Brown <broonie@kernel.org>
Acked-by: NAlexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 abdfd52a
...@@ -42,6 +42,7 @@ properties: ...@@ -42,6 +42,7 @@ properties:
patternProperties: patternProperties:
"^.*@[0-9a-fA-F]+$": "^.*@[0-9a-fA-F]+$":
type: object
properties: properties:
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -55,6 +55,7 @@ patternProperties: ...@@ -55,6 +55,7 @@ patternProperties:
"^pinctrl-[0-9]+$": true "^pinctrl-[0-9]+$": true
"^nand@[a-f0-9]+$": "^nand@[a-f0-9]+$":
type: object
properties: properties:
reg: reg:
minimum: 0 minimum: 0
......
...@@ -40,6 +40,7 @@ properties: ...@@ -40,6 +40,7 @@ properties:
patternProperties: patternProperties:
"^nand@[a-f0-9]$": "^nand@[a-f0-9]$":
type: object
properties: properties:
reg: reg:
description: description:
......
...@@ -55,6 +55,7 @@ properties: ...@@ -55,6 +55,7 @@ properties:
patternProperties: patternProperties:
'^gpio@[0-9a-f]*$': '^gpio@[0-9a-f]*$':
type: object
properties: properties:
gpio-controller: true gpio-controller: true
'#gpio-cells': '#gpio-cells':
...@@ -113,8 +114,10 @@ patternProperties: ...@@ -113,8 +114,10 @@ patternProperties:
- st,bank-name - st,bank-name
'-[0-9]*$': '-[0-9]*$':
type: object
patternProperties: patternProperties:
'^pins': '^pins':
type: object
description: | description: |
A pinctrl node should contain at least one subnode representing the A pinctrl node should contain at least one subnode representing the
pinctrl group available on the machine. Each subnode will list the pinctrl group available on the machine. Each subnode will list the
......
...@@ -50,6 +50,7 @@ properties: ...@@ -50,6 +50,7 @@ properties:
patternProperties: patternProperties:
"^.*@[0-9a-f]+": "^.*@[0-9a-f]+":
type: object
properties: properties:
reg: reg:
items: items:
......
...@@ -55,6 +55,7 @@ properties: ...@@ -55,6 +55,7 @@ properties:
patternProperties: patternProperties:
"^.*@[0-9a-f]+": "^.*@[0-9a-f]+":
type: object
properties: properties:
reg: reg:
items: items:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册