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 | 58 | - "#pwm-cells" |
| 59 | 59 | - compatible |
| 60 | 60 | |
| 61 | −patternProperties: | |
| 62 | − "^trigger@[0-9]+$": | |
| 61 | + counter: | |
| 63 | 62 | type: object |
| 64 | 63 | |
| 65 | 64 | properties: |
| 66 | 65 | compatible: |
| 67 | − const: st,stm32-lptimer-trigger | |
| 68 | − | |
| 69 | − reg: | |
| 70 | − description: Identify trigger hardware block. | |
| 71 | − items: | |
| 72 | − minimum: 0 | |
| 73 | − maximum: 2 | |
| 66 | + const: st,stm32-lptimer-counter | |
| 74 | 67 | |
| 75 | 68 | required: |
| 76 | 69 | - compatible |
| 77 | − - reg | |
| 78 | 70 | |
| 79 | − counter: | |
| 71 | + timer: | |
| 80 | 72 | type: object |
| 81 | 73 | |
| 82 | 74 | properties: |
| 83 | 75 | compatible: |
| 84 | − const: st,stm32-lptimer-counter | |
| 76 | + const: st,stm32-lptimer-timer | |
| 85 | 77 | |
| 86 | 78 | required: |
| 87 | 79 | - compatible |
| 88 | 80 | |
| 89 | − timer: | |
| 81 | +patternProperties: | |
| 82 | + "^trigger@[0-9]+$": | |
| 90 | 83 | type: object |
| 91 | 84 | |
| 92 | 85 | properties: |
| 93 | 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 | 95 | required: |
| 97 | 96 | - compatible |
| 97 | + - reg | |
| 98 | 98 | |
| 99 | 99 | required: |
| 100 | 100 | - "#address-cells" |
| @@ -102,6 +102,16 @@ properties: · 101 unmodified lines | ||
| 102 | 102 | - "#pwm-cells" |
| 103 | 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 | 115 | patternProperties: |
| 106 | 116 | "^timer@[0-9]+$": |
| 107 | 117 | type: object |
| @@ -122,16 +132,6 @@ patternProperties: · 14 unmodified lines | ||
| 122 | 132 | - compatible |
| 123 | 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 | 135 | required: |
| 136 | 136 | - compatible |
| 137 | 137 | - reg |