Re: [PATCH 1/2] dt-bindings: clock: qcom,mmcc: fix clocks/clock-names definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/07/2022 17:53, Dmitry Baryshkov wrote:
> Rather than defining (incorrect) global clocks and clock-names lists,
> define them per platform using conditionals. Also, while we are at it,
> mark these properties as required for all platforms for which DT files
> contained clocks/clock-names for the MMCC nodes from the beginning (in
> addition to existing MSM8998 this adds MSM8994, SDM630 and SDM660).
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
> ---
>  .../devicetree/bindings/clock/qcom,mmcc.yaml  | 133 ++++++++++++++----
>  1 file changed, 109 insertions(+), 24 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
> index 32e87014bb55..d02fe6dc79b5 100644
> --- a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
> +++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
> @@ -31,30 +31,12 @@ properties:
>        - qcom,mmcc-sdm660
>  
>    clocks:
> -    items:
> -      - description: Board XO source
> -      - description: Board sleep source
> -      - description: Global PLL 0 clock
> -      - description: DSI phy instance 0 dsi clock
> -      - description: DSI phy instance 0 byte clock
> -      - description: DSI phy instance 1 dsi clock
> -      - description: DSI phy instance 1 byte clock
> -      - description: HDMI phy PLL clock
> -      - description: DisplayPort phy PLL vco clock
> -      - description: DisplayPort phy PLL link clock
> +    minItems: 9
> +    maxItems: 10
>  
>    clock-names:
> -    items:
> -      - const: xo
> -      - const: sleep
> -      - const: gpll0
> -      - const: dsi0dsi
> -      - const: dsi0byte
> -      - const: dsi1dsi
> -      - const: dsi1byte
> -      - const: hdmipll
> -      - const: dpvco
> -      - const: dplink
> +    minItems: 9
> +    maxItems: 10
>  
>    '#clock-cells':
>      const: 1
> @@ -89,13 +71,116 @@ if:
>    properties:
>      compatible:
>        contains:
> -        const: qcom,mmcc-msm8998
> -
> +        enum:
> +          - qcom,mmcc-msm8994
> +          - qcom,mmcc-msm8998
> +          - qcom,mmcc-sdm630
> +          - qcom,mmcc-sdm660
>  then:
>    required:
>      - clocks
>      - clock-names
>  
> +allOf:

Earlier if should be put under allOf as well.



Best regards,
Krzysztof



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux