Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mfd: allwinner: prcm: Simplify conditional schemas

There's no need for 'additionalProperties' in the if/then schema as there's
already 'unevaluatedProperties' in the parent schema. With
'additionalProperties' dropped, 'compatible' and 'phandle' don't need
to be listed in the conditional schemas as 'compatible' is already in
the main section and 'phandle' will be implicitly added.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230726033554.174365-1-robh@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Rob Herring and committed by
Lee Jones
881e367a 789c9ce9

+3 -82
+3 -40
Documentation/devicetree/bindings/mfd/allwinner,sun6i-a31-prcm.yaml
··· 34 34 - allwinner,sun6i-a31-clock-reset 35 35 - fixed-factor-clock 36 36 37 + required: 38 + - compatible 39 + 37 40 allOf: 38 41 - if: 39 42 properties: ··· 58 55 "#clock-cells": 59 56 const: 0 60 57 61 - # Already checked in the main schema 62 - compatible: true 63 - 64 58 clocks: 65 59 maxItems: 2 66 60 67 61 clock-output-names: 68 62 maxItems: 1 69 63 70 - phandle: true 71 - 72 64 required: 73 65 - "#clock-cells" 74 - - compatible 75 66 - clocks 76 67 - clock-output-names 77 - 78 - additionalProperties: false 79 68 80 69 - if: 81 70 properties: ··· 80 85 "#clock-cells": 81 86 const: 0 82 87 83 - # Already checked in the main schema 84 - compatible: true 85 - 86 88 clocks: 87 89 maxItems: 1 88 90 89 91 clock-output-names: 90 92 maxItems: 1 91 93 92 - phandle: true 93 - 94 94 required: 95 95 - "#clock-cells" 96 - - compatible 97 96 - clocks 98 97 - clock-output-names 99 - 100 - additionalProperties: false 101 98 102 99 - if: 103 100 properties: ··· 106 119 offset of the bit controlling this particular gate in 107 120 the register. 108 121 109 - # Already checked in the main schema 110 - compatible: true 111 - 112 122 clocks: 113 123 maxItems: 1 114 124 ··· 113 129 minItems: 1 114 130 maxItems: 32 115 131 116 - phandle: true 117 - 118 132 required: 119 133 - "#clock-cells" 120 - - compatible 121 134 - clocks 122 135 - clock-output-names 123 - 124 - additionalProperties: false 125 136 126 137 - if: 127 138 properties: ··· 129 150 "#clock-cells": 130 151 const: 0 131 152 132 - # Already checked in the main schema 133 - compatible: true 134 - 135 153 clocks: 136 154 maxItems: 4 137 155 description: > ··· 138 162 clock-output-names: 139 163 maxItems: 1 140 164 141 - phandle: true 142 - 143 165 required: 144 166 - "#clock-cells" 145 - - compatible 146 167 - clocks 147 168 - clock-output-names 148 - 149 - additionalProperties: false 150 169 151 170 - if: 152 171 properties: ··· 154 183 "#reset-cells": 155 184 const: 1 156 185 157 - # Already checked in the main schema 158 - compatible: true 159 - 160 - phandle: true 161 - 162 186 required: 163 187 - "#reset-cells" 164 - - compatible 165 - 166 - additionalProperties: false 167 188 168 189 required: 169 190 - compatible
-42
Documentation/devicetree/bindings/mfd/allwinner,sun8i-a23-prcm.yaml
··· 57 57 "#clock-cells": 58 58 const: 0 59 59 60 - # Already checked in the main schema 61 - compatible: true 62 - 63 60 clocks: 64 61 maxItems: 1 65 62 66 63 clock-output-names: 67 64 maxItems: 1 68 65 69 - phandle: true 70 - 71 66 required: 72 67 - "#clock-cells" 73 - - compatible 74 68 - clocks 75 69 - clock-output-names 76 - 77 - additionalProperties: false 78 70 79 71 - if: 80 72 properties: ··· 83 91 offset of the bit controlling this particular gate in 84 92 the register. 85 93 86 - # Already checked in the main schema 87 - compatible: true 88 - 89 94 clocks: 90 95 maxItems: 1 91 96 ··· 90 101 minItems: 1 91 102 maxItems: 32 92 103 93 - phandle: true 94 - 95 104 required: 96 105 - "#clock-cells" 97 - - compatible 98 106 - clocks 99 107 - clock-output-names 100 - 101 - additionalProperties: false 102 108 103 109 - if: 104 110 properties: ··· 106 122 "#reset-cells": 107 123 const: 1 108 124 109 - # Already checked in the main schema 110 - compatible: true 111 - 112 - phandle: true 113 - 114 125 required: 115 126 - "#reset-cells" 116 - - compatible 117 - 118 - additionalProperties: false 119 - 120 - - if: 121 - properties: 122 - compatible: 123 - contains: 124 - const: allwinner,sun8i-a23-codec-analog 125 - 126 - then: 127 - properties: 128 - # Already checked in the main schema 129 - compatible: true 130 - 131 - phandle: true 132 - 133 - required: 134 - - compatible 135 - 136 - additionalProperties: false 137 127 138 128 required: 139 129 - compatible