On 17/10/2024 00:48, Marek Vasut wrote: > > I wanted to ask though, there are these patternProperties here which > cover sw1..4 and ldo2 and ldo4, and then there is dedicated special case > for ldo1 (because this LDO node must always contain regulator-always-on > property) and ldo3 (because this LDO node must NOT contain > lltc,fb-voltage-divider property). Is there any way to place all the > sw1..4 and ldo1..4 into patternProperties, and then selectively DISABLE > lltc,fb-voltage-divider requirement for LDO3 and ENABLE > regulator-always-on for LDO1 ? I was looking at allOf:if: , but couldn't > find anything. Maybe this would work: patternPropeties: "^(sw[1-4]|ldo[1-4])$": ...... ...... allOf: - if: $nodename: const: ldo3 then: ... but I am not sure if this would be readable and beneficial. Current code is OK. Best regards, Krzysztof