History

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.

Rob Herring committed 4 years ago

Commit e1dff7f1 parent bbba69e3 files · +47 −32Browse files

Unified · Split

3 files
  1. Documentation/devicetree/bindings/memory-controllers/ingenic,nemc-peripherals.yaml +46 −0
  2. Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml +0 −32
  3. Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +1 −0
Documentation/devicetree/bindings/memory-controllers/ingenic,nemc-peripherals.yaml+46−0
@@ -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
7title: Ingenic SoCs NAND / External Memory Controller (NEMC) devicetree bindings
8
9maintainers:
10 - Paul Cercueil <paul@crapouillou.net>
11
12properties:
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
42required:
43 - reg
44
45additionalProperties: true
46...
Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml+0−32
@@ -39,38 +39,6 @@ properties: · 38 unmodified lines
39patternProperties:39patternProperties:
40 ".*@[0-9]+$":40 ".*@[0-9]+$":
41 type: object41 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
74 42
75required:43required:
76 - compatible44 - compatible
Documentation/devicetree/bindings/mtd/ingenic,nand.yaml+1−0
@@ -11,6 +11,7 @@ maintainers: · 10 unmodified lines
11 11
12allOf:12allOf:
13 - $ref: nand-controller.yaml#13 - $ref: nand-controller.yaml#
14 - $ref: /schemas/memory-controllers/ingenic,nemc-peripherals.yaml#
14 15
15properties:16properties:
16 compatible:17 compatible:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t