Skip to content

Commit 15ffef1

Browse files
committed
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 <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Brian Norris <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Vignesh Raghavendra <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Acked-by: Miquel Raynal <[email protected]> Acked-by: Maxime Ripard <[email protected]> Acked-by: Mark Brown <[email protected]> Acked-by: Alexandre TORGUE <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent abdfd52 commit 15ffef1

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

Documentation/devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ properties:
4242

4343
patternProperties:
4444
"^.*@[0-9a-fA-F]+$":
45+
type: object
4546
properties:
4647
reg:
4748
maxItems: 1

Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ patternProperties:
5555
"^pinctrl-[0-9]+$": true
5656

5757
"^nand@[a-f0-9]+$":
58+
type: object
5859
properties:
5960
reg:
6061
minimum: 0

Documentation/devicetree/bindings/mtd/nand-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ properties:
4040

4141
patternProperties:
4242
"^nand@[a-f0-9]$":
43+
type: object
4344
properties:
4445
reg:
4546
description:

Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ properties:
5555

5656
patternProperties:
5757
'^gpio@[0-9a-f]*$':
58+
type: object
5859
properties:
5960
gpio-controller: true
6061
'#gpio-cells':
@@ -113,8 +114,10 @@ patternProperties:
113114
- st,bank-name
114115

115116
'-[0-9]*$':
117+
type: object
116118
patternProperties:
117119
'^pins':
120+
type: object
118121
description: |
119122
A pinctrl node should contain at least one subnode representing the
120123
pinctrl group available on the machine. Each subnode will list the

Documentation/devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ properties:
5050

5151
patternProperties:
5252
"^.*@[0-9a-f]+":
53+
type: object
5354
properties:
5455
reg:
5556
items:

Documentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ properties:
5555

5656
patternProperties:
5757
"^.*@[0-9a-f]+":
58+
type: object
5859
properties:
5960
reg:
6061
items:

0 commit comments

Comments
 (0)