Fixed string node names should be under 'properties' rather than 'patternProperties'. Additionally, without beginning and end of line anchors, any prefix or suffix is allowed on the specified node name. Move the stm32 timers 'counter' and 'timer' nodes to the 'properties' section.
Unified · Split
| @@ -58,43 +58,43 @@ properties: · 57 unmodified lines | |||
| 58 | - "#pwm-cells" | 58 | - "#pwm-cells" |
| 59 | - compatible | 59 | - compatible |
| 60 | 60 | ||
| 61 | patternProperties: | 61 | counter: |
| 62 | "^trigger@[0-9]+$": | ||
| 63 | type: object | 62 | type: object |
| 64 | 63 | ||
| 65 | properties: | 64 | properties: |
| 66 | compatible: | 65 | compatible: |
| 67 | const: st,stm32-lptimer-trigger | 66 | const: st,stm32-lptimer-counter |
| 68 | |||
| 69 | reg: | ||
| 70 | description: Identify trigger hardware block. | ||
| 71 | items: | ||
| 72 | minimum: 0 | ||
| 73 | maximum: 2 | ||
| 74 | 67 | ||
| 75 | required: | 68 | required: |
| 76 | - compatible | 69 | - compatible |
| 77 | - reg | ||
| 78 | 70 | ||
| 79 | counter: | 71 | timer: |
| 80 | type: object | 72 | type: object |
| 81 | 73 | ||
| 82 | properties: | 74 | properties: |
| 83 | compatible: | 75 | compatible: |
| 84 | const: st,stm32-lptimer-counter | 76 | const: st,stm32-lptimer-timer |
| 85 | 77 | ||
| 86 | required: | 78 | required: |
| 87 | - compatible | 79 | - compatible |
| 88 | 80 | ||
| 89 | timer: | 81 | patternProperties: |
| 82 | "^trigger@[0-9]+$": | ||
| 90 | type: object | 83 | type: object |
| 91 | 84 | ||
| 92 | properties: | 85 | properties: |
| 93 | compatible: | 86 | compatible: |
| 94 | const: st,stm32-lptimer-timer | 87 | const: st,stm32-lptimer-trigger |
| 88 | |||
| 89 | reg: | ||
| 90 | description: Identify trigger hardware block. | ||
| 91 | items: | ||
| 92 | minimum: 0 | ||
| 93 | maximum: 2 | ||
| 95 | 94 | ||
| 96 | required: | 95 | required: |
| 97 | - compatible | 96 | - compatible |
| 97 | - reg | ||
| 98 | 98 | ||
| 99 | required: | 99 | required: |
| 100 | - "#address-cells" | 100 | - "#address-cells" |
| @@ -102,6 +102,16 @@ properties: · 101 unmodified lines | |||
| 102 | - "#pwm-cells" | 102 | - "#pwm-cells" |
| 103 | - compatible | 103 | - compatible |
| 104 | 104 | ||
| 105 | counter: | ||
| 106 | type: object | ||
| 107 | |||
| 108 | properties: | ||
| 109 | compatible: | ||
| 110 | const: st,stm32-timer-counter | ||
| 111 | |||
| 112 | required: | ||
| 113 | - compatible | ||
| 114 | |||
| 105 | patternProperties: | 115 | patternProperties: |
| 106 | "^timer@[0-9]+$": | 116 | "^timer@[0-9]+$": |
| 107 | type: object | 117 | type: object |
| @@ -122,16 +132,6 @@ patternProperties: · 14 unmodified lines | |||
| 122 | - compatible | 132 | - compatible |
| 123 | - reg | 133 | - reg |
| 124 | 134 | ||
| 125 | counter: | ||
| 126 | type: object | ||
| 127 | |||
| 128 | properties: | ||
| 129 | compatible: | ||
| 130 | const: st,stm32-timer-counter | ||
| 131 | |||
| 132 | required: | ||
| 133 | - compatible | ||
| 134 | |||
| 135 | required: | 135 | required: |
| 136 | - compatible | 136 | - compatible |
| 137 | - reg | 137 | - reg |