[PATCH v2 02/15] dt-bindings: usb: qcom,pmic-typec: add support for the PMI632 block

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Sun Jan 14 23:59:35 PST 2024


On 13/01/2024 21:55, Dmitry Baryshkov wrote:
> The PMI632 PMIC has the same Type-C register block as the PM8150B.
> However this PMIC doesn't support USB Power Delivery. As such it doesn't
> have the second region used by the existing pm8150b bindings. Add if
> clauses to handle the PMI632 usecase.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>

...

> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - qcom,pmi632-typec
> +    then:
> +      properties:
> +        interrupts:
> +          maxItems: 8
> +        interrupt-names:
> +          maxItems: 8
> +        vdd-pdphy-supply: false
> +    else:
> +      properties:
> +        interrupts:
> +          minItems: 16
> +        interrupt-names:
> +          maxItems: 16

In both if:else: narrow also "reg".

Best regards,
Krzysztof




More information about the linux-phy mailing list