Re: [PATCH v2 3/4] dt-bindings: arm: qcom-soc: Validate nodes with fallbacks
From: Krzysztof Kozlowski
Date: Mon Jul 20 2026 - 16:03:54 EST
On 16/07/2026 23:14, Rob Herring wrote:
>> + - qcom,smmu-500
>> + - qcom,smmu-v2
>> + - qcom,snps-dwc3
>> + - qcom,ssc-block-bus
>> + - qcom,tcsr-mutex
>> + - qcom,trng
>> + - qcom,tsens-v0_1
>> + - qcom,tsens-v1
>> + - qcom,tsens-v2
>> + - qcom,ufshc
>> + - qcom,usb-hs-phy
>> + - qcom,usb-hsic-phy
>> + - qcom,usb-snps-hs-5nm-phy
>> + - qcom,usb-snps-hs-7nm-phy
>> + - simple-mfd
>> + - snps,dwmac
>> + - syscon
>
> You lost me here...
>
> This all looks pretty unmaintainable. Perhaps you should give up on old
> SoCs and only do something on new(er) ones:
Yeah, I think I over complicated this.
>
> select:
> properties:
> compatible:
> contains:
> pattern: '^qcom,'
>
> allOf:
> - if:
> properties:
> compatible:
> contains:
> pattern: '^qcom,.+foosoc'
> then:
> properties:
> compatible:
> contains:
> pattern: '^qcom,foosoc'
This seems to work well, I'll try more, thanks!
Best regards,
Krzysztof