Skip to content

Commit e1dff7f

Browse files
committed
dt-bindings: memory-controllers: ingenic: Split out child node properties
Binding schemas which define child node properties such as memory controllers with timing properties need a separate schema which can be referenced from child device schemas. This is necessary for unevaluatedProperties checks to work properly. Move the ingenic,nemc child properties to its own file and reference from ingenic,nand.yaml which describes a child NAND controller. Signed-off-by: Rob Herring <[email protected]> Acked-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bbba69e commit e1dff7f

File tree

3 files changed

+47
-32
lines changed

3 files changed

+47
-32
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/memory-controllers/ingenic,nemc-peripherals.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Ingenic SoCs NAND / External Memory Controller (NEMC) devicetree bindings
8+
9+
maintainers:
10+
- Paul Cercueil <[email protected]>
11+
12+
properties:
13+
reg:
14+
minItems: 1
15+
maxItems: 255
16+
17+
ingenic,nemc-bus-width:
18+
$ref: /schemas/types.yaml#/definitions/uint32
19+
enum: [8, 16]
20+
description: Specifies the bus width in bits.
21+
22+
ingenic,nemc-tAS:
23+
$ref: /schemas/types.yaml#/definitions/uint32
24+
description: Address setup time in nanoseconds.
25+
26+
ingenic,nemc-tAH:
27+
$ref: /schemas/types.yaml#/definitions/uint32
28+
description: Address hold time in nanoseconds.
29+
30+
ingenic,nemc-tBP:
31+
$ref: /schemas/types.yaml#/definitions/uint32
32+
description: Burst pitch time in nanoseconds.
33+
34+
ingenic,nemc-tAW:
35+
$ref: /schemas/types.yaml#/definitions/uint32
36+
description: Address wait time in nanoseconds.
37+
38+
ingenic,nemc-tSTRV:
39+
$ref: /schemas/types.yaml#/definitions/uint32
40+
description: Static memory recovery time in nanoseconds.
41+
42+
required:
43+
- reg
44+
45+
additionalProperties: true
46+
...

Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -39,38 +39,6 @@ properties:
3939
patternProperties:
4040
".*@[0-9]+$":
4141
type: object
42-
properties:
43-
reg:
44-
minItems: 1
45-
maxItems: 255
46-
47-
ingenic,nemc-bus-width:
48-
$ref: /schemas/types.yaml#/definitions/uint32
49-
enum: [8, 16]
50-
description: Specifies the bus width in bits.
51-
52-
ingenic,nemc-tAS:
53-
$ref: /schemas/types.yaml#/definitions/uint32
54-
description: Address setup time in nanoseconds.
55-
56-
ingenic,nemc-tAH:
57-
$ref: /schemas/types.yaml#/definitions/uint32
58-
description: Address hold time in nanoseconds.
59-
60-
ingenic,nemc-tBP:
61-
$ref: /schemas/types.yaml#/definitions/uint32
62-
description: Burst pitch time in nanoseconds.
63-
64-
ingenic,nemc-tAW:
65-
$ref: /schemas/types.yaml#/definitions/uint32
66-
description: Address wait time in nanoseconds.
67-
68-
ingenic,nemc-tSTRV:
69-
$ref: /schemas/types.yaml#/definitions/uint32
70-
description: Static memory recovery time in nanoseconds.
71-
72-
required:
73-
- reg
7442

7543
required:
7644
- compatible

Documentation/devicetree/bindings/mtd/ingenic,nand.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ maintainers:
1111

1212
allOf:
1313
- $ref: nand-controller.yaml#
14+
- $ref: /schemas/memory-controllers/ingenic,nemc-peripherals.yaml#
1415

1516
properties:
1617
compatible:

0 commit comments

Comments
 (0)