On 14/03/2024 09:28, Jishnu Prakash wrote: > > followed by updating maxItems back to 1 for all the earlier existing > compatibles, using if:then: conditions, like the below example? > > - if: > properties: > compatible: > contains: > const: qcom,spmi-adc5 > > then: > properties: > reg: > maxItems: 1 > interrupts: > maxItems: 1 > > > If this is acceptable, I'll add ADC5 Gen3 bindings in the same file with > changes like the above, else I'll add them in a new file after first > creating a common schema file as you suggested. Please refer to existing files how it is done: https://elixir.bootlin.com/linux/v6.8/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L132 Best regards, Krzysztof